[jboss-jira] [JBoss JIRA] Updated: (JBAS-6914) useJBossWebLoader not working when set to true

Peter Johnson (JIRA) jira-events at lists.jboss.org
Wed May 13 18:14:48 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBAS-6914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Johnson updated JBAS-6914:
--------------------------------

    Attachment: default.zip


Per Ales' request I am attaching a zip file containing the binaries used to reproduce the problem. To install, unpack the zip file into the server/default directory - files will beplaced into both the lib and deploy directories. Start the app server. Point your browser at http://localhost:8080/route. Click on the Scenario C graphic. You should get the response:

You chose Scenario C:

    * starting in servlet
    * called InLib
    * called InDeploy
    * called InEar
    * called InSar
    * exception when calling InWar: java.lang.NoClassDefFoundError: org/jbia/route/InWar

Then set UseJBossWebLoader  to true and the exception in the last line is supposed to go away (you'll see something like "called InWar" instead).


> useJBossWebLoader not working when set to true
> ----------------------------------------------
>
>                 Key: JBAS-6914
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6914
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: ClassLoading
>    Affects Versions: JBossAS-5.0.1.GA, JBossAS-5.1.0.CR1
>         Environment: any
>            Reporter: Peter Johnson
>            Assignee: Ales Justin
>         Attachments: default.zip
>
>
> The description for useJBossWebLoader in server/xxx/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml indicates that if it is set to true, then classes packaged within the WAR file should be visible to classes outside the WAR file. For AS 4.2.3, that is the case. However, for 5.0.1 and 5.1.0.CR1 it is not the case. Seems like a feature of prior versions that did not survive the move to the new vfs classloaders.
> As a test case, download the source code for JBoss in Action from http://code.google.com/p/jbia/downloads/list. Open the jbia-src/index.html file and follow the setup instructions. Then build target 01 in the jbia-src/ch03 directory. Try different values for useJBossWebLoader, using Scenario C to test it - you should get a clean response with no exceptions when useJBossWebLoader is set to true, and and exception when it is set to false.

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

        



More information about the jboss-jira mailing list