Skip to main content

web application working in tomcat but same is not woring glassfish why?

1 reply [Last post]
rbambati
Offline
Joined: 2011-06-03
Points: 0

I have one struts based webapplication working in tomcat very fine. But the same application is not working in glassfish3.1.

It is throwing datasource error. But i have confirured the datasource info in web.xml.

can any body help on this.................

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
writtmeyer
Offline
Joined: 2006-11-17
Points: 0

You have to define the datasource somewhere. In Tomcat this is done in context.xml. In GlassFish you can use the admin console to define datasources (among other possibilities). You first have to define a connection pool and then use this to create a data source.

Have a look at Jagadish's blog:

http://blogs.oracle.com/JagadishPrasath/entry/creating_jdbc_connection_p...