[JBossWS] - Re: can NOT run ant deploy-jboss500
by davidyu8888
Peter,
Thanks a lot for all the tips. The second post really resolved my issue, it seems to JBoss WebService and JBoss AS compatibility is the key. I believe I saw a XREF chart somewhere in the forum, but from the chart, it seems that the original versions I have should be compatible with each other. Anyway, after I change the JBoss WS to native 3.0.4 GA. The ant build file starts to work fine. BTW, I do NOT have any single pass in my JAVA_HOME, JBOSS_HOME or ANT_OPTS.
But something new and interesting happens aftetwards.
After I build JBoss WebService into JBoss AS (the build completed successfully), now I would like to bring up the JBoss AS to view the URL for JBoss Web Service: http://localhost:8080/jbossws/
At this stage, I have the following error to bring up JBoss AS.
"
Error occurred during initialization of VM
java/lang/ClassNotFoundException: error in opening JAR file C:\Java\jboss-5.0.0.
GA\lib\endorsed\junit-4.5.jar
Press any key to continue . . .
"
To keep things moving, I deleted junit-4.5.jar from C:\Java\jboss-5.0.0.
GA\lib\endorsed, and now JBoss AS is brought up successfully, and I can view the homepage for JBoss WS.
While my question is:
In the JBoss WebService Installation Guide, it has: To build the examples you need JUnit. Download junit-4.X.jar from junit.org and copy into ${JBOSS_HOME}/lib/endorsed. I am NOT sure whether my next Ant build will fail because I removed junit-4.5.jar already...
Do you or anyone know why I receive the error message: java/lang/ClassNotFoundException: error in opening JAR file? Is this another compatibility issue? Junit-4.5.jar is too new for this testing?
Thanks a lot and have a great Christmas.
David
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198495#4198495
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198495
15 years, 6 months
[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
15 years, 6 months