| Prakash |
Tue Mar 25 10:46:09 GMT 2008 |
| |
| Hi, I am new to JBoss tell me the step for configuring primrose in Jboss4.2.2GA. As per document i configure but it can not connect to d/b plz help me and provide help |
| |
| sedj |
Tue Mar 25 12:29:20 GMT 2008 |
| |
| You say primrose cannot connect to the database ... what error are you getting ? |
| Prakash |
Tue Mar 25 12:45:14 GMT 2008 |
| |
javax.servlet.ServletException: javax.naming.NameNotFoundException: webmap not bound
where webmap is my pool name |
| sedj |
Tue Mar 25 12:48:14 GMT 2008 |
| |
That error is not related to connecting to the database - the error is because you have either not configured JBoss correctly (read Install Guide) or your primrose config file does not contain a pool named "webmap".
Check your settings again. |
| Prakash |
Tue Mar 25 15:21:00 GMT 2008 |
| |
I have done all the things say in the install guide
like 1) copy primrose.jar into C:\jboss-4.2.2.GA\server\default\lib
and 2) primrose.config into C:\jboss-4.2.2.GA\server\default\conf
and made changes in
C:\jboss-4.2.2.GA\server\default\conf
jboss-service.xml file add tag
anything else requie also copy class12.jar into C:\jboss-4.2.2.GA\server\default\lib
directory.... |
| sedj |
Tue Mar 25 15:22:50 GMT 2008 |
| |
| You are trying to look up a pool called "webmap" ... are you sure your pool is actually called "webmap" ? Have you checked that the pools have successfully loaded ? Have you checked there are no erors on startup ? |
| sedj |
Wed Mar 26 10:35:35 GMT 2008 |
| |
Are you using the JNDI lookup :
java:comp/env/webmap
If so, it appears JBoss is not allowing primrose to bind under the java:comp namespace.
Try this lookup instead :
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("webmap");
(and please stop creating new threads every time you reply!) |