Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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

Could not create connection in Jboss 4.2.2GA

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
chaitanya kiran pvn
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can continue using the same -ds.xml file which you were using in 4.0.3
 
chaitanya kiran pvn
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic