problem running jboss in eclipse

i am running jboss in eclipse;how to put spy.properties in classpath?


1:05:41,438 WARN  [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.p6spy.engine.spy.P6SpyDriver; - nested throwable: (java.lang.InstantiationException: spy.properties not found in classpath))
      
LVL 20
chaitu chaituAsked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
Make sure that file is also in JBoss classpath
0
 
CEHJCommented:
>>spy.properties not found in classpath

That's what i'd focus on. Find the file and put it in the classpath
0
 
chaitu chaituAuthor Commented:
when i run jboss independently its running fine;but when i run jboss inside eclipse its giving problem;
in jboss run.bat file

i set classpath(where spy.properties located) like this:c:/jboss/server/default/db;

but when i run jboss inside eclipse  where to set this spy.properties  in elcipse;;when u run jboss inside eclipse we are not running run.bat file;when u click debug button whatever u give jboss home directory it will run;
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
CEHJCommented:
>>but when i run jboss inside eclipse  where to set this spy.properties

Add the file to your Eclipse build path
0
 
chaitu chaituAuthor Commented:
"Add the file to your Eclipse build path"
u mean run.bat file or spy.properties;

where this Eclipse build path located??

in which tab(libraries,projects tab) should i add file in  Eclipse build path

0
 
CEHJCommented:
spy.properties

Add it through the package explorer. RIght-click the project
0
 
chaitu chaituAuthor Commented:
i  RIght-click the project i can see build path;i am not to  add the file..
0
 
CEHJCommented:
Sorry - you need to choose Import
0
 
chaitu chaituAuthor Commented:
right click on the project choose file system selected spy.properties;when i run jboss still same error exists
0
 
CEHJCommented:
:-)
0
All Courses

From novice to tech pro — start learning today.