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 Jboss 5.0 not able to connect to databse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss 5.0 not able to connect to databse" Watch "Jboss 5.0 not able to connect to databse" New topic
Author

Jboss 5.0 not able to connect to databse

Shivaprasad P Kanaganahallimath
Ranch Hand

Joined: Sep 25, 2006
Posts: 48
1)DBTest.jsp



error message




And I am using:
classes12.jar file as oracle driver(placed in jboss-5.0.0\server\default\lib folder)
Jboss 5.0 AS
oracle8i as Database (soon will be changing to 10g)
JDK 1.6

Could any one tell me why am I getting this error, when the same code works fine in jboss 4 AS.


thanks and regards




Shiva Prasad P.K.
Shivaprasad P Kanaganahallimath
Ranch Hand

Joined: Sep 25, 2006
Posts: 48
ohh,
the problem is resolved after checking

www.jboss.org

and now it is displaying the user ID, but still I am not able to login to my application.

When i gave the correct login id and password (which is working in jboss 4.0), I am getting the following error





Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Looks like there is no request attribute named "Error". Fix your code to either supply such an attribute, or fix the JSP code to handle the possibility of no "Error" attribute. (Or better yet, get rid of the server-side script in your JSP and make use of tag libraries and the expression language instead.)


JBoss In Action
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Ouch, I sure hope you don't normally put Java code into your .jsp files, and that this is only a test. But even with a test, I would never ever put Java code into a jsp page.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Shivaprasad P Kanaganahallimath
Ranch Hand

Joined: Sep 25, 2006
Posts: 48
hey guys thanks for your help....

My friend has found out the solution for this problem, there was a jar file placed in multiple places.
So that guy was creating all the trouble to my application from running.

Jboss 5 is very strict with duplicate jar files and also the parsing.....

Currently all the features of my application are running ......



but i have some other doubts i ll come up with them in my next post.......
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss 5.0 not able to connect to databse