[opencms-dev] WebLogic & OpenCms/Flex errors (PROBLEM SOURCE FOUND)

Alexander Kandzior alex at opencms.com
Wed May 15 18:59:09 CEST 2002


Hi Mark,

I am pretty sure the issue relates to 
the Request/response Wrapper, not the JSP location.
It is normal (in fact wanted) that the JSPs can not be 
accessed directly - you can of course do a static export to have
them in your "standard" directories.

The "blank page" issue might relate to a known behaviour
in Weblogic that requires explicitly calling a flush() 
on the ServletOutputStream. 

I will be able to address this issue next week.

Best Regards,
Alex.

OpenCms Group

> -----Original Message-----
> From: owner-opencms-dev at www.opencms.org 
> [mailto:owner-opencms-dev at www.opencms.org] On Behalf Of 
> mfoley5 at csc.com.au
> Sent: Wednesday, May 15, 2002 12:20 PM
> To: opencms-dev at www.opencms.org
> Subject: Re: [opencms-dev] WebLogic & OpenCms/Flex errors 
> (PROBLEM SOURCE FOUND)
> 
> 
> Hi All (and Alex!)
> 
> I think I have found my problem:  WebLogic does not allow 
> JSPs to run from within the WEB-INF directory.  Since 
> OpenCms/Flex puts JSPs into either WEB-INF/jsp/online  or  
> WEB-INF/jsp/offline  this prohibits the use of JSPs with 
> OpenCms/Flex/WebLogic!
> 
> As a test, I modified CmsJspLoader.java to generate the URI 
> as "/ocms/jsp/online/TFlexTestTTestJsp.jsp.809928697.jsp", 
> and copied TFlexTestTTestJsp.jsp.809928697.jsp  there from 
> /WEB-INF/jsp/online, at which point previewing the file from 
> within the Workplace worked fine. Going straight in with a 
> URL of 
> "http://localhost:7001/opencms/opencms/FlexTest/TestJsp.jsp" 
> produces a blank page (again).
> 
> Would it be hard, or distasteful, to modify OpenCms/Flex to 
> work with WebLogic?  This could be a project-killer for us 
> otherwise...
> 
> Thanks for any suggestions etc.,
> 
> Mark
> 
> Mark Foley
> __________________________________________________
> CSC
> 212 Northbourne Ave, Braddon, ACT 2612
> Ph: +61-2-62468487    Email: mfoley5 at csc.com.au
> --------------------------------------------------------------
> --------------------------
> 
> This email, including any attachments, is intended only for use by the
> addressee(s) and may contain confidential and/or personal 
> information and may also be the subject of legal privilege. 
> Any personal information contained in this email is not to be 
> used or disclosed for any purpose other than the purpose for 
> which you have received it. If you are not the intended 
> recipient, you must not disclose or use the information 
> contained in it. In this case, please let me know by return 
> email, delete the message permanently from your system and 
> destroy any copies.
> --------------------------------------------------------------
> --------------------------
> 
> 
> 
> 
> 
> mfoley5 at csc.com.au@www.opencms.org on 15/05/2002 01:56:41 PM
> 
> Please respond to opencms-dev at www.opencms.org
> 
> Sent by:    owner-opencms-dev at www.opencms.org
> 
> 
> To:    opencms-dev at www.opencms.org
> cc:
> Subject:    Re: [opencms-dev] WebLogic & OpenCms/Flex errors
> 
> Hi All,
> 
> I put jakarta-oro-2_0_6.jar in the server classpath ahead of 
> Weblogic's jars and the problems below are no longer evident. 
>  Previewing HTML files works fine.
> 
> BUT, JSPs don't.   I get no errors, but only a blank page -- 
> viewing the
> page source (below) shows only a normal, empty, HTML document.
> 
> I'm digging through the source code, but if anybody can point 
> me in the right direction I'd be pleased.
> 
> Regards,
> Mark
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 
> Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type 
> content="text/html; charset=windows-1252"></HEAD> <BODY></BODY></HTML>
> 
> Mark Foley
> __________________________________________________
> CSC
> 212 Northbourne Ave, Braddon, ACT 2612
> Ph: +61-2-62468487    Email: mfoley5 at csc.com.au
> --------------------------------------------------------------
> --------------------------
> 
> 
> This email, including any attachments, is intended only for use by the
> addressee(s) and may contain confidential and/or personal 
> information and may also be the subject of legal privilege. 
> Any personal information contained in this email is not to be 
> used or disclosed for any purpose other than the purpose for 
> which you have received it. If you are not the intended 
> recipient, you must not disclose or use the information 
> contained in it. In this case, please let me know by return 
> email, delete the message permanently from your system and 
> destroy any copies.
> --------------------------------------------------------------
> --------------------------
> 
> 
> 
> 
> 
> 
> mfoley5 at csc.com.au@www.opencms.org on 14/05/2002 06:24:27 PM
> 
> Please respond to opencms-dev at www.opencms.org
> 
> Sent by:    owner-opencms-dev at www.opencms.org
> 
> 
> To:    opencms-dev at www.opencms.org
> cc:
> Subject:    [opencms-dev] WebLogic & OpenCms/Flex errors
> 
> Hi Alex,
> 
> OpenCms/Flex and Weblogic 6.1 SP1 initially seemed to work 
> fine together (new project creation, new users, creating 
> directories, pages, lock, unlock, etc.) but when I selected 
> the first sample page I created to preview it, I got a 
> NoSuchMethodError exception on the WebLogic server (error 
> pasted below) and the URL in the browser window which opened was as
> follows: 
> http://mo:53101/opencms/opencms/system/workplace/action/explor
> erShowResource.html?url=/opencms/opencms/MarkFoley1/index.html
> 
> 
> 
> The browser displays an Error 500 - Internal Server Error.  
> However, opening a new browser window and entering 
> http://mo:53101/opencms/opencms/MarkFoley1/index.html in the 
> URL works fine.
> 
> ...
> alpha.1 Flex
> 
> Copyright (C) 2001 The OpenCms Group
> OpenCms comes with ABSOLUTELY NO WARRANTY
> This is free software, and you are welcome to
> redistribute it under certain conditions.
> Please see the GNU Lesser General Public Licence for
> further details.
> 
> <May 14, 2002 5:43:15 PM EST> <Error> <HTTP> 
> <[WebAppServletContext(1945241,opencms,/opencms)] Servlet 
> failed with Exception java.lang.NoSuchMethodError
>         at
> com.opencms.util.LinkSubstitution.getLinkSubstitution(LinkSubs
> titution.java:219)
> 
> 
>         at
> com.opencms.file.CmsObject.getLinkSubstitution(CmsObject.java:1692)
>         at
> com.opencms.workplace.CmsExplorerShowResource.getContent(CmsEx
> plorerShowResource.java:60)
> 
> 
>         at
> com.opencms.template.cache.CmsElementXml.getContent(CmsElement
> Xml.java:169)
>         at
> com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:169)
>         at
> com.opencms.template.cache.CmsElementCache.callCanonicalRoot(C
> msElementCache.java:148)
> 
> 
>         at
> com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLaunc
> her.java:228)
>         at
> com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:283)
>         at
> com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:272)
>         at com.opencms.core.OpenCms.showResource(OpenCms.java:595)
>         at
> com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:223)
>         at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>         at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> tStubImpl.java:265)
> 
> 
>         at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> tStubImpl.java:200)
> 
> 
>         at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(W
> ebAppServletContext.java:2456)
> 
> 
>         at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRe
> questImpl.java:2039)
> 
> 
>         at 
> weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
>         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> >
> 
> 
> 
> The second error situation I've found occurs when I try to 
> publish a JSP
> page:  I get an Error 500--Internal Server Error in the 
> OpenCms workplace, and the following exception in the 
> WebLogic server console:
> 
> <May 14, 2002 6:11:00 PM EST> <Error> <HTTP> 
> <[WebAppServletContext(1945241,opencms,/opencms)] Servlet 
> failed with Exception java.lang.NoSuchMethodError
>         at
> com.opencms.file.CmsStaticExport.handleDynamicRules(CmsStaticE
> xport.java:738)
> 
> 
>         at
> com.opencms.file.CmsStaticExport.getExternLinkName(CmsStaticEx
> port.java:602)
> 
> 
>         at
> com.opencms.file.CmsStaticExport.exportLink(CmsStaticExport.java:445)
>         at
> com.opencms.file.CmsStaticExport.<init>(CmsStaticExport.java:170)
>         at
> com.opencms.file.genericSql.CmsResourceBroker.exportStaticReso
> urces(CmsResourceBroker.java:4435)
> 
> 
>         at
> com.opencms.file.CmsObject.exportStaticResources(CmsObject.java:1423)
>         at 
> com.opencms.file.CmsObject.publishProject(CmsObject.java:2291)
>         at 
> com.opencms.file.CmsObject.publishResource(CmsObject.java:2381)
>         at
> com.opencms.workplace.CmsPublishResource.getContent(CmsPublish
> Resource.java:124)
> 
> 
>         at
> com.opencms.template.cache.CmsElementXml.getContent(CmsElement
> Xml.java:169)
>         at
> com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:169)
>         at
> com.opencms.template.cache.CmsElementCache.callCanonicalRoot(C
> msElementCache.java:148)
> 
> 
>         at
> com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLaunc
> her.java:228)
>         at
> com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:283)
>         at
> com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:272)
>         at com.opencms.core.OpenCms.showResource(OpenCms.java:595)
>         at
> com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:223)
>         at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>         at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> tStubImpl.java:265)
> 
> 
>         at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> tStubImpl.java:200)
> 
> 
>         at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(W
> ebAppServletContext.java:2456)
> 
> 
>         at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRe
> questImpl.java:2039)
> 
> 
>         at 
> weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
>         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> >
> 
> Selecting the JSP page for "preview" results in the same 
> error as for HTML pages.
> 
> Finally, opening a new browser window and entering 
> http://mo:53101/opencms/opencms/MarkFoley1/Mar> ksJSP.jsp in 
> the URL does not work, producing a blank 
> browser and the first error message in the WebLogic server console.
> 
> I'm doing further tests on this, and will report any 
> solutions or further problems I find.
> 
> Regards,
> Mark
> 
> Mark Foley
> __________________________________________________
> CSC
> 212 Northbourne Ave, Braddon, ACT 2612
> Ph: +61-2-62468487    Email: mfoley5 at csc.com.au
> --------------------------------------------------------------
> --------------------------
> 
> 
> 
> This email, including any attachments, is intended only for use by the
> addressee(s) and may contain confidential and/or personal 
> information and may also be the subject of legal privilege. 
> Any personal information contained in this email is not to be 
> used or disclosed for any purpose other than the purpose for 
> which you have received it. If you are not the intended 
> recipient, you must not disclose or use the information 
> contained in it. In this case, please let me know by return 
> email, delete the message permanently from your system and 
> destroy any copies.
> --------------------------------------------------------------
> --------------------------
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 





More information about the opencms-dev mailing list