Menu

#2040 Class loading doesn't work properly

v4.0
closed
nobody
5
2004-12-29
2004-09-24
No

I configured jboss-app.xml:
<?xml version='1.0' encoding='UTF-8' ?>
<jboss-app>
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
exo.dot.com:loader=exo.ear
<loader-repository-
config>java2ParentDelegation=false</loader-repository-
config>
</loader-repository>
</class-loading>
</jboss-app>

putted my hibernate2.jar into my ear file and wrote
test.jsp (in war from ear):
<%
=net.sf.hibernate.cfg.Configuration.class.getClassLoader
()%>

but received in browser:
org.jboss.mx.loading.UnifiedClassLoader3@1f6ba0f{
url=file:/C:/jboss-
4.0.0/server/standard/tmp/deploy/tmp10464jboss-
service.xml ,addedOrder=2}

so, class from hibernate was loaded not from
ear/hibernate.jar but from server/<server
name>/lib/hibernate2.jar

I tested it as for "standard" server so for "default"
server.

Discussion

  • Scott M Stark

    Scott M Stark - 2004-12-29

    Logged In: YES
    user_id=175228

    All issues have been moved to http://jira.jboss.com. Existing
    issues have been moved. New issues will be closed with this
    canned reponse.

     
  • Scott M Stark

    Scott M Stark - 2004-12-29
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB