Where to put Seam librairies

View: New views
4 Messages — Rating Filter:   Alert me  

Where to put Seam librairies

by Henoc@gbconcept.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Well another question guys ;

Not wanting to include in my .jar / .ear Seam libraries every time I build an app

I said to myself, well just put it there in my domain’s lib folder.

(seems to be a straight and good idea  ?)

 

 

Well two problems arise , I’m struggling with… as I can’t found a solution by myself ,

 maybe I can get some hints from you   :

 

Problem -1-

 

 

Not really a big deal but I wish I understand better how this kind of issue should be addressed.

It can be for any kind of framework coming with it’s own logging

Look at this log (from my Glassfish server start-up :))

WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080

WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181

WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848

Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/example'

log4j:WARN No appenders could be found for logger (org.jboss.seam.jsf.SeamPhaseListener).

log4j:WARN Please initialize the log4j system properly.

 

I tried providing log4j.properties or log4J.xml file in glassfish/domains/domain1/lib , just along with my jboss-seam.jar

But still the same …..

 

Where should I put it ?

 

 

Problem -2-

 

Once the seam jars are in domain1\lib; I can’t use glassfish with any other project

I mean I got some simple ; plain standards projects deployed;

Working fine.

I just put jboss-seam.jar in domain1\lib and they don’t work any more.

 

Any access to my old apps results in this kind of exceptions :

 

 

executePhase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@1970ced) threw exception

java.lang.NullPointerException

        at org.jboss.seam.jsf.SeamViewHandler.calculateLocale(SeamViewHandler.java:55)

        at com.sun.faces.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:350)

…….

……

      at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)

        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)

        at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)

ApplicationDispatcher[/example] PWC1231: Servlet.service() for servlet FacesServlet threw exception

java.lang.NullPointerException

        at org.jboss.seam.jsf.SeamViewHandler.calculateLocale(SeamViewHandler.java:55)

        at com.sun.faces.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:350)

        at org.jboss.seam.jsf.SeamViewHandler.createView(SeamViewHandler.java:68)

        at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:203)

        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)

 

If I stop glassfish; remove the seam’s jar and restart  it’s OK !!

 

I don’t specially want to be forced to use JBoss Server,

So I keep Glassfish and I look for finding the good resources that I can read to know exactly how to deal with these kind of situation.

 

Thanks for your help.

 

 

 


Re: Where to put Seam librairies

by Shreedhar Ganapathy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
adding GlassFish users list.

Henoc wrote:

Well another question guys ;

Not wanting to include in my .jar / .ear Seam libraries every time I build an app

I said to myself, well just put it there in my domain’s lib folder.

(seems to be a straight and good idea  ?)

 

 

Well two problems arise , I’m struggling with… as I can’t found a solution by myself ,

 maybe I can get some hints from you   :

 

Problem -1-

 

 

Not really a big deal but I wish I understand better how this kind of issue should be addressed.

It can be for any kind of framework coming with it’s own logging

Look at this log (from my Glassfish server start-up :))

WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080

WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181

WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848

Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/example'

log4j:WARN No appenders could be found for logger (org.jboss.seam.jsf.SeamPhaseListener).

log4j:WARN Please initialize the log4j system properly.

 

I tried providing log4j.properties or log4J.xml file in glassfish/domains/domain1/lib , just along with my jboss-seam.jar

But still the same …..

 

Where should I put it ?

 

 

Problem -2-

 

Once the seam jars are in domain1\lib; I can’t use glassfish with any other project

I mean I got some simple ; plain standards projects deployed;

Working fine.

I just put jboss-seam.jar in domain1\lib and they don’t work any more.

 

Any access to my old apps results in this kind of exceptions :

 

 

executePhase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@1970ced) threw exception

java.lang.NullPointerException

        at org.jboss.seam.jsf.SeamViewHandler.calculateLocale(SeamViewHandler.java:55)

        at com.sun.faces.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:350)

…….

……

      at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)

        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)

        at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)

ApplicationDispatcher[/example] PWC1231: Servlet.service() for servlet FacesServlet threw exception

java.lang.NullPointerException

        at org.jboss.seam.jsf.SeamViewHandler.calculateLocale(SeamViewHandler.java:55)

        at com.sun.faces.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:350)

        at org.jboss.seam.jsf.SeamViewHandler.createView(SeamViewHandler.java:68)

        at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:203)

        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)

 

If I stop glassfish; remove the seam’s jar and restart  it’s OK !!

 

I don’t specially want to be forced to use JBoss Server,

So I keep Glassfish and I look for finding the good resources that I can read to know exactly how to deal with these kind of situation.

 

Thanks for your help.

 

 

 


Re: Where to put Seam librairies

by Wouter van Reeven :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Henoc,


Unfortunately I don't have a solution to either of the two questions you asked.
Still, here's a try at it:

1) Did you try to put your log4j.properties file in the WEB-INF lib of your
app? I didn't try this myself, but MAYBE it works...

2) How many Seam-enabled projects do you intend to develop and run? You might
want to consider creating a domain for them and run them in there. This isn't
exactly a solution but at least your old apps continue working.


HTH, Wouter van Reeven

On Sat, May 31, 2008 at 11:54:24AM -0700, Shreedhar Ganapathy wrote:

> adding GlassFish users list.
>
> Henoc wrote:
>
>
>     Well another question guys ;
>     Not wanting to include in my .jar / .ear Seam libraries every time I build
>     an app
>     I said to myself, well just put it there in my domain’s lib folder.
>     (seems to be a straight and good idea  ?)
>
>
>     Well two problems arise , I’m struggling with… as I can’t found a solution
>     by myself ,
>      maybe I can get some hints from you   :
>      
>     Problem -1-
>      
>      
>     Not really a big deal but I wish I understand better how this kind of issue
>     should be addressed.
>     It can be for any kind of framework coming with it’s own logging
>     Look at this log (from my Glassfish server start-up :))
>     …
>     …
>     WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
>     WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
>     WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
>     Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for
>     context '/example'
>     log4j:WARN No appenders could be found for logger
>     (org.jboss.seam.jsf.SeamPhaseListener).
>     log4j:WARN Please initialize the log4j system properly.
>     …
>     …
>      
>     I tried providing log4j.properties or log4J.xml file in glassfish/domains/
>     domain1/lib , just along with my jboss-seam.jar
>     But still the same …..
>
>     Where should I put it ?
>      
>
>     Problem -2-
>
>     Once the seam jars are in domain1\lib; I can’t use glassfish with any other
>     project
>     I mean I got some simple ; plain standards projects deployed;
>     Working fine.
>     I just put jboss-seam.jar in domain1\lib and they don’t work any more.
>      
>     Any access to my old apps results in this kind of exceptions :
>      
>
>     executePhase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@1970ced)
>     threw exception
>     java.lang.NullPointerException
>             at org.jboss.seam.jsf.SeamViewHandler.calculateLocale
>     (SeamViewHandler.java:55)
>             at com.sun.faces.application.ViewHandlerImpl.createView
>     (ViewHandlerImpl.java:350)
>     …….
>     ……
>           at
>     com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask
>     (PortUnificationPipeline.java:380)
>             at com.sun.enterprise.web.connector.grizzly.TaskBase.run
>     (TaskBase.java:265)
>             at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run
>     (SSLWorkerThread.java:106)
>     ApplicationDispatcher[/example] PWC1231: Servlet.service() for servlet
>     FacesServlet threw exception
>     java.lang.NullPointerException
>             at org.jboss.seam.jsf.SeamViewHandler.calculateLocale
>     (SeamViewHandler.java:55)
>             at com.sun.faces.application.ViewHandlerImpl.createView
>     (ViewHandlerImpl.java:350)
>             at org.jboss.seam.jsf.SeamViewHandler.createView
>     (SeamViewHandler.java:68)
>             at com.sun.faces.lifecycle.RestoreViewPhase.execute
>     (RestoreViewPhase.java:203)
>             at com.sun.faces.lifecycle.LifecycleImpl.phase
>     (LifecycleImpl.java:251)
>
>     If I stop glassfish; remove the seam’s jar and restart  it’s OK !!
>
>     I don’t specially want to be forced to use JBoss Server,
>
>     So I keep Glassfish and I look for finding the good resources that I can
>     read to know exactly how to deal with these kind of situation.
>
>      
>
>     Thanks for your help.
>
>      
>
>      
>
>      
>
--

People: "If she weighs the same as a Duck, she's made of wood!"
Sir Bedevere: "And therefore...?"

RE: Where to put Seam librairies

by Henoc@gbconcept.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Wouter;
Thanks for your tip:
 in fact I got a number of little projects I'm dealing with for acquering practice with all these techno (which are new for me : Seam/facelets/richfaces) that's why I was trying to put my libs in the domain to save myself the extra-time (due to another little inconvenience I had with glassfish as you can see in another thread) of incorporating these jars and libs in the app's archive.

Your approach of two domains is certainly the better one for now, even if I don't understand WHY glassfish' troubles with this.


PS : for the first point (the log4j trouble) ,
 I didn't said it but I have tried already !! it is quite uselessly made complicated on this very basic point. One should not be breaking is head to know where to put log properties...



Thanks I will go on your idea with the reserved domain.

Sincerly

-----Message d'origine-----
De : Wouter van Reeven [mailto:wouter@...]
Envoyé : lundi 2 juin 2008 20:38
À : nbj2ee@...
Cc : users@...
Objet : Re: [nbj2ee] Where to put Seam librairies

Hi Henoc,


Unfortunately I don't have a solution to either of the two questions you asked.
Still, here's a try at it:

1) Did you try to put your log4j.properties file in the WEB-INF lib of your
app? I didn't try this myself, but MAYBE it works...

2) How many Seam-enabled projects do you intend to develop and run? You might
want to consider creating a domain for them and run them in there. This isn't
exactly a solution but at least your old apps continue working.


HTH, Wouter van Reeven

On Sat, May 31, 2008 at 11:54:24AM -0700, Shreedhar Ganapathy wrote:

> adding GlassFish users list.
>
> Henoc wrote:
>
>
>     Well another question guys ;
>     Not wanting to include in my .jar / .ear Seam libraries every time I build
>     an app
>     I said to myself, well just put it there in my domain’s lib folder.
>     (seems to be a straight and good idea  ?)
>
>
>     Well two problems arise , I’m struggling with… as I can’t found a solution
>     by myself ,
>      maybe I can get some hints from you   :
>      
>     Problem -1-
>      
>      
>     Not really a big deal but I wish I understand better how this kind of issue
>     should be addressed.
>     It can be for any kind of framework coming with it’s own logging
>     Look at this log (from my Glassfish server start-up :))
>     …
>     …
>     WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
>     WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
>     WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
>     Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for
>     context '/example'
>     log4j:WARN No appenders could be found for logger
>     (org.jboss.seam.jsf.SeamPhaseListener).
>     log4j:WARN Please initialize the log4j system properly.
>     …
>     …
>      
>     I tried providing log4j.properties or log4J.xml file in glassfish/domains/
>     domain1/lib , just along with my jboss-seam.jar
>     But still the same …..
>
>     Where should I put it ?
>      
>
>     Problem -2-
>
>     Once the seam jars are in domain1\lib; I can’t use glassfish with any other
>     project
>     I mean I got some simple ; plain standards projects deployed;
>     Working fine.
>     I just put jboss-seam.jar in domain1\lib and they don’t work any more.
>      
>     Any access to my old apps results in this kind of exceptions :
>      
>
>     executePhase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@1970ced)
>     threw exception
>     java.lang.NullPointerException
>             at org.jboss.seam.jsf.SeamViewHandler.calculateLocale
>     (SeamViewHandler.java:55)
>             at com.sun.faces.application.ViewHandlerImpl.createView
>     (ViewHandlerImpl.java:350)
>     …….
>     ……
>           at
>     com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask
>     (PortUnificationPipeline.java:380)
>             at com.sun.enterprise.web.connector.grizzly.TaskBase.run
>     (TaskBase.java:265)
>             at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run
>     (SSLWorkerThread.java:106)
>     ApplicationDispatcher[/example] PWC1231: Servlet.service() for servlet
>     FacesServlet threw exception
>     java.lang.NullPointerException
>             at org.jboss.seam.jsf.SeamViewHandler.calculateLocale
>     (SeamViewHandler.java:55)
>             at com.sun.faces.application.ViewHandlerImpl.createView
>     (ViewHandlerImpl.java:350)
>             at org.jboss.seam.jsf.SeamViewHandler.createView
>     (SeamViewHandler.java:68)
>             at com.sun.faces.lifecycle.RestoreViewPhase.execute
>     (RestoreViewPhase.java:203)
>             at com.sun.faces.lifecycle.LifecycleImpl.phase
>     (LifecycleImpl.java:251)
>
>     If I stop glassfish; remove the seam’s jar and restart  it’s OK !!
>
>     I don’t specially want to be forced to use JBoss Server,
>
>     So I keep Glassfish and I look for finding the good resources that I can
>     read to know exactly how to deal with these kind of situation.
>
>      
>
>     Thanks for your help.
>
>      
>
>      
>
>      
>
--

People: "If she weighs the same as a Duck, she's made of wood!"
Sir Bedevere: "And therefore...?"

LightInTheBox - Buy quality products at wholesale price