• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Startup RuntimeErrorException / CLASSPATH issue with springframework

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

I'm having a bit of a time trying to get Open Source project jBilling running. It's very straight-forward along with the DB setup, etc.
but I'm getting the following WARN during startup. I'm using Solaris 10 (SPARC), JDK 1.6.0_14 & MySQL v5.1.24. I tried installing
just the default, using just the JRE (1.6.0_13) and with the built-in database (base install), I always get the same error and can't get
past this basic problem. From what I can tell, it looks like the springframework had a different path set when it was built?:



** Any thoughts on this? I've attached the startup.log and boot.log (log4j debug mode) as well.

Here's the startup details:



Here's the log4j in DEBUG mode around the problem:




Thanks in advance,
Shane
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to have the spring libraries on your CLASSPATH (e.g. spring-2.5.6.jar)
 
Shane Kinsch
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I get the same error... it's an interesting problem.

I found the spring.jar in the distro of jBilling and added it to the JBOSS_CLASSPATH (in the run.sh) and it gives the same error. I tried that earlier... so, I decided to download the full distro with dependencies from spring directly and found the spring.jar in that and referenced it... but I get the same error.

BUT when I found that the run.sh output says "CLASSPATH" it's really not being set but actually the JBOSS_CLASSPATH... So, I set CLASSPATH=$JBOSS_CLASSPATH and I still get the same error... ugh.

So, I found the spring.jar from the jBilling distro and no go after adding it to the CLASSPATH (both JBOSS_CLASSPATH and CLASSPATH). I downloaded the latest spring-framework-2.5.6.SEC01 and added it to both JBOSS_CLASSPATH and CLASSPATH, but still, I get the same error.

Ugh! Any other suggestions?

Thanks,
Shane
 
Martijn Verburg
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

You'll want to package spring with the application you are deploying or pop it into the $JBOSS_HOME/server/<your server instance>/lib directory
 
Shane Kinsch
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Martinjn,

THat's what's soo odd. I verified that it is in the $JBOSS_HOME/server/default/lib directory and it does exist:

(root):xdb1> ls -la /san1/db/jbilling/server/default/lib/spring.jar
-rw-r--r-- 1 root root 2949032 Jun 10 15:26 /san1/db/jbilling/server/default/lib/spring.jar

I even added it to the CLASSPATH and get the same issue. I then copied the distro version of spring.jar and copied
it to the lib as well and get the same results.

I'm lost. But it's probably something simple!

=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /san1/db/jbilling

JAVA: /san1/db/jbilling/more/jdk/jdk1.6.0_14/bin/java

JAVA_OPTS: -server -Xmx256m -Xss128k -Dprogram.name=run.sh

CLASSPATH: /san1/db/jbilling/bin/run.jar:/san1/db/jbilling/more/jdk/jdk1.6.0_14/lib/tools.jar:/san1/db/jbilling/server/default/lib/spring.jar

=========================================================================
 
Martijn Verburg
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You'll want to remove Spring from the CLASSPATH for the Jboss startup script, that's purely the CLASSPATH just to bootstrap Jboss. Jboss then uses a totally different CLASSPATH to run it's various services and the applications you deploy. Putting the spring jar in the bootstrap CLASSPATH may confuse it.
 
Shane Kinsch
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I first got this error, by default it wasn't in the CLASSPATH. So taking it out (or running it straight out of the box) is what originally gave me the error that I'm getting now.

Thanks for your help... Any other suggestions?
 
Martijn Verburg
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does the version of spring contain the class that you need? its the only other thing I can think of
 
Shane Kinsch
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I might try their previous version to see if I get the same error -- or just dump using jBilling all together. Thanks again for all your help and suggestions.

Shane
 
reply
    Bookmark Topic Watch Topic
  • New Topic