Atmosphere issue on GF 3.1

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Atmosphere issue on GF 3.1

bardu
Hi,

this is the Atmosphere related content of my web.xml:

<servlet>
        <description>AtmosphereServlet</description>
        <servlet-name>AtmosphereServlet</servlet-name>
        <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
        <async-supported>true</async-supported>
        <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>AtmosphereServlet</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>

When I run my NB 6.9 project on GF 3.1 (GF 3.01 has the same issue) I get the following error message:

SEVERE: DPL8015: Invalid Deployment Descriptors in Deployment descriptor file WEB-INF/web.xml in archive [web].
Line 30 Column 26 -- cvc-complex-type.2.4.a: Invalid content was found starting with element 'load-on-startup'. One of '{"http://java.sun.com/xml/ns/javaee":run-as, "http://java.sun.com/xml/ns/javaee":security-role-ref, "http://java.sun.com/xml/ns/javaee":multipart-config}' is expected.
SEVERE: DPL8005: Deployment Descriptor parsing failure : cvc-complex-type.2.4.a: Invalid content was found starting with element 'load-on-startup'. One of '{"http://java.sun.com/xml/ns/javaee":run-as, "http://java.sun.com/xml/ns/javaee":security-role-ref, "http://java.sun.com/xml/ns/javaee":multipart-config}' is expected.
SEVERE: Exception while deploying the app
java.io.IOException: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'load-on-startup'. One of '{"http://java.sun.com/xml/ns/javaee":run-as, "http://java.sun.com/xml/ns/javaee":security-role-ref, "http://java.sun.com/xml/ns/javaee":multipart-config}' is expected.
        at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:170)
...

If I ommit <load-on-startup>0</load-on-startup>

I get error message:

WARNING: StandardWrapperValve[AtmosphereServlet]: PWC1382: Allocate exception for servlet AtmosphereServlet
java.lang.NoClassDefFoundError: org/apache/catalina/CometProcessor
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:920)
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430)
        at org.apache.catalina.core.StandardWrapper.loadServletClass(StandardWrapper.java:1383)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1247)
        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:1059)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:187)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.CometProcessor
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:959)
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430)
        ... 32 more


What do I miss?

Thanks.
Stephan
Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere issue on GF 3.1

Emperorlou
Try removing the load-on-startup and make sure you have catalina.jar in your libs. Thats where CometProcessor comes from.
Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere issue on GF 3.1

Jeanfrancois Arcand-2
In reply to this post by bardu
Salut,

On 10-07-13 1:30 AM, Stephan Bardubitzki wrote:

> Hi,
>
> this is the Atmosphere related content of my web.xml:
>
> <servlet>
> <description>AtmosphereServlet</description>
> <servlet-name>AtmosphereServlet</servlet-name>
> <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
> <async-supported>true</async-supported>
> <load-on-startup>0</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>AtmosphereServlet</servlet-name>
> <url-pattern>/*</url-pattern>
> </servlet-mapping>
>
> When I run my NB 6.9 project on GF 3.1 (GF 3.01 has the same issue) I
> get the following error message:
>
> SEVERE: DPL8015: Invalid Deployment Descriptors in Deployment descriptor
> file WEB-INF/web.xml in archive [web].
> Line 30 Column 26 -- cvc-complex-type.2.4.a: Invalid content was found
> starting with element 'load-on-startup'. One of
> '{"http://java.sun.com/xml/ns/javaee":run-as,
> "http://java.sun.com/xml/ns/javaee":security-role-ref,
> "http://java.sun.com/xml/ns/javaee":multipart-config}' is expected.
> SEVERE: DPL8005: Deployment Descriptor parsing failure :
> cvc-complex-type.2.4.a: Invalid content was found starting with element
> 'load-on-startup'. One of '{"http://java.sun.com/xml/ns/javaee":run-as,
> "http://java.sun.com/xml/ns/javaee":security-role-ref,
> "http://java.sun.com/xml/ns/javaee":multipart-config}' is expected.
> SEVERE: Exception while deploying the app
> java.io.IOException: org.xml.sax.SAXParseException:
> cvc-complex-type.2.4.a: Invalid content was found starting with element
> 'load-on-startup'. One of '{"http://java.sun.com/xml/ns/javaee":run-as,
> "http://java.sun.com/xml/ns/javaee":security-role-ref,
> "http://java.sun.com/xml/ns/javaee":multipart-config}' is expected.
> at
> org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:170)
> ...
>
> If I ommit <load-on-startup>0</load-on-startup>

GF v3 has validation enabled by default and the other of elements
probably matters. I will fix that but any XML validation tool should
tell you which element is in the wrong order.


>
> I get error message:
>
> WARNING: StandardWrapperValve[AtmosphereServlet]: PWC1382: Allocate
> exception for servlet AtmosphereServlet
> java.lang.NoClassDefFoundError: org/apache/catalina/CometProcessor
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
> at
> org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:920)
> at
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430)
> at
> org.apache.catalina.core.StandardWrapper.loadServletClass(StandardWrapper.java:1383)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1247)
> at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:1059)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:187)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
> at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
> at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
> at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.catalina.CometProcessor
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at
> org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:959)
> at
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430)
> ... 32 more
>
>
> What do I miss?

It seems you don't have all the Atmosphere jars in you WEB-INF/lib. Make
sure you have the following:

>  16 -rw-r--r--  1 jfarcand  staff    4795 12 Jul 22:23 atmosphere-compat-jbossweb-0.7-SNAPSHOT.jar
>  16 -rw-r--r--  1 jfarcand  staff    5394 12 Jul 22:23 atmosphere-compat-tomcat-0.7-SNAPSHOT.jar
>  16 -rw-r--r--  1 jfarcand  staff    6017 12 Jul 22:23 atmosphere-compat-weblogic-0.7-SNAPSHOT.jar
> 336 -rw-r--r--  1 jfarcand  staff  170964 12 Jul 22:28 atmosphere-runtime-0.7-SNAPSHOT.jar

(replace 0.7-SNAPSHOT by 0.6)

A+

-- Jeanfrancois






>
> Thanks.
> Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere issue on GF 3.1

Jeanfrancois Arcand-2
In reply to this post by Emperorlou
Salut,

On 10-07-13 6:26 AM, Emperorlou wrote:
>
> Try removing the load-on-startup and make sure you have catalina.jar in your
> libs. Thats where CometProcessor comes from.

catalina.jar is *only* available in Tomcat. In GF you must use the fake
classes provided in atmosphere-compat-tomcat-0.7-SNAPSHOT.jar along with
other fake classes:

>  16 -rw-r--r--  1 jfarcand  staff    4795 12 Jul 22:23 atmosphere-compat-jbossweb-0.7-SNAPSHOT.jar
>  16 -rw-r--r--  1 jfarcand  staff    5394 12 Jul 22:23 atmosphere-compat-tomcat-0.7-SNAPSHOT.jar
>  16 -rw-r--r--  1 jfarcand  staff    6017 12 Jul 22:23 atmosphere-compat-weblogic-0.7-SNAPSHOT.jar
> 336 -rw-r--r--  1 jfarcand  staff  170964 12 Jul 22:28 atmosphere-runtime-0.7-SNAPSHOT.jar

A+

-- Jeanfrancois


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere issue on GF 3.1

bardu
In reply to this post by Jeanfrancois Arcand-2
Thanks.

This seems to be the right order in GF v3.x:

<servlet>
        <description>AtmosphereServlet</description>
        <servlet-name>AtmosphereServlet</servlet-name>
        <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
        <load-on-startup>0</load-on-startup>
        <async-supported>true</async-supported>
    </servlet>

Stephan

On Tue, 2010-07-13 at 07:27 -0400, jfarcand wrote:
Salut,

On 10-07-13 1:30 AM, Stephan Bardubitzki wrote:
> Hi,
>
> this is the Atmosphere related content of my web.xml:
>
> <servlet>
> <description>AtmosphereServlet</description>
> <servlet-name>AtmosphereServlet</servlet-name>
> <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
> <async-supported>true</async-supported>
> <load-on-startup>0</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>AtmosphereServlet</servlet-name>
> <url-pattern>/*</url-pattern>
> </servlet-mapping>
>
> When I run my NB 6.9 project on GF 3.1 (GF 3.01 has the same issue) I
> get the following error message:
>
> SEVERE: DPL8015: Invalid Deployment Descriptors in Deployment descriptor
> file WEB-INF/web.xml in archive [web].
> Line 30 Column 26 -- cvc-complex-type.2.4.a: Invalid content was found
> starting with element 'load-on-startup'. One of
> '{"http://java.sun.com/xml/ns/javaee":run-as,
> "http://java.sun.com/xml/ns/javaee":security-role-ref,
> "<A HREF="http://java.sun.com/xml/ns/javaee:multipart-config}&quot;&gt;">http://java.sun.com/xml/ns/javaee":multipart-config}' is expected.
> SEVERE: DPL8005: Deployment Descriptor parsing failure :
> cvc-complex-type.2.4.a: Invalid content was found starting with element
> 'load-on-startup'. One of '{"http://java.sun.com/xml/ns/javaee":run-as,
> "http://java.sun.com/xml/ns/javaee":security-role-ref,
> "<A HREF="http://java.sun.com/xml/ns/javaee:multipart-config}&quot;&gt;">http://java.sun.com/xml/ns/javaee":multipart-config}' is expected.
> SEVERE: Exception while deploying the app
> java.io.IOException: org.xml.sax.SAXParseException:
> cvc-complex-type.2.4.a: Invalid content was found starting with element
> 'load-on-startup'. One of '{"http://java.sun.com/xml/ns/javaee":run-as,
> "http://java.sun.com/xml/ns/javaee":security-role-ref,
> "<A HREF="http://java.sun.com/xml/ns/javaee:multipart-config}&quot;&gt;">http://java.sun.com/xml/ns/javaee":multipart-config}' is expected.
> at
> org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:170)
> ...
>
> If I ommit <load-on-startup>0</load-on-startup>

GF v3 has validation enabled by default and the other of elements 
probably matters. I will fix that but any XML validation tool should 
tell you which element is in the wrong order.


>
> I get error message:
>
> WARNING: StandardWrapperValve[AtmosphereServlet]: PWC1382: Allocate
> exception for servlet AtmosphereServlet
> java.lang.NoClassDefFoundError: org/apache/catalina/CometProcessor
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
> at
> org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:920)
> at
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430)
> at
> org.apache.catalina.core.StandardWrapper.loadServletClass(StandardWrapper.java:1383)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1247)
> at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:1059)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:187)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
> at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
> at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
> at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.catalina.CometProcessor
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at
> org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:959)
> at
> org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430)
> ... 32 more
>
>
> What do I miss?

It seems you don't have all the Atmosphere jars in you WEB-INF/lib. Make 
sure you have the following:

>  16 -rw-r--r--  1 jfarcand  staff    4795 12 Jul 22:23 atmosphere-compat-jbossweb-0.7-SNAPSHOT.jar
>  16 -rw-r--r--  1 jfarcand  staff    5394 12 Jul 22:23 atmosphere-compat-tomcat-0.7-SNAPSHOT.jar
>  16 -rw-r--r--  1 jfarcand  staff    6017 12 Jul 22:23 atmosphere-compat-weblogic-0.7-SNAPSHOT.jar
> 336 -rw-r--r--  1 jfarcand  staff  170964 12 Jul 22:28 atmosphere-runtime-0.7-SNAPSHOT.jar

(replace 0.7-SNAPSHOT by 0.6)

A+

-- Jeanfrancois






>
> Thanks.
> Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


--------------------------------
Spam/Virus scanning by CanIt Pro

For more information see
http://www.kgbinternet.com/SpamFilter.htm

To control your spam filter, log in at
http://filter.kgbinternet.com
Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere issue on GF 3.1

bardu
In reply to this post by Jeanfrancois Arcand-2
Hi there,

unfortunately, I run into another issue not related to Atmosphere, but maybe someone else had the same problem and can offer a solution.

I'm using NB 6.9 and GF 3.1. After adding the required atmosphere-x.jars and some server side classes NB automatically generated  a rest-build.xml and since this file is in my project the browser can't load resources such us

<script type="text/javascript" src="./resources/js/jquery-1.4.2.js"/>

anymore.

Thanks in advanced for any ideas.

P.S.: have posted over at NB too, but no response so far.

On Tue, 2010-07-13 at 07:28 -0400, jfarcand wrote:
Salut,

On 10-07-13 6:26 AM, Emperorlou wrote:
>
> Try removing the load-on-startup and make sure you have catalina.jar in your
> libs. Thats where CometProcessor comes from.

catalina.jar is *only* available in Tomcat. In GF you must use the fake 
classes provided in atmosphere-compat-tomcat-0.7-SNAPSHOT.jar along with 
other fake classes:

>  16 -rw-r--r--  1 jfarcand  staff    4795 12 Jul 22:23 atmosphere-compat-jbossweb-0.7-SNAPSHOT.jar
>  16 -rw-r--r--  1 jfarcand  staff    5394 12 Jul 22:23 atmosphere-compat-tomcat-0.7-SNAPSHOT.jar
>  16 -rw-r--r--  1 jfarcand  staff    6017 12 Jul 22:23 atmosphere-compat-weblogic-0.7-SNAPSHOT.jar
> 336 -rw-r--r--  1 jfarcand  staff  170964 12 Jul 22:28 atmosphere-runtime-0.7-SNAPSHOT.jar

A+

-- Jeanfrancois


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


--------------------------------
Spam/Virus scanning by CanIt Pro

For more information see
http://www.kgbinternet.com/SpamFilter.htm

To control your spam filter, log in at
http://filter.kgbinternet.com
Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere issue on GF 3.1

Jeanfrancois Arcand-4
Salut,

On 10-07-13 11:34 PM, Stephan Bardubitzki wrote:

> Hi there,
>
> unfortunately, I run into another issue not related to Atmosphere, but
> maybe someone else had the same problem and can offer a solution.
>
> I'm using NB 6.9 and GF 3.1. After adding the required atmosphere-x.jars
> and some server side classes NB automatically generated a rest-build.xml
> and since this file is in my project the browser can't load resources
> such us
>
> <script type="text/javascript" src="./resources/js/jquery-1.4.2.js"/>
>
> anymore.
>
> Thanks in advanced for any ideas.
>
> P.S.: have posted over at NB too, but no response so far.

Wild guess, but if you try:

<script type="text/javascript" src="/resources/js/jquery-1.4.2.js"/>

does it works?

A+

- Jeanfrancois


>
> On Tue, 2010-07-13 at 07:28 -0400, jfarcand wrote:
>> Salut,
>>
>> On 10-07-13 6:26 AM, Emperorlou wrote:
>> >
>> >  Try removing the load-on-startup and make sure you have catalina.jar in your
>> >  libs. Thats where CometProcessor comes from.
>>
>> catalina.jar is *only* available in Tomcat. In GF you must use the fake
>> classes provided in atmosphere-compat-tomcat-0.7-SNAPSHOT.jar along with
>> other fake classes:
>>
>> >   16 -rw-r--r--  1 jfarcand  staff    4795 12 Jul 22:23 atmosphere-compat-jbossweb-0.7-SNAPSHOT.jar
>> >   16 -rw-r--r--  1 jfarcand  staff    5394 12 Jul 22:23 atmosphere-compat-tomcat-0.7-SNAPSHOT.jar
>> >   16 -rw-r--r--  1 jfarcand  staff    6017 12 Jul 22:23 atmosphere-compat-weblogic-0.7-SNAPSHOT.jar
>> >  336 -rw-r--r--  1 jfarcand  staff  170964 12 Jul 22:28 atmosphere-runtime-0.7-SNAPSHOT.jar
>>
>> A+
>>
>> -- Jeanfrancois
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:[hidden email]  <mailto:[hidden email]>
>> For additional commands, e-mail:[hidden email]  <mailto:[hidden email]>
>>
>>
>> --------------------------------
>> Spam/Virus scanning by CanIt Pro
>>
>> For more information see
>> http://www.kgbinternet.com/SpamFilter.htm
>>
>> To control your spam filter, log in at
>> http://filter.kgbinternet.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere issue on GF 3.1

bardu


On Sun, 2010-07-18 at 20:36 -0400, jfarcand wrote:
Salut,

On 10-07-13 11:34 PM, Stephan Bardubitzki wrote:
> Hi there,
>
> unfortunately, I run into another issue not related to Atmosphere, but
> maybe someone else had the same problem and can offer a solution.
>
> I'm using NB 6.9 and GF 3.1. After adding the required atmosphere-x.jars
> and some server side classes NB automatically generated a rest-build.xml
> and since this file is in my project the browser can't load resources
> such us
>
> <script type="text/javascript" src="./resources/js/jquery-1.4.2.js"/>
>
> anymore.
>
> Thanks in advanced for any ideas.
>
> P.S.: have posted over at NB too, but no response so far.

Wild guess, but if you try:

<script type="text/javascript" src="/resources/js/jquery-1.4.2.js"/>

does it works?


I have tried this and other before but no good. Since Jersey is used by my project the browser doesn't find the .css and .js resources anymore. I'm pretty sure it is due to how NB handles things around Jersey and its automatically generated rest-build.xml. Unfortunately, no response from the NB forum on this.

Stephan
A+

- Jeanfrancois


>
> On Tue, 2010-07-13 at 07:28 -0400, jfarcand wrote:
>> Salut,
>>
>> On 10-07-13 6:26 AM, Emperorlou wrote:
>> >
>> >  Try removing the load-on-startup and make sure you have catalina.jar in your
>> >  libs. Thats where CometProcessor comes from.
>>
>> catalina.jar is *only* available in Tomcat. In GF you must use the fake
>> classes provided in atmosphere-compat-tomcat-0.7-SNAPSHOT.jar along with
>> other fake classes:
>>
>> >   16 -rw-r--r--  1 jfarcand  staff    4795 12 Jul 22:23 atmosphere-compat-jbossweb-0.7-SNAPSHOT.jar
>> >   16 -rw-r--r--  1 jfarcand  staff    5394 12 Jul 22:23 atmosphere-compat-tomcat-0.7-SNAPSHOT.jar
>> >   16 -rw-r--r--  1 jfarcand  staff    6017 12 Jul 22:23 atmosphere-compat-weblogic-0.7-SNAPSHOT.jar
>> >  336 -rw-r--r--  1 jfarcand  staff  170964 12 Jul 22:28 atmosphere-runtime-0.7-SNAPSHOT.jar
>>
>> A+
>>
>> -- Jeanfrancois
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:[hidden email]  <[hidden email]>
>> For additional commands, e-mail:[hidden email]  <[hidden email]>
>>
>>
>> --------------------------------
>> Spam/Virus scanning by CanIt Pro
>>
>> For more information see
>> http://www.kgbinternet.com/SpamFilter.htm
>>
>> To control your spam filter, log in at
>> http://filter.kgbinternet.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


--------------------------------
Spam/Virus scanning by CanIt Pro

For more information see
http://www.kgbinternet.com/SpamFilter.htm

To control your spam filter, log in at
http://filter.kgbinternet.com
Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere issue on GF 3.1

nakoned
I experienced similar problems. Try changing /* resource in your web.xml file to something like /bla/*, so that your web.xml looks as follows:
<servlet>
        <description>AtmosphereServlet</description>
        <servlet-name>AtmosphereServlet</servlet-name>
        <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
        <async-supported>true</async-supported>
        <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>AtmosphereServlet</servlet-name>
        <url-pattern>/bla/*</url-pattern>
    </servlet-mapping>

Regards,
Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere issue on GF 3.1

bardu
Thanks for your suggestion, but I have done that before and it didn't help with my issue.

I guess I'm going to to ditch atmosphere-jersey and resort to atmosphere-runtime. If the jQuery plugin will support cross domain connections in the future that will suit my needs.


On Tue, 2010-07-20 at 07:01 -0700, nakoned wrote:
I experienced similar problems. Try changing /* resource in your web.xml file
to something like /bla/*, so that your web.xml looks as follows:
<servlet>
        <description>AtmosphereServlet</description>
        <servlet-name>AtmosphereServlet</servlet-name>
        <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
        <async-supported>true</async-supported>
        <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>AtmosphereServlet</servlet-name>
        <url-pattern>/bla/*</url-pattern>
    </servlet-mapping>

Regards,

Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere issue on GF 3.1

nakoned
OK... one more thing. How does your directory tree look under 'Web Pages' tab in NB? Where is jquery-1.4.2.js located relative to the page that has <script type="text/javascript" src="resources/js/jquery-1.4.2.js">? (btw it should be <script type="text/javascript" src="resources/js/jquery-1.4.2.js"></script>) Is it in 'Web Pages'/resources/js? I realize that it is probably correct just making sure... Also try changing it to src="resources/js/..." (don't think it will make a difference, but just a guess).

Regards,
Ed

Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere issue on GF 3.1

bardu
Hi Ed,

my project has worked before I have added jersey and NB auto-generated the rest-build.xml.

Seems like the project root has been somehow mixed up, but couldn't figure out where and how to fix it. And no word from NB team. I just don't have the guts to spend more time on that.

Anyway, thanks for your time and suggestions.

Stephan

On Wed, 2010-07-21 at 14:01 -0700, nakoned wrote:
OK... one more thing. How does your directory tree look under 'Web Pages' tab
in NB? Where is jquery-1.4.2.js located relative to the page that has
<script type="text/javascript" src="resources/js/jquery-1.4.2.js">? (btw it
should be <script type="text/javascript"
src="resources/js/jquery-1.4.2.js"></script>) Is it in 'Web
Pages'/resources/js? I realize that it is probably correct just making
sure... Also try changing it to src="resources/js/..." (don't think it will
make a difference, but just a guess).

Regards,
Ed


Reply | Threaded
Open this post in threaded view
|

(Netbeans issues) was Re: Atmosphere issue on GF 3.1

Jeanfrancois Arcand-4
salut,

On 10-07-21 5:14 PM, Stephan Bardubitzki wrote:

> Hi Ed,
>
> my project has worked before I have added jersey and NB auto-generated
> the rest-build.xml.
>
> Seems like the project root has been somehow mixed up, but couldn't
> figure out where and how to fix it. And no word from NB team. I just
> don't have the guts to spend more time on that.
>
> Anyway, thanks for your time and suggestions.

BTW this issue only happens with NB, so I would instead try to find why
only it is only failing with NB. I'm 100% sure it doesn't fail outside
the NB+GF integration code.

I recommend you file a bug in GlassFish as the issue is there.

A+

-- Jeanfrancois


>
> Stephan
>
> On Wed, 2010-07-21 at 14:01 -0700, nakoned wrote:
>> OK... one more thing. How does your directory tree look under 'Web Pages' tab
>> in NB? Where is jquery-1.4.2.js located relative to the page that has
>> <script type="text/javascript"  src="resources/js/jquery-1.4.2.js">? (btw it
>> should be<script type="text/javascript"
>> src="resources/js/jquery-1.4.2.js"></script>) Is it in 'Web
>> Pages'/resources/js? I realize that it is probably correct just making
>> sure... Also try changing it to src="resources/js/..."  (don't think it will
>> make a difference, but just a guess).
>>
>> Regards,
>> Ed
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere issue on GF 3.1

bennyn
This post has NOT been accepted by the mailing list yet.
In reply to this post by bardu
Hello. I'm running GlassFish Server 3.1.2 and want to start an application with the Atmosphere framework. But if I want to run a sample project, I always get: "NoClassDefFoundError: org/apache/catalina/comet/CometProcessor".

However, I have the required dependencies...?

    <dependency>
      <groupId>org.atmosphere</groupId>
      <artifactId>atmosphere-compat-jbossweb</artifactId>
      <version>0.9.3</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.atmosphere</groupId>
      <artifactId>atmosphere-compat-tomcat</artifactId>
      <version>0.9.3</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.atmosphere</groupId>
      <artifactId>atmosphere-compat-weblogic</artifactId>
      <version>0.9.0.RC3</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.atmosphere</groupId>
      <artifactId>atmosphere-runtime</artifactId>
      <version>0.9.2</version>
      <type>jar</type>
    </dependency>