struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snpe <s...@snpe.co.yu>
Subject Re: struts-faces
Date Thu, 08 Apr 2004 13:41:54 GMT
Hello Matthias,
I don't try my project - i try struts-faces2.war after compile (I add jsf-*.jar i WEB_INF.lib
and 
JSF tlds in WEB-INF;there is struts-faces.jar)
Application struts-faces2 don't work correct
I will try my project with JSF

Thanks
On Thursday 08 April 2004 07:34 am, Matthias Wessendorf wrote:
> mmm,
> mine works.
> i used to shiped build.xml to compile it,
> and deploy it in my tomcat 5.X
> 
> i guess yours compile too, because 
> "org.apache.struts.faces.application.FacesTilesRequestProcessor.doForwar
> d(FacesTilesRequestProcessor.java:148)"
> is a class, that is delivered by struts-faces.jar :-)
> 
> anyway, i copied also struts-faces.jar (in /dist/lib)
> to a project of mine, 
> there it works also.
> using tiles and validator in that "mixed-project"
> 
> (but that in tomcat4 (of cource there you need so extra jars for
> j2ee.1.3-containers)
> (and in jboss 3.2.3 with jetty it runs also)
> 
> however,
> is a struts-faces.jar available, after you compiled it?
> 
> 
> -----Original Message-----
> From: snpe [mailto:snpe@snpe.co.yu] 
> Sent: Thursday, April 08, 2004 2:46 AM
> To: Struts Developers List
> Subject: Re: struts-faces
> 
> 
> Build work now, but this is in tomcat log for struts-faces2
> (struts-faces2.war in tomcat 5.0.19, linux) Apr 8, 2004 2:38:59 AM
> org.apache.catalina.core.ContainerBase log
> INFO: Removing web application at context path /struts-blank Apr 8, 2004
> 2:39:24 AM org.apache.catalina.core.StandardContext reload
> INFO: Reloading this Context has started
> Apr 8, 2004 2:39:24 AM
> org.apache.struts.webapp.example2.memory.MemoryDatabasePlugIn destroy
> INFO: Finalizing memory database plug in
> Apr 8, 2004 2:39:33 AM
> org.apache.struts.faces.application.ActionListenerImpl <init>
> INFO: Create ActionListener wrapping instance of type
> 'com.sun.faces.application.ActionListenerImpl'
> Apr 8, 2004 2:39:53 AM org.apache.struts.tiles.TilesPlugin
> initDefinitionsFactory
> INFO: Tiles definition factory loaded for module ''.
> Apr 8, 2004 2:39:53 AM
> org.apache.struts.webapp.example2.memory.MemoryDatabasePlugIn init
> INFO: Initializing memory database plug in from '/WEB-INF/database.xml'
> Apr 8, 2004 2:39:53 AM org.apache.struts.validator.ValidatorPlugIn
> initResources
> INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
> Apr 8, 2004 2:39:53 AM org.apache.struts.validator.ValidatorPlugIn
> initResources
> INFO: Loading validation rules file from '/WEB-INF/validation.xml' Apr
> 8, 2004 2:39:54 AM org.apache.commons.digester.Digester error
> SEVERE: Parse Error at line 29 column 17: Document is invalid: no
> grammar found.
> org.xml.sax.SAXParseException: Document is invalid: no grammar found.
> 	at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
> wn Source)
> 	at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
> Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> 	at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
> 	at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scan
> RootElementHook(Unknown Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
> patcher.dispatch(Unknown Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
> wn Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
> 	at
> org.apache.commons.digester.Digester.parse(Digester.java:1567)
> 	at
> org.apache.commons.validator.ValidatorResources.<init>(ValidatorResource
> s.java:152)
> 	at
> org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugI
> n.java:233)
> 	at
> org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:16
> 4)
> 	at
> org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
> ava:827)
> 	at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:327)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> 	at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
> a:1044)
> 	at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
> 	at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
> ava:3959)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4284
> )
> 	at
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:299
> 0)
> 	at
> org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:10
> 19)
> 	at
> org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet
> .java:524)
> 	at
> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.
> java:147)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:284)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:204)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:257)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:151)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 67)
> 	at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
> textValve.java:245)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:199)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:151)
> 	at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
> Base.java:587)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:149)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 67)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :184)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:151)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :164)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:149)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 67)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:156)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:151)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 67)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
> 	at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
> 0)
> 	at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
> onnection(Http11Protocol.java:702)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
> 1)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:644)
> 	at java.lang.Thread.run(Thread.java:534)
> Apr 8, 2004 2:39:54 AM org.apache.commons.digester.Digester error
> SEVERE: Parse Error at line 29 column 17: Document root element
> "form-validation", must match DOCTYPE root "null".
> org.xml.sax.SAXParseException: Document root element "form-validation",
> must match DOCTYPE root "null".
> 	at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
> wn Source)
> 	at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
> Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> 	at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
> 	at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scan
> RootElementHook(Unknown Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
> patcher.dispatch(Unknown Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
> wn Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
> 	at
> org.apache.commons.digester.Digester.parse(Digester.java:1567)
> 	at
> org.apache.commons.validator.ValidatorResources.<init>(ValidatorResource
> s.java:152)
> 	at
> org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugI
> n.java:233)
> 	at
> org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:16
> 4)
> 	at
> org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
> ava:827)
> 	at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:327)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> 	at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
> a:1044)
> 	at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
> 	at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
> ava:3959)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4284
> )
> 	at
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:299
> 0)
> 	at
> org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:10
> 19)
> 	at
> org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet
> .java:524)
> 	at
> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.
> java:147)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:284)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:204)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:257)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:151)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 67)
> 	at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
> textValve.java:245)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:199)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:151)
> 	at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
> Base.java:587)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:149)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 67)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :184)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:151)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :164)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:149)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 67)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:156)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:151)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 67)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
> 	at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
> 0)
> 	at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
> onnection(Http11Protocol.java:702)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
> 1)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:644)
> 	at java.lang.Thread.run(Thread.java:534)
> 
> when I start application I get netx :
> 
> Apr 8, 2004 2:43:37 AM org.apache.struts.tiles.TilesRequestProcessor
> initDefinitionsMapping
> INFO: Tiles definition factory found for request processor ''. Apr 8,
> 2004 2:43:38 AM com.sun.faces.application.ViewHandlerImpl
> getFacesMapping
> WARNING: Unable to determine FaceServlet mapping for servlet path
> '/welcome.do'.
> 
> 
> Try login and get :
> 
> Apr 8, 2004 2:45:16 AM
> org.apache.struts.faces.application.ActionListenerImpl processAction
> SEVERE: Exception processing action event
> javax.faces.event.ActionEvent[source=javax.faces.component.html.HtmlComm
> andButton@19c9a58]
> javax.faces.FacesException: org.apache.jasper.JasperException
> 	at
> com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.j
> ava:327)
> 	at
> com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.jav
> a:142)
> 	at
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.
> java:87)
> 	at
> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
> 	at
> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
> 	at
> org.apache.struts.faces.application.FacesTilesRequestProcessor.doForward
> (FacesTilesRequestProcessor.java:148)
> 	at
> org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
> ocessor.java:388)
> 	at
> org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
> RequestProcessor.java:316)
> 	at
> org.apache.struts.faces.application.FacesTilesRequestProcessor.processFo
> rwardConfig(FacesTilesRequestProcessor.java:264)
> 	at
> org.apache.struts.action.RequestProcessor.processValidate(RequestProcess
> or.java:957)
> 	at
> org.apache.struts.faces.application.FacesTilesRequestProcessor.processVa
> lidate(FacesTilesRequestProcessor.java:404)
> 	at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> 206)
> 	at
> org.apache.struts.faces.application.ActionListenerImpl.processAction(Act
> ionListenerImpl.java:172)
> 	at javax.faces.component.UICommand.broadcast(UICommand.java:312)
> 	at
> javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:266)
> 	at
> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:380)
> 	at
> com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplication
> Phase.java:75)
> 	at
> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
> 	at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
> 	at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:284)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:204)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:257)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:151)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 67)
> 	at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
> textValve.java:245)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:199)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:151)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 67)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :184)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:151)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :164)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:149)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 67)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:156)
> 	at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
> ntext.java:151)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
> 67)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
> 	at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
> 0)
> 	at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
> onnection(Http11Protocol.java:702)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
> 1)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:644)
> 	at java.lang.Thread.run(Thread.java:534)
> Caused by: org.apache.jasper.JasperException
> 	at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> va:358)
> 	at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> 	at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:284)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:204)
> 	at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
> her.java:750)
> 	at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
> nDispatcher.java:510)
> 	at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
> atcher.java:445)
> 	at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
> cher.java:359)
> 	at
> com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.j
> ava:322)
> 	... 43 more
> 
> 
> On Wednesday 07 April 2004 09:40 pm, Matthias Wessendorf wrote:
> > the candidate from last week is working fine in my web-app
> > 
> > any error-details?
> > 
> > cheers
> > 
> > -----Original Message-----
> > From: snpe [mailto:snpe@snpe.co.yu]
> > Sent: Thursday, April 08, 2004 1:24 AM
> > To: struts-dev@jakarta.apache.org
> > Subject: struts-faces
> > 
> > 
> > Is struts-faces updated in cvs - I can't compile struts-faces in last 
> > month
> > 
> > regards
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message