users@glassfish.java.net

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

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Mon, 21 Dec 2009 01:53:35 +0100

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.Alarm|_ThreadID=38;_ThreadName=alarm-coordinator;|java.lang.NullPointerException
java.lang.NullPointerException
|#]

[#|2009-12-21T01:43:00.248+0100|WARNING|glassfishv3.0|com.caucho.util.Alarm|_ThreadID=38;_ThreadName=alarm-coordinator;|java.lang.NullPointerException
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&answer=10528
>>>
>>> http://www.google.com/support/forum/p/AdSense/thread?tid=1884bc9310d9f923&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
>>>
>>>
>>
>