[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2342) jee5 example can't be deployed to oc4j without classloader issues.

Jay Balunas (JIRA) jira-events at lists.jboss.org
Mon Dec 3 16:26:51 EST 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-2342?page=comments#action_12390340 ] 
            
Jay Balunas commented on JBSEAM-2342:
-------------------------------------

The issue is the aggressive classloaders that oc4j use.  They require all classes to be available even if they are not used.  The documents already discuss some other jar files that are required for oc4j these are additional to those.  

I have fixed the issue following the examples of the other required jars.   The new required jars are dbunit.jar and jboss-embedded-api.jar.  The way it is fixed does not require the documents to be changed.  The user still has to uncomment the oc4j section of the build.xml file.

Attached files:
patch-seam-jee5-build.xml -- diff of examples/j2ee/booking/build.xml for marking the new dependencies
patch-seam-examples-build.xml.txt  -- diff of the examples/build.xml for adding these dependencies to the ear


> jee5 example can't be deployed to oc4j without classloader issues.
> ------------------------------------------------------------------
>
>                 Key: JBSEAM-2342
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2342
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Examples
>    Affects Versions: 2.0.0.GA
>         Environment: RHEL-5 i386
> JDK 1.5.0_13
> oc4j 11.1.1.0.0 Technology Preview
>            Reporter: Jay Balunas
>             Fix For: 2.0.1.GA
>
>         Attachments: patch-seam-examples-build.xml.txt, patch-seam-jee5-build.xml.txt
>
>
> Following the instructions in the /examples/jee5/readme.txt and in the reference guide I could not deploy the jee5 application to oc4j.  I received the following error for both the dbunit and jboss-embedded-api packages.  The application would then fail to deploy and not be available.  
> 2007-12-03 14:20:52.665 ERROR J2EE EJB-03027 [jboss-seam-jee5] An error occured deploying EJB module: oracle.classloader.util.AnnotatedNoClassDefFoundError: 
>           Missing class: org.jboss.embedded.Bootstrap
>         Dependent class: org.jboss.seam.mock.embedded.BootstrapWrapper
>                  Loader: jboss-seam-jee5.root:0.0.1
>             Code-Source: /rhdev/apps/oc4j-11.1/j2ee/home/applications/jboss-seam-jee5/jboss-seam.jar
>           Configuration: <ejb> in /rhdev/apps/oc4j-11.1/j2ee/home/applications/jboss-seam-jee5
> (Failure analysis caught java.lang.IllegalStateException: ClassLoader "jboss-seam-jee5.root:0.0.1" (from <application> in /rhdev/apps/oc4j-11.1/j2ee/home/applications/jboss-seam-jee5/): This loader has been closed and should not be in use.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list