*
The moose likes JBoss/WildFly and the fly likes Troubles with deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Troubles with deployment" Watch "Troubles with deployment" New topic
Author

Troubles with deployment

Anna Nimus
Greenhorn

Joined: Nov 05, 2008
Posts: 4
Hi

I've got an error deploying my ear-file on JBoss 5.1.0 GA:


DEPLOYMENTS IN ERROR:
Deployment "vfszip:/C:/jboss-5.1.0.GA/server/all/deploy/betrol.ear/" is in error due to the following reason(s): java.lang.ClassNotFoundException: com.belski.common.PropertiesLoader from BaseClassLoader@7355c8{VFSClassLoaderPolicy@4c1cd{name=vfszip:/C:/jboss-5.1.0.GA/server/all/deploy/betrol.ear/ domain=ClassLoaderDomain@1a54190{name=betrol:loader=betrol.ear parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@cb42cf{DefaultDomain}}....

and so on


However the class com.belski.common.PropertiesLoader is present in the ear-archive!!!

My application.xml:

<application>
<display-name>Betrol</display-name>
<module>
<service>betrol_serv.jar</service>
</module>
<library-directory>lib</library-directory>
</application>


My jboss-app.xml is:

<jboss-app>
<module-order>strict</module-order>
<loader-repository>betrol:loader=betrol.ear</loader-repository>
</jboss-app>




Please, give any ideas how I can repair it!
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

However the class com.belski.common.PropertiesLoader is present in the ear-archive!!!


And it is in the classpath from the root with that path?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Anna Nimus
Greenhorn

Joined: Nov 05, 2008
Posts: 4
Hi Mark!

Excuse me, what classpath do you mean? The classpath in manifest.mf or something else?

The structure of my betrol.ear is:

[lib]
[meta-inf]
betrol_serv.jar


The class com.belski.common.PropertiesLoader.class is placed in betrol_serv.jar.

The files MANIFEST.MF in [meta-inf] and inside betrol_serv.jar have no classpath declared.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Troubles with deployment