Skip to main content

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

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2011-06-03

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.
Joined: 2006-11-17

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: