Re: using jsp and openjpa....

2008-08-03 Thread Anish
the createEntityManagerFactory is returning null, > which probably indicates that the Persistence processing couldn't find the > persistence.xml file. Is your persistence.xml file in your META-INF > directory and properly packaged with your JSP and other Entities? > > Kevin

using jsp and openjpa....

2008-08-01 Thread Anish
Hey i have just been trying to get openjpa and jsp to work and i seem to get some errors iam using eclipse for this and running it on tomcat 6.0 Greeeting.java package foo; import java.io.Serializable; import javax.persistence.Basic; import javax.persistence.Entity; import javax.persiste

Exception in thread "main"

2008-07-31 Thread Anish
hey i have written a small program using opnenjpa to connect to mysql server... I am using Eclipse ide to do this. i keep getting this error HelloWorld.java package foo; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistenc

Re: ????

2008-07-31 Thread Anish
Hey yea it just doesent seem to want to work... i tried creating a simple .jsp file as well which connects to the database using the driver but still no luck when i do echo $CLASSPATH... this is what i get: /usr/local/apache-tomcat-6.0.16/common/lib/jsp-api.jar:/usr/local/apache-tomcat-6.0

Re: ????

2008-07-30 Thread Anish
it and even for that i have added the mysql.jar in the library for the project. But it still doesent worksame error Ignacio Andreu wrote: > > Hi Anish, > > As far as I can read in the stack trace Caused by: > > *java.lang.ClassNotFoundException: com.mysql.jdbc.Dri

????

2008-07-30 Thread Anish
Hey i have made a little test program using openjpa... this seemed to work when i did it in windows but somehow doesent work in linux... i am basically trying to test openjpa with mysql... the code is as follows: Main.java /* * Licensed to the Apache Software Foundation (ASF) under one * or mo