[Persistence, JBoss/CMP, Hibernate, Database] - Re: Could not find datasource message in client JPA although
by ezanih
Hi Jaziran
Thank you for monitoring this blog...I appreciate it...I think I'm very close to getting the client working. Like I mentioned intially, my server side JPA entity is deploying OK ... but I'm trying to get my Java Application client to access it. Once that works I will access through JSP.
Ok...back to the issue at hand...I have put the jndi.properties in JBoss's server/default/deploy/conf directory where I added a new line jboss....provider.url = localhost.
And I have put the jndi.properties in jre6/ directory where I added a new line jboss....provider.url = localhost:1099. Probably this is wrong..if it doesn't work, I'm going to open the BiddingClient.jar manually with WinZip and put jndi.properties under /META-INF.
One important thing...if you look at my original BidClient.class client code...I didn't have any of those JNDI locating InitialContext code at all. Do I really need to add those additional codes with all the properties and InitialContext (at the beginning) in my BidClient.class? Is it necessary for EJB3 or just for EJB2.1 only? Shouldn't @PersistenceContext(unit="BiddingTest") suffice?
I am confused with all these lib folders. They are everywhere...in the JDK, in the JRE, in JBoss main folder, in JBoss server folders and in all 3rd party Java applications I installed such as Hibernate, Seam, etc. Yesterday I put a host of new jars in my jdk6/jre6/lib/ext folder and my JBoss refused to start until I removed them all back to the initial 6 files! Is there any place I can put all my application-unique external jars so that I know that Application A uses this set of jars, Application B uses this set of jars, etc rather than having them all mixed up in one folder?
Will keep you updated on the progress of my BidClient whether can connect or not...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198494#4198494
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198494
17 years, 4 months
[Installation, Configuration & DEPLOYMENT] - Migration problem to JBoss 5 GA
by onur.aktas
Hi,
I downloaded JBoss 5.0 GA and tried to migrate my application from 4.2.3 GA to 5.0 GA.
My application is Web application consists of Remote & Local EJBs and JSF Facelets.
The problem is that war file is deployed correctly however i can not reach EJB's since they are not deployed and not having a JNDI name mapped like previous release:
ear/ejb/EJBName/Local
ear/ejb/EJBName/Local
And giving these errors on startup:
| 03:10:22,327 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=test.ear,jar=testEjb.jar,name=UsrEJB,service=EJB3
| 03:10:22,328 INFO [EJBContainer] STARTED EJB: com.test.model.ejb.system.UsrEJBBean ejbName: UsrEJB
| 03:10:22,328 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
|
| 03:10:22,442 WARN [WebServiceDeployerEJB] Ingore ejb deployment with null classname: org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData@97955a49{UsrEJB}
|
And JNDI-Lookup:
java:comp namespace of the component jboss.j2ee:ear=test.ear,jar=testEjb.jar,name=UsrEJB,service=EJB3 :
And they are not listed under Global JNDI Namespace. How can i resolve that problem?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198488#4198488
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198488
17 years, 4 months