Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

problem running jboss in eclipse

Posted on 2006-07-14
10
1,347 Views
Last Modified: 2012-06-21
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))
      
0
Comment
Question by:chaitu chaitu
  • 6
  • 4
10 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 17113700
>>spy.properties not found in classpath

That's what i'd focus on. Find the file and put it in the classpath
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 17113770
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
 
LVL 86

Expert Comment

by:CEHJ
ID: 17113777
>>but when i run jboss inside eclipse  where to set this spy.properties

Add the file to your Eclipse build path
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 20

Author Comment

by:chaitu chaitu
ID: 17113787
"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
 
LVL 86

Expert Comment

by:CEHJ
ID: 17113792
spy.properties

Add it through the package explorer. RIght-click the project
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 17113799
i  RIght-click the project i can see build path;i am not to  add the file..
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17113812
Sorry - you need to choose Import
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 17119842
right click on the project choose file system selected spy.properties;when i run jboss still same error exists
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 17120380
Make sure that file is also in JBoss classpath
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17215993
:-)
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
fibonacci ten numbers 4 45
MySQL  on Tomcat 8 68
Glassfish admin console not working 1 32
Need Help! Getting a syntax error and don't understand why 3 31
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question