Calvin Simmons (JIRA)
2016-10-05 16:03:20 UTC
Calvin Simmons created COCOON-2355:
--------------------------------------
Summary: XSP classes not found when server context path contains multiple directories
Key: COCOON-2355
URL: https://issues.apache.org/jira/browse/COCOON-2355
Project: Cocoon
Issue Type: Bug
Components: * Cocoon Core
Affects Versions: 2.1.12
Reporter: Calvin Simmons
Cocoon is unable to access generated xsp classes when a server is configured with a context path more than one level deep.
server.xml context:
<Context trusted="false" reloadable="true" debug="0" crossContext="true" docBase="context" path="/level1/level2"> </Context>
The class files will be cached with a folder name /level#level2 and when they are accessed a class not found exception will be generated.
org.apache.cocoon.ProcessingException: Language Exception
Caused by: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\conf\forms\file_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.conf.forms.file_xsp
at org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProgram(JavaLanguage.java:173)
at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:178)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loadProgram(ProgramGeneratorImpl.java:410)
... 73 more
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
--------------------------------------
Summary: XSP classes not found when server context path contains multiple directories
Key: COCOON-2355
URL: https://issues.apache.org/jira/browse/COCOON-2355
Project: Cocoon
Issue Type: Bug
Components: * Cocoon Core
Affects Versions: 2.1.12
Reporter: Calvin Simmons
Cocoon is unable to access generated xsp classes when a server is configured with a context path more than one level deep.
server.xml context:
<Context trusted="false" reloadable="true" debug="0" crossContext="true" docBase="context" path="/level1/level2"> </Context>
The class files will be cached with a folder name /level#level2 and when they are accessed a class not found exception will be generated.
org.apache.cocoon.ProcessingException: Language Exception
Caused by: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\conf\forms\file_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.conf.forms.file_xsp
at org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProgram(JavaLanguage.java:173)
at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:178)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loadProgram(ProgramGeneratorImpl.java:410)
... 73 more
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)