users@glassfish.java.net

RE: Quercus 4 on Glassfish 3 - Servlet 3.0 Problem?

From: saturon <gsaturon_at_gmail.com>
Date: Mon, 21 Dec 2009 05:47:51 +0100

Well I invested about 3-4 hours trying just to get the simplest sample /
php info working and I failed. After that and some discussion on a list
with another developer which had similar experiences we concluded that
quercus might work fine on resin, but not really on GF / at least not
without some special config/hacks.
 
So if anyone can point me to some working installations / guide that
woudl be really helpful. Unfortunately I have not more experience in
Quercus...

-----Original Message-----
From: Dominik Dorn [mailto:dominik.dorn_at_gmail.com]
Sent: Montag, 21. Dezember 2009 03:09
To: users_at_glassfish.dev.java.net
Subject: Re: Quercus 4 on Glassfish 3 - Servlet 3.0 Problem?


Ok, it seems to be a more severe problem.. i just got a
domdorn_at_camelion ~/tmp/glassfish/release/glassfishv3/bin $ ./asadmin
Use "exit" to exit and "help" for online help.
asadmin> start-domain
Waiting for DAS to start .....................
Started domain: domain1
Domain location:
/home/domdorn/tmp/glassfish/release/glassfishv3/glassfish/domains/domain
1
Log file:
/home/domdorn/tmp/glassfish/release/glassfishv3/glassfish/domains/domain
1/logs/server.log
Admin port for the domain: 4848
Command start-domain executed successfully.
asadmin> Exception in thread "domain1-StderrDrainer"
java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2882)
    at
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.jav
a:100)
    at
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
    at java.lang.StringBuilder.append(StringBuilder.java:119)
    at
com.sun.enterprise.universal.process.ProcessStreamDrainerWorker.run(Proc
essStreamDrainerWorker.java:75)
    at java.lang.Thread.run(Thread.java:619)

Exception... quercus filled the logfiles with the loop until around
159mb where used by them, before it stopped...







On Mon, Dec 21, 2009 at 1:53 AM, Dominik Dorn <dominik.dorn_at_gmail.com>
wrote:


Ok, now i've got the same problem, because i changed the given web.xml
from

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
        "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>

to

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                  http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
         version="3.0">


When I now try to deploy the app, glassfish tells me:
Exception while deploying the app : java.lang.RuntimeException: WEB9033:
Unable to load class with name [com.caucho.jms.queue.AbstractTopic],
reason: java.lang.NoClassDefFoundError: javax/jms/Topic

and in the console I get an endless loop showing
[#|2009-12-21T01:43:00.248+0100|WARNING|glassfishv3.0|com.caucho.util.Al
arm|_ThreadID=38;_ThreadName=alarm-coordinator;|java.lang.NullPointerExc
eption
java.lang.NullPointerException
|#]

[#|2009-12-21T01:43:00.248+0100|WARNING|glassfishv3.0|com.caucho.util.Al
arm|_ThreadID=38;_ThreadName=alarm-coordinator;|java.lang.NullPointerExc
eption
java.lang.NullPointerException
|#]

I think, this may be a problem of quercus not compatible with Servlet
3.0

after changing the start of web.xml to
<!DOCTYPE web-app PUBLIC
        "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd" >

<web-app>

it works again and is restartable.

how does your web.xml start?






On Sun, Dec 20, 2009 at 10:08 PM, Dominik Dorn <dominik.dorn_at_gmail.com>
wrote:


I sometimes have the same issue

at com.caucho.util.Alarm$CoordinatorThread.run(Alarm.java:704)

with glassfish v3 final and quercus 4.0.2 ... I'm quite sure, its a
quercus error...

I will file a bug on quercus, when I run again into this issue (which
will be soon, I think)

dominik.



On Sun, Dec 20, 2009 at 9:06 PM, saturon <gsaturon_at_gmail.com> wrote:


Hi guys,
 
I was trying a similar thing in the past, but wasnot successful, with GF
2.1:
 
- Simple quercus app was running.
- 4.0.1 : Loop of nullpointer exceptions in
java.lang.NullPointerException
at com.caucho.util.Alarm.extractAlarm(Alarm.java:432)
at com.caucho.util.Alarm$CoordinatorThread.run(Alarm.java:704)
- 3.2.1: java.lang.NoClassDefFoundError:
com/caucho/quercus/function/AbstractFunction
 
Did you guys run into any of these issues?
 
Cheers Ben

-----Original Message-----
From: Dominik Dorn [mailto:dominik.dorn_at_gmail.com]
Sent: Sonntag, 20. Dezember 2009 19:28
To: users_at_glassfish.dev.java.net
Subject: Re: Quercus 4 on Glassfish 3


hi,

I simply packaged my webapp as normal and deployed it to "/" through the
admin-interface
( so no copying to domain1/lib or editing default-web.xml .. )

Greetings,
Dominik


On Sun, Dec 20, 2009 at 1:22 AM, Serge Fonville
<serge.fonville_at_gmail.com> wrote:


Hi,

I'm trying to setup Glassfish 3 to support PHP.
In the past I used Glassfish 2.1 with Quercus 3.1

I tried all the guides that google would tell me about.

Basically these steps were suggested
Copy all files from WEB-INF/lib to $GLASSFISH/domains/domain1/lib
edit $GLASSFISH/domains/domain1/config/default-web.xml to contain:

<servlet>
 <servlet-name>Quercus Servlet</servlet-name>
 
<servlet-class>com.caucho.quercus.servlet.QuercusServlet</servlet-class>
 <iinit-param>
   <param-name>ini-file</param-name>
   <param-value>WEB-INF/php.ini</param-value>
 </init-param>
</servlet>

<servlet-mapping>
 <servlet-name>Quercus Servlet</servlet-name>
 <url-pattern>*.php</url-pattern>
</servlet-mapping>

<welcome-file-list>
 <welcome-file>index.php</welcome-file>
 <welcome-file>index.html</welcome-file>
 <welcome-file>index.htm</welcome-file>
 <welcome-file>index.jsp</welcome-file>
</welcome-file-list>

When I add a index.php to $GLASSFISH/domains/domain1/docroot
Nothing happens when I open http://localhost:8080
When I open http://localhost:8080/index.php it shows the source code

When I dropped quercus-4.0.2.war in
$GLASSFISH/domains/domain1/autodeploy and then openen
http://localhost:8080/quercus-4.0.2/ everything worked as expect.

Are there any additional things I need to do to make this work?

Thanks a lot in advance!

Regards,

Sege Fonville

--
http://www.sergefonville.nl
Convince Google!!
They need to support Adsense over SSL
https://www.google.com/adsense/support/bin/answer.py?hl=en
<https://www.google.com/adsense/support/bin/answer.py?hl=en&answer=10528
> &answer=10528
http://www.google.com/support/forum/p/AdSense/thread?tid=1884bc9310d9f92
3
<http://www.google.com/support/forum/p/AdSense/thread?tid=1884bc9310d9f9
23&hl=en> &hl=en
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net