portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ate Douma <...@douma.nu>
Subject Re: [J2] deployment-refactoring branch
Date Fri, 11 Mar 2005 08:11:41 GMT


Doug Schnelzer wrote:
> I just tried to do a build using the deployment-refactoring branch in
> JBoss 4.0.1sp1 and JDK 1.4.2_03-b02.  I had to add the jboss-web.xml
> file to the demo.war application.  I am now running into a problem. 
> It may have nothing to do with the branch version of the code, but I
> thought I would put the question while I look into it myself.
> 
> The problem is when I try to hit the first page.  It looks like the
> portal is not able to parse the PSML files.  I've included the stack
> trace below.  Could this be caused by any changes in the branch or is
> this just a problem with XML parsing (e.g. Castor / Xerces
> version/classpath).  I did move Xerces, commons-logging, log4j and
> xml-apis to the JBoss common lib (server/default/lib) per the
> JBossHowToDetailed Wiki instructions.

Doug,

I didn't change anything even remotely related to the psml definition or handling
and this definitely looks like a XML parsing problem.
The nested exception is:
Caused by: java.io.UTFDataFormatException: Invalid byte 2 of 3-byte
UTF-8 sequence.
         at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)

Most likely the xerces version are different.

Good luck with the testing.

Ate
> 
> I'm going to try a build from the lasted in CVS to compare...
> 
> Here is my stack trace:
> 2005-03-10 19:20:02,853 [http-0.0.0.0-8080-Processor25] WARN 
> org.apache.jetspeed.om.folder.impl.FolderImpl - getAllNodes() failed
> to create
>  Node: default-page.psml:org.apache.jetspeed.page.PageNotFoundException:
> Could not load the file C:\jboss\server\default\deploy\jetspeed.war
> \WEB-INF\pages\default-page.psml
> org.apache.jetspeed.page.PageNotFoundException: Could not load the
> file C:\jboss\server\default\deploy\jetspeed.war\WEB-INF\pages\default-pa
> ge.psml
>         at org.apache.jetspeed.page.document.CastorFileSystemDocumentHandler.unmarshallDocument(CastorFileSystemDocumentHandler.java:284)
>         at org.apache.jetspeed.page.document.CastorFileSystemDocumentHandler.getDocument(CastorFileSystemDocumentHandler.java:397)
>         at org.apache.jetspeed.page.document.CastorFileSystemDocumentHandler.getDocument(CastorFileSystemDocumentHandler.java:128)
>         at org.apache.jetspeed.om.folder.impl.FolderImpl.getAllNodes(FolderImpl.java:590)
>         at org.apache.jetspeed.om.folder.impl.FolderImpl.getPage(FolderImpl.java:289)
>         at org.apache.jetspeed.om.folder.impl.FolderImpl.getDefaultPage(FolderImpl.java:112)
>         at org.apache.jetspeed.page.impl.CastorXmlPageManager.findProfiledPageAndFolders(CastorXmlPageManager.java:1078)
>         at org.apache.jetspeed.page.impl.CastorXmlPageManager.computeProfiledPageContext(CastorXmlPageManager.java:185)
>         at org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:118)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
>         at org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(PasswordCredentialValveImpl.java:139)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
>         at org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:117)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAsPrivileged(Subject.java:437)
>         at org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:111)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
>         at org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:55)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
>         at org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:127)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
>         at org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:122)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:191)
>         at org.apache.jetspeed.engine.AbstractEngine.service(AbstractEngine.java:259)
>         at org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:225)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
>         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
>         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
>         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
>         at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
>         at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
>         at org.apache.jsp.index_jsp._jspService(index_jsp.java:45)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> $
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:150)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>         at java.lang.Thread.run(Thread.java:534)
> Caused by: java.io.UTFDataFormatException: Invalid byte 2 of 3-byte
> UTF-8 sequence.
>         at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
>         at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
>         at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
>         at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown
> Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> 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.DOMParser.parse(Unknown Source)
>         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
>         at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
>         at org.apache.jetspeed.page.document.CastorFileSystemDocumentHandler.unmarshallDocument(CastorFileSystemDocumentHandler.java:271)
>         ... 77 more
> 2005-03-10 19:20:02,913 [http-0.0.0.0-8080-Processor25] WARN 
> org.apache.jetspeed.om.folder.impl.FolderImpl - getAllNodes() failed
> to create
>  Node: jsf-demo.psml:org.apache.jetspeed.page.PageNotFoundException:
> Could not load the file
> C:\jboss\server\default\deploy\jetspeed.war\WEB
> -INF\pages\jsf-demo.psml
> org.apache.jetspeed.page.PageNotFoundException: Could not load the
> file C:\jboss\server\default\deploy\jetspeed.war\WEB-INF\pages\jsf-demo.p
> sml
>         at org.apache.jetspeed.page.document.CastorFileSystemDocumentHandler.unmarshallDocument(CastorFileSystemDocumentHandler.java:284)
>         at org.apache.jetspeed.page.document.CastorFileSystemDocumentHandler.getDocument(CastorFileSystemDocumentHandler.java:397)
>         at org.apache.jetspeed.page.document.CastorFileSystemDocumentHandler.getDocument(CastorFileSystemDocumentHandler.java:128)
>         at org.apache.jetspeed.om.folder.impl.FolderImpl.getAllNodes(FolderImpl.java:590)
>         at org.apache.jetspeed.om.folder.impl.FolderImpl.getPage(FolderImpl.java:289)
>         at org.apache.jetspeed.om.folder.impl.FolderImpl.getDefaultPage(FolderImpl.java:112)
>         at org.apache.jetspeed.page.impl.CastorXmlPageManager.findProfiledPageAndFolders(CastorXmlPageManager.java:1078)
>         at org.apache.jetspeed.page.impl.CastorXmlPageManager.computeProfiledPageContext(CastorXmlPageManager.java:185)
>         at org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:118)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
>         at org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(PasswordCredentialValveImpl.java:139)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
>         at org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:117)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAsPrivileged(Subject.java:437)
>         at org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:111)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
>         at org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:55)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
>         at org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:127)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
>         at org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:122)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
>         at org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:191)
>         at org.apache.jetspeed.engine.AbstractEngine.service(AbstractEngine.java:259)
>         at org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:225)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
>         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
>         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
>         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
>         at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
>         at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
>         at org.apache.jsp.index_jsp._jspService(index_jsp.java:45)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:150)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> 
> 
> 
> On Thu, 10 Mar 2005 01:18:44 +0100, Ate Douma <ate@douma.nu> wrote:
> 
>>
>>Doug Schnelzer wrote:
>>
>>>Ate,
>>>
>>>We are currently testing the deployment-refactoring branch in Tomcat
>>>5.5.8 and JBoss 4.0.1sp1.  I read through JS2-210 and couldn't see how
>>>we should undeploy a Portlet given the changes in the branch.  Is
>>>there a way to do this yet or do we need to wait for enhancements to
>>>the PAM?
>>
>>Doug,
>>
>>No, it isn't possible yet. I'd planned to provide this through the PAM this
>>week but I haven't been able to find time to do so. I do hope to deliver this
>>as soon as possible because without it I won't commit it yet to the
>>main branch. Maybe I can get something working this weekend...
>>
>>But please, don't let this stop you from testing.
>>The deployment and redeployment you can test out and technically
>>(from classloader management standpoint) those are the difficult onces.
>>If those work as expected, I know my solution is the right way to go :-)
>>
>>Ate
>>
>>
>>>Thanks, Doug
>>>
>>>
>>>On Thu, 10 Mar 2005 00:33:46 +0100, Ate Douma <ate@douma.nu> wrote:
>>>
>>>
>>>>Luc Fouin wrote:
>>>>
>>>>
>>>>>Ate Douma a écrit :
>>>>>
>>>>>
>>>>>
>>>>>>I fully agree. That's the reason I wrote that comment above.
>>>>>>
>>>>>>But, I also still hope we can release a M2 before the end of this
>>>>>>month and I really would like to see the new deployment implementation
>>>>>>be part of it.
>>>>>>
>>>>>>Hopefully others are already testing it too without telling so
>>>>>
>>>>>
>>>>>it seems that the deployment while tomcat is running is not working as
>>>>>well as before, because i was not able to deploy my portlets by copying
>>>>>a *.war* file in _<CATALINA_HOME>/webapps/WEB-INF/deploy_, i had
a ,  i
>>>>>just had to restart Tomcat and it deploy fine...
>>>>
>>>>Make sure you have attributes autoDeploy="true" and unpackWARs="true" defined
>>>>on the <Host ...> element in <CATALINA_HOME>/conf/server.xml.
>>>>Tomcat should hotdeploy the wars itself then. This is one of the changes in
this
>>>>branch: Jetspeed isn't expanding the wars itself anymore!
>>>>
>>>>
>>>>>the pb may be because of me but my portlet used to work and deploy well
>>>>>before on Tomcat5.0.28 - Jdk1.5, as we are now in Tomcat5.5.7 - Jdk1.5
>>>>>
>>>>>
>>>>>Ate, i just saw there were no more *.war* files in _WEB-INF/deploy_, did
>>>>>you change the way they were stored??
>>>>
>>>>Correct.
>>>>When you copy a war in the <CATALINA_HOME/webapps/Jetspeed/WEB-INF/deploy
>>>>folder, "all" Jetspeed does is infuse the war with the required changes
>>>>to the web.xml and add a portlet.tld (if needed). Then the war is *moved*
>>>>to the webapps folder for Tomcat to autoDeploy.
>>>>Previously, these wars were kept in the deploy folder to detect manual deletions
>>>>which than resulted in Jetspeed unregistering the portlet application and
>>>>undeploying the web application.
>>>>I've dropped this feature (for now; a different solution, probably through
>>>>new/enhanced PAM portlets is required).
>>>>
>>>>Please read my comments in http://issues.apache.org/jira/browse/JS2-210 for
>>>>details about what features are changed (and temporarily lost) in this branch.
>>>>
>>>>Ate
>>>>
>>>>
>>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>>>>
>>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>>>
>>>
>>>
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
> 
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message