Torsten Dettborn (JIRA) wrote:
[
https://issues.apache.org/jira/browse/PLUTO-308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Torsten Dettborn updated PLUTO-308:
-----------------------------------
Attachment: jaxb_n_api-r12.120307.patch
This patch contains the last patch.
changed api to revision 12
* added necessary *DD classes, due to new features e.g. FilterDD
* now it is possible to bind both JSR168 and JSR286 portlets (portlet.xml) to
jaxb
- For all fields, that are in jsr 168 too, i added a new field, with the
appropriate
namespace. The getter and setter methods returns always the right value.
- This was essential, because at this time, the xml schema of both 1_0 and
2_0 are
different (e.g. expiration-cache)
* added a JAXB unit test, for testing both jsr 168 and jsr 286 portlet.xml
* added the behavior described in
https://issues.apache.org/jira/browse/PLUTO-337
I've tried to verify this patch, but currently without any success.
I'm on a windows machine with maven 2.0.5 and tomcat 5.5.20.
Here the error I get at build time:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running
org.apache.pluto.descriptors.services.jaxb.JaxBDescriptorServiceImplTest
java.lang.IllegalArgumentException: is parameter must not be null
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
arshallerImpl.java:179)
at
org.apache.pluto.descriptors.services.jaxb.PortletAppDescriptorServic
eImpl.read(PortletAppDescriptorServiceImpl.java:40)
at
org.apache.pluto.descriptors.services.jaxb.JaxBDescriptorServiceImplT
est.testReadNullDescriptor(JaxBDescriptorServiceImplTest.java:323)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:228)
at junit.framework.TestSuite.run(TestSuite.java:223)
at
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.
java:35)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
tSet(AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
stractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:290)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:818)
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.828 sec
Running
org.apache.pluto.descriptors.services.castor.WebAppDescriptorServiceImpl
Test
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.578 sec
Results :
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0
Here the error when starting pluto after logging in:
HTTP Status 500 -
------------------------------------------------------------------------
*type* Exception report
*message*
*description* _The server encountered an internal error () that
prevented it from fulfilling this request._
*exception*
javax.servlet.ServletException: Servlet execution threw an exception
*root cause*
java.lang.NoClassDefFoundError
org.apache.pluto.core.PortletContainerImpl.getPortletApplicationDescriptor(PortletContainerImpl.java:343)
org.apache.pluto.driver.services.impl.resource.SupportedModesServiceImpl.loadPortletModes(SupportedModesServiceImpl.java:187)
org.apache.pluto.driver.services.impl.resource.SupportedModesServiceImpl.initInternal(SupportedModesServiceImpl.java:137)
org.apache.pluto.driver.services.impl.resource.SupportedModesServiceImpl.init(SupportedModesServiceImpl.java:120)
org.apache.pluto.driver.PortalDriverServlet.initSupportedModesService(PortalDriverServlet.java:309)
org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:112)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
*note* _The full stack trace of the root cause is available in the
Apache Tomcat/5.5.20 logs._
Here parts of the log file:
INFO: ********** Pluto Portal Driver Started **********
Mar 16, 2007 12:04:50 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.ExceptionInInitializerError
at
org.apache.pluto.core.PortletContextManager.getPortletContext(PortletContextManager.java:84)
at org.apache.pluto.core.PortletServlet.init(PortletServlet.java:102)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
Caused by: java.util.MissingResourceException: Can't find resource for
bundle java.util.PropertyResourceBundle, key
org.apache.pluto.descriptors.services.PortletAppDescriptorService
at java.util.ResourceBundle.getObject(Unknown Source)
at java.util.ResourceBundle.getString(Unknown Source)
at
org.apache.pluto.internal.Configuration.getPortletAppDescriptorServiceImpl(Configuration.java:43)
at
org.apache.pluto.internal.PortletDescriptorRegistry.<init>(PortletDescriptorRegistry.java:89)
at
org.apache.pluto.internal.PortletDescriptorRegistry.<clinit>(PortletDescriptorRegistry.java:51)
... 29 more
Mar 16, 2007 12:04:50 PM org.apache.catalina.core.StandardContext
loadOnStartup
SEVERE: Servlet /pluto threw load() exception
java.lang.ExceptionInInitializerError
at
org.apache.pluto.core.PortletContextManager.getPortletContext(PortletContextManager.java:84)
at org.apache.pluto.core.PortletServlet.init(PortletServlet.java:102)
Caused by: java.util.MissingResourceException: Can't find resource for
bundle java.util.PropertyResourceBundle, key
org.apache.pluto.descriptors.services.PortletAppDescriptorService
at java.util.ResourceBundle.getObject(Unknown Source)
at java.util.ResourceBundle.getString(Unknown Source)
... 29 more
Mar 16, 2007 12:04:50 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.NoClassDefFoundError
at
org.apache.pluto.core.PortletContextManager.getPortletContext(PortletContextManager.java:84)
at org.apache.pluto.core.PortletServlet.init(PortletServlet.java:102)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
shared lib dir:
file:///D:/SW/Apache/Tomcat5.5/shared/lib/activation-1.1.jar
<cid:[email protected]>
file:///D:/SW/Apache/Tomcat5.5/shared/lib/castor-1.0.jar
<cid:[email protected]>
file:///D:/SW/Apache/Tomcat5.5/shared/lib/jaxb-api-2.1.jar
<cid:[email protected]>
file:///D:/SW/Apache/Tomcat5.5/shared/lib/jaxb-impl-2.1.2.jar
<cid:[email protected]>
file:///D:/SW/Apache/Tomcat5.5/shared/lib/pluto-container-1.1.0-286-SNAPSHOT.jar
<cid:[email protected]>
file:///D:/SW/Apache/Tomcat5.5/shared/lib/pluto-descriptor-api-1.1.0-286-SNAPSHOT.jar
<cid:[email protected]>
file:///D:/SW/Apache/Tomcat5.5/shared/lib/pluto-descriptor-impl-1.1.0-286-SNAPSHOT.jar
<cid:[email protected]>
file:///D:/SW/Apache/Tomcat5.5/shared/lib/pluto-taglib-1.1.0-286-SNAPSHOT.jar
<cid:[email protected]>
file:///D:/SW/Apache/Tomcat5.5/shared/lib/portlet-api-2.0-r12.jar
<cid:[email protected]>
file:///D:/SW/Apache/Tomcat5.5/shared/lib/stax-1.2.0.jar
<cid:[email protected]>
file:///D:/SW/Apache/Tomcat5.5/shared/lib/stax-api-1.0.1.jar
<cid:[email protected]>
file:///D:/SW/Apache/Tomcat5.5/shared/lib/xercesImpl-2.6.2.jar
<cid:[email protected]>
file:///D:/SW/Apache/Tomcat5.5/shared/lib/xmlParserAPIs-2.6.2.jar
<cid:[email protected]>
Anyone any idea or more luck with this patch?
Stefan