[FYI] Weblogic and class scanning

5 messages Options
Embed this post
Permalink
Jeanfrancois Arcand

[FYI] Weblogic and class scanning

Reply Threaded More More options
Print post
Permalink
FYI, if you are using/planning to deploy on WebLogic, make sure you
define the Jersey init-param for

>         <init-param>
>             <param-name>com.sun.jersey.config.property.packages</param-name>
>             <param-value>org.atmosphere.samples.chat.resources</param-value>
>         </init-param>

If you don't, you will get:

> javax.servlet.ServletException: The default deployment configuration that scans for classes in /WEB-INF/lib and /WEB-INF/classes is not supported for the application server.Try using the package scanning configuration, see the JavaDoc for com.sun.jersey.api.core.PackagesResourceConfig and the property com.sun.jersey.config.property.packages.
>         at com.sun.jersey.spi.container.servlet.WebComponent.getPaths(WebComponent.java:649)
>         at com.sun.jersey.spi.container.servlet.WebComponent.getClassPathResourceConfig(WebComponent.java:546)
>         at com.sun.jersey.spi.container.servlet.ServletContainer.getDefaultResourceConfig(ServletContainer.java:349)
>         at com.sun.jersey.spi.container.servlet.ServletContainer.getDefaultResourceConfig(ServletContainer.java:517)
>         at com.sun.jersey.spi.container.servlet.ServletContainer$1.getDefaultResourceConfig(ServletContainer.java:490)
>         Truncated. see log file for complete stacktrace

Same for not defining META-INF/atmosphere.xml. You MUST define it with
WebLogic in order to make any Atmosphere application to work.

A+

-- Jeanfrancois

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

gerard davison

Re: [FYI] Weblogic and class scanning

Reply Threaded More More options
Print post
Permalink


Hey,

There is another possible work around at the end of this post:

http://kingsfleet.blogspot.com/2008/10/running-jax-rcjerseyjsr311-on-weblogic.html

I have had some reports that it doesn't work on all published versions
of weblogic; but I haven't had time to investigate full. The other
option it to push for a fix to jersey issue 32, (Go on Paul you know you
want to ;-) )

https://jersey.dev.java.net/issues/show_bug.cgi?id=32

Gerard


On 20/10/2009 01:56, Jeanfrancois Arcand wrote:

> FYI, if you are using/planning to deploy on WebLogic, make sure you
> define the Jersey init-param for
>
>>         <init-param>
>>            
>> <param-name>com.sun.jersey.config.property.packages</param-name>
>>            
>> <param-value>org.atmosphere.samples.chat.resources</param-value>
>>         </init-param>
>
> If you don't, you will get:
>
>> javax.servlet.ServletException: The default deployment configuration
>> that scans for classes in /WEB-INF/lib and /WEB-INF/classes is not
>> supported for the application server.Try using the package scanning
>> configuration, see the JavaDoc for
>> com.sun.jersey.api.core.PackagesResourceConfig and the property
>> com.sun.jersey.config.property.packages.
>>         at
>> com.sun.jersey.spi.container.servlet.WebComponent.getPaths(WebComponent.java:649)
>>
>>         at
>> com.sun.jersey.spi.container.servlet.WebComponent.getClassPathResourceConfig(WebComponent.java:546)
>>
>>         at
>> com.sun.jersey.spi.container.servlet.ServletContainer.getDefaultResourceConfig(ServletContainer.java:349)
>>
>>         at
>> com.sun.jersey.spi.container.servlet.ServletContainer.getDefaultResourceConfig(ServletContainer.java:517)
>>
>>         at
>> com.sun.jersey.spi.container.servlet.ServletContainer$1.getDefaultResourceConfig(ServletContainer.java:490)
>>
>>         Truncated. see log file for complete stacktrace
>
> Same for not defining META-INF/atmosphere.xml. You MUST define it with
> WebLogic in order to make any Atmosphere application to work.
>
> A+
>
> -- Jeanfrancois
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

--
Gerard Davison | Senior Principal Software Engineer | +44 118 924 5095
Oracle JDeveloper Web Service Tooling Development
Oracle Corporation UK Ltd is a company incorporated in England & Wales.
Company Reg. No. 1782505.
Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA.

Blog http://kingsfleet.blogspot.com


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

Paul Sandoz

Re: [FYI] Weblogic and class scanning

Reply Threaded More More options
Print post
Permalink

On Oct 20, 2009, at 11:46 AM, gerard davison wrote:

>
>
> Hey,
>
> There is another possible work around at the end of this post:
>
> http://kingsfleet.blogspot.com/2008/10/running-jax-rcjerseyjsr311-on-weblogic.html
>
> I have had some reports that it doesn't work on all published  
> versions of weblogic; but I haven't had time to investigate full.  
> The other option it to push for a fix to jersey issue 32, (Go on  
> Paul you know you want to ;-) )
>
> https://jersey.dev.java.net/issues/show_bug.cgi?id=32
>

I am making some progress in this regard. I have a working prototype  
that re-factors the current scanning implementation and incorporates  
your prototype.

I am a bit reluctant to commit this to 1.1.4-ea-SNAPSHOT for GlassFish  
because of the risk of new introducing bugs or regressions at this  
late stage.

Paul.

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

Jeanfrancois Arcand

Re: [FYI] Weblogic and class scanning

Reply Threaded More More options
Print post
Permalink


Paul Sandoz wrote:

>
> On Oct 20, 2009, at 11:46 AM, gerard davison wrote:
>
>>
>>
>> Hey,
>>
>> There is another possible work around at the end of this post:
>>
>> http://kingsfleet.blogspot.com/2008/10/running-jax-rcjerseyjsr311-on-weblogic.html 
>>
>>
>> I have had some reports that it doesn't work on all published versions
>> of weblogic; but I haven't had time to investigate full. The other
>> option it to push for a fix to jersey issue 32, (Go on Paul you know
>> you want to ;-) )
>>
>> https://jersey.dev.java.net/issues/show_bug.cgi?id=32
>>
>
> I am making some progress in this regard. I have a working prototype
> that re-factors the current scanning implementation and incorporates
> your prototype.
>
> I am a bit reluctant to commit this to 1.1.4-ea-SNAPSHOT for GlassFish
> because of the risk of new introducing bugs or regressions at this late
> stage.

No problem...Atmosphere uses 1.1.5 :-)

A+

-- Jeanfrancois

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

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

gerard davison

Re: [FYI] Weblogic and class scanning

Reply Threaded More More options
Print post
Permalink


On 20/10/2009 19:18, Jeanfrancois Arcand wrote:

>
>
> Paul Sandoz wrote:
>>
>> On Oct 20, 2009, at 11:46 AM, gerard davison wrote:
>>
>>>
>>>
>>> Hey,
>>>
>>> There is another possible work around at the end of this post:
>>>
>>> http://kingsfleet.blogspot.com/2008/10/running-jax-rcjerseyjsr311-on-weblogic.html 
>>>
>>>
>>> I have had some reports that it doesn't work on all published
>>> versions of weblogic; but I haven't had time to investigate full.
>>> The other option it to push for a fix to jersey issue 32, (Go on
>>> Paul you know you want to ;-) )
>>>
>>> https://jersey.dev.java.net/issues/show_bug.cgi?id=32
>>>
>>
>> I am making some progress in this regard. I have a working prototype
>> that re-factors the current scanning implementation and incorporates
>> your prototype.
>>
>> I am a bit reluctant to commit this to 1.1.4-ea-SNAPSHOT for
>> GlassFish because of the risk of new introducing bugs or regressions
>> at this late stage.
>
> No problem...Atmosphere uses 1.1.5 :-)
>
> A+
>
> -- Jeanfrancois

I can add to that in JDeveloper 11R1PS1 we tell people to use the latest
Jersey 1.1.x so I am fine to wait until 1.1.5.

Gerard


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

--
Gerard Davison | Senior Principal Software Engineer | +44 118 924 5095
Oracle JDeveloper Web Service Tooling Development
Oracle Corporation UK Ltd is a company incorporated in England & Wales.
Company Reg. No. 1782505.
Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA.

Blog http://kingsfleet.blogspot.com


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