OK. I'm getting close!
Within Eclipse, I selected the JPA facet, which then generated the
persistence.xml.
My next problem brings me to precisely the main point I've been trying to learn
about--CMP! My example Stock class contains these annotions:
@Entity
@Table(schema=BrianDb)
The Eclipse
I've found that if I manually create a table called Stock, using the MySql
Administrator, this error message goes away. So I assume my Eclipse project is
correctly viewing my database. I just don't know how to have the tables
created automatically on the basis of my annotations and
I changed persistence.properties, and that created the tables. Now my editor
is happy. Last task: get the thing to actually run!
Thanks very, very much for your help. I was pretty lost without you.
--McJava1967
View the original post :
IT WORKED!
IT WORKED!
IT WORKED!
I'm PERSISTING!
Thanks for your help!
I'll be back...
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4128132#4128132
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128132
Will do. Trying to work on this tonight. Will post results. Thanks.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4127791#4127791
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4127791
You will have to place a persistence.xml file under META-INF folder with the
relevant entries in that xml. Go through this
http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html_single/index.html
for an introduction about EJB3.
Specifically, look at this
I actually getting an io exception trying to run the jar command. Might this
be related to the packaging itself?
In addition to being a newbie at JBoss, I'm also on Vista for the first time.
When I navigate using the file system to CMPStockListApp.jar, it shows as a
normal FOLDER. I
anonymous wrote : When I navigate using the file system to CMPStockListApp.jar,
it shows as a normal FOLDER.
Looks like the application is deployed in exploded form
(http://wiki.jboss.org/wiki/Wiki.jsp?page=ExplodedDeployment) which is a valid
form of deployment in JBoss.
anonymous wrote :
I couldn't find a persistence.xml file anywhere in my JBoss folders... I did
find a persistence.properties. Would that help?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4127136#4127136
Reply to the post :
Hey! That I can do! Here it is:
C:\jboss-4.2.2.GA\server\default\deploy\CMPStockListApp.jardir /b /s
C:\jboss-4.2.2.GA\server\default\deploy\CMPStockListApp.jar\beans
C:\jboss-4.2.2.GA\server\default\deploy\CMPStockListApp.jar\META-INF
Post the output of the following command:
1) From the command prompt, cd to the deploy folder of JBoss.
2) Run this command:
jar -tf CMPStockListApp.jar
Post the output here. That will show us whether the jar has been packaged
correctly. Also, post the contents of persistence.xml file which is
11 matches
Mail list logo