| View previous topic :: View next topic |
| Author |
Message |
Holger Flick Guest
|
Posted: Sun Jun 18, 2006 6:39 pm Post subject: deploying application |
|
|
Hi guys,
simple question. I have a one class-file application that consumes the
BDN CC webservice.
I create an application deployment. My resulting JAR file contains all
axis stuff e.g.
However, when I invoke my app with
java -jar CCClient.jar
I get:
Exception in thread "main" java.lang.ExceptionInInitializerError
at
org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)
at org.apache.axis.client.Service.getAxisClient(Service.java:103)
at org.apache.axis.client.Service.<init>(Service.java:112)
at
com.borland.webservices.ICodeCentralWSLocator.<init>(ICodeCentralWSLo
cator.java:12)
at bdn.cc.client.CCJavaClient.getService(CCJavaClient.java:244)
at bdn.cc.client.CCJavaClient.getService(CCJavaClient.java:226)
at bdn.cc.client.CCJavaClient.getSessionID(CCJavaClient.java:102)
at bdn.cc.client.CCJavaClient.main(CCJavaClient.java:301)
Caused by: org.apache.commons.discovery.DiscoveryException: No
implementation de
fined for org.apache.commons.logging.LogFactory
at
org.apache.commons.discovery.tools.ClassUtils.verifyAncestory(ClassUt
ils.java:176)
at
org.apache.commons.discovery.tools.SPInterface.verifyAncestory(SPInte
rface.java:201)
at
org.apache.commons.discovery.tools.SPInterface.newInstance(SPInterfac
e.java:195)
at
org.apache.commons.discovery.tools.DiscoverClass.newInstance(Discover
Class.java:579)
at
org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSin
gleton.java:418)
at
org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSin
gleton.java:378)
at
org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45
)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory
..java:41)
at
org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java
:33)
... 8 more
However, when I invoke with -classpath to the JBuilder jar files and
Axis-jar files it works. So how do I have to invoke my jar to make it
find the stuff inside the CCClient.jar
This is JBuilder 2006 Enterprise btw.
Thanks!
--
Holger
Blog: http://www.flickdotnet.de |
|
| Back to top |
|
 |
Lori M Olson [TeamB] Guest
|
Posted: Sun Jun 18, 2006 8:44 pm Post subject: Re: deploying application |
|
|
Holger Flick wrote:
| Quote: | Hi guys,
simple question. I have a one class-file application that consumes the
BDN CC webservice.
I create an application deployment. My resulting JAR file contains all
axis stuff e.g.
However, when I invoke my app with
java -jar CCClient.jar
I get:
Exception in thread "main" java.lang.ExceptionInInitializerError
at
org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)
However, when I invoke with -classpath to the JBuilder jar files and
Axis-jar files it works. So how do I have to invoke my jar to make it
find the stuff inside the CCClient.jar
This is JBuilder 2006 Enterprise btw.
Thanks!
|
It would be useful to see the root cause of that error. If you could
"catch" it in your code, and look at the cause via Throwable.getCause()
then we'd have a better idea of what exactly it is barfing on.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html |
|
| Back to top |
|
 |
Gillmer J. Derge [TeamB] Guest
|
Posted: Mon Jun 19, 2006 12:40 am Post subject: Re: deploying application |
|
|
Lori M Olson [TeamB] wrote:
| Quote: | It would be useful to see the root cause of that error. If you could
"catch" it in your code, and look at the cause via Throwable.getCause()
then we'd have a better idea of what exactly it is barfing on.
|
Isn't it this? ...
Caused by: org.apache.commons.discovery.DiscoveryException: No
implementation defined for org.apache.commons.logging.LogFactory
I think the problem is that you need to include the Jakarta Commons
Logging classes.
Why are they found with an explicitly constructed classpath but not in
the JAR? My guess would be that CCClient.jar is configured to include
all "required" classes and resources. Change that to *all* classes and
resources. Anything accessed via reflection (such as with Commons
Discovery) fools JBuilder's dependency analyzer, so certain important
classes are being left out of the JAR file.
--
Gillmer J. Derge [TeamB] |
|
| Back to top |
|
 |
Holger Flick Guest
|
Posted: Mon Jun 19, 2006 5:18 am Post subject: Re: deploying application |
|
|
Gillmer J. Derge [TeamB] wrote:
| Quote: | Why are they found with an explicitly constructed classpath but not in
the JAR? My guess would be that CCClient.jar is configured to include
all "required" classes and resources. Change that to *all* classes and
resources. Anything accessed via reflection (such as with Commons
Discovery) fools JBuilder's dependency analyzer, so certain important
classes are being left out of the JAR file.
|
I can't. It is not listed as an option. I realize that some stuff might
not be in there. Thus I chose "inlude all". But still, some of the
libraries are just not listed. Any workaround to make JBuilder see them?
--
Holger
Blog: http://www.flickdotnet.de |
|
| Back to top |
|
 |
|