users@glassfish.java.net

Re: [nbj2ee] Where to put Seam librairies

From: Shreedhar Ganapathy <Shreedhar.Ganapathy_at_Sun.COM>
Date: Sat, 31 May 2008 11:54:24 -0700

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_at_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.
>
>
>
>
>
>
>