File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Could not create connection in Jboss 4.2.2GA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Could not create connection in Jboss 4.2.2GA" Watch "Could not create connection in Jboss 4.2.2GA" New topic
Author

Could not create connection in Jboss 4.2.2GA

chaitanya kiran pvn
Greenhorn

Joined: Nov 01, 2007
Posts: 25
hai

iam working previously iam workin in jboss 4.0.3sp1 now iam migrate to jboss4.2.2GA . in this iam facing one problem regarding database table creation and could not create the connection and faild to register the driver and no classloaders found.iam using MSSqlserver2000 database for my application but when i deployed the aplication in jboss4.2.2GA bean is deployed but war file is not deployed and got the error as like this .
i placed the relavent jars to msbase.jar msutil.jar mssqlserver.jar in default\lib and set the classpath. please help me inthe context.


thanks in advance
chaitanya
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9953
    
161

No ClassLoaders found for: com.microsoft.sqlserver.jdbc.SQLServerDriver


This driver class is present in sqljdbc.jar. So you will have to place the sqljdbc.jar in the default/lib folder.

P.S: There's other driver class com.microsoft.jdbc.sqlserver.SQLServerDriver (note that in this case the jdbc comes before sqlserver, unlike the other driver class) which is present in mssqlserver.jar.


[My Blog] [JavaRanch Journal]
chaitanya kiran pvn
Greenhorn

Joined: Nov 01, 2007
Posts: 25
hai
thank you and one question in jboss 4.0.3sp1 and sqlserver 2000 i paset the my mssql-ds.xml in jboss 4.0.3Sp1. now i migrate to jboss4.2.2GA is there any changes in mssql-ds in jboss 4.2.2GA .


thanks in advance
chaitanya kiran
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9953
    
161

You can continue using the same -ds.xml file which you were using in 4.0.3
chaitanya kiran pvn
Greenhorn

Joined: Nov 01, 2007
Posts: 25
hai

i made the mistake in driver class your right my driver class is
com.microsoft.jdbc.sqlserver.SQLServerDriver after change this my application is deployed. but it open in localhost 127.0.0.1:8080 port only .but i want my system ip adress where i can change the ip address and it wont show the server started at some time. hear i paste my console.


thanks in advance.
chaitanya
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9953
    
161

but it open in localhost 127.0.0.1:8080 port only .but i want my system ip adress where i can change the ip address


Starting JBoss-4.2.x, JBoss by default binds various services to localhost. Use -b 0.0.0.0 while starting JBoss if you want the machine to be accessible by localhost, machine name and IP. See this for more details.
chaitanya kiran pvn
Greenhorn

Joined: Nov 01, 2007
Posts: 25
hai
thankyou iam using the ssl enabled page but it askes the keystore .i place the previous keystore is placed in server/defult/conf jboss.keystore .but it gives the same error.and web page is also not open in the browser.hear i attach the server.xml

AND HOW TO CREATE THE KEYSTORE FOR JBOSS

THANK YOU IN ADVANCE
CHAITANYA
 
 
subject: Could not create connection in Jboss 4.2.2GA
 
Similar Threads
Datasource Connection problem with ejb+Jboss 4.0.5+ IntelliJ 8
Failure in running ear with EJB and Spring on clustered JBoss-5.1.0.GA AS
JBoss Server V4.2 NOT getting Started
Some Deployment Error. JBoss(4.2). Error code 404 displayed while running Project.
How to install JBoss with MyEclipse IDE? I am having problems