Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

EJB3 JBOSS 4.2 depolyment

843830May 10 2008 — edited May 22 2008
Hi

I'm following the example in : http://www.laliluna.de/ejb-3-tutorial-jboss.html
to create my first EJB3 project but when trying to deploy It doesn't seem to add the jar file to the server
I looked under JNDI view in the server JMX-console page but there was no mentioning my new bean

what I did was create the following deploy.bat file that packs all the *.class files and all the files in META-INF
and the copied the jar to the deploy area in the JBOSS

@echo off
set JAVA_HOME=D:\Sun\SDK\jdk
set JBossHome=D:\jboss-4.2.2.GA

"%JAVA_HOME%\bin\jar.exe" cf FirstEjb3Tutorial.ejb3 de\laliluna\library\*.class META-INF\*.*
copy FirstEjb3Tutorial.ejb3 "%JBossHome%\server\default\deploy"
pause


1) Was my packaging ok the jar OK? are there more files that need to be in the jar?
2) besides adding the jar to the deploy folder is there anything else i need to define?
3) do I need to add something to the following files: MANIFEST.MF (What is this file anyway), ejb-jar.xml' persistance.xml (all 3 files located under META-INF folder)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2008
Added on May 10 2008
1 comment
142 views