-
15. Re: javax.naming.NameNotFoundException: HelloWorld not bound
juha Nov 13, 2003 12:07 AM (in response to rupasrivi)Your EJB jar is lacking the proper packaging of deployment descriptors in META-INF (case sensitive) context. Because the EJB descriptors cannot be found it is deploying the classes as a regular JAR.
jar -tvf HelloWorld.jar
And list the contents of that archive. Make sure you have the proper META-INF and deployment descriptors present.
-- Juha -
16. Re: javax.naming.NameNotFoundException: HelloWorld not bound
steven_anto Nov 13, 2003 4:43 AM (in response to rupasrivi)Yes darran.....
I just followed the steps u had mentioned.Cudnt find the jndi name........
:-(
Thanx.....
Stephen -
17. Re: javax.naming.NameNotFoundException: HelloWorld not bound
steven_anto Nov 14, 2003 3:28 AM (in response to rupasrivi)Darran I just opened a browser and put url as http://localhost:8080/jmx-console
Then I clicked Service=JNDIView
Then I clicked invoke button of the list()
I didnt find the jndi name in the Global JNDI Namespace
Can u tell me what can be the problem and give me the solution for it?
May I know is there any changes in deployment descriptor(jboss.xml & ejb-jar.xml)??If so please lemme know.
Thanx in advance
Stephen -
18. Re: javax.naming.NameNotFoundException: HelloWorld not bound
steven_anto Nov 14, 2003 3:38 AM (in response to rupasrivi)Darran,
For your information I am using JBoss 4.0.0 DR2.
Regards
Stephen -
19. Re: javax.naming.NameNotFoundException: HelloWorld not bound
darranl Nov 14, 2003 5:15 AM (in response to rupasrivi)Stephen,
I do not use JBoss 4.0 yet so if it is a JBoss 4.0 issue I wont be able to help.
If your bean does not show up in the JNDI view it means that there was a problem deploying it.
Can you have a look in the server log to see if any errors were reported.
Also if your jar is just a test application can you post it on here so that we can have a look at the structure and your deployment descriptors.
From,
Darran. -
20. Re: javax.naming.NameNotFoundException: HelloWorld not bound
sabela Apr 1, 2004 4:47 AM (in response to rupasrivi)I was getting same problem. Turns out winzip was converting META-INF to lower case! Had to turn on the option: allow full upper case names and then run jar again - and it works.
-
21. Re: javax.naming.NameNotFoundException: HelloWorld not bound
sabela Apr 1, 2004 4:48 AM (in response to rupasrivi)I was getting same problem. Turns out winzip was converting META-INF to lower case! Had to turn on the option: allow full upper case names and then run jar again - and it works.
-
22. Re: javax.naming.NameNotFoundException: HelloWorld not bound
bjornbjorn May 16, 2006 4:24 AM (in response to rupasrivi)I also have this problem.
Everything seems to deploy fine (the same way rupasrivi's did - maybe it deploys as jar I don't know but it certainly doesn't throw any exceptions or give warnings) - but I'm not able to find it in the "Global JNDI Namespace".
Which files are required - I read somewhere that ejb-jar.xml was not longer required (EJB3).
Does anyone have a link documenting this (the files required, their format, contents and meaning).
Thanks! -
23. Re: javax.naming.NameNotFoundException: HelloWorld not bound
bjornbjorn May 16, 2006 4:29 AM (in response to rupasrivi)btw, FYI - the contents of my archives:
cmdtest.ear$ unzip -l cmdtest.ear Archive: cmdtest.ear Length Date Time Name -------- ---- ---- ---- 0 05-16-06 09:53 META-INF/ 106 05-16-06 09:53 META-INF/MANIFEST.MF 454 05-16-06 09:53 META-INF/application.xml 7531 05-16-06 09:53 cmdtest-ejb.jar 8205 05-16-06 09:53 cmdtest.war -------- ------- 16296 5 files
cmdtest-ejb.jar$ unzip -l cmdtest-ejb.jar Archive: cmdtest-ejb.jar Length Date Time Name -------- ---- ---- ---- 0 05-16-06 09:53 META-INF/ 106 05-16-06 09:53 META-INF/MANIFEST.MF 160 05-16-06 09:53 META-INF/jboss.xml 2560 05-16-06 09:53 META-INF/oracle-ds.xml 354 05-16-06 09:53 META-INF/persistence.xml 0 05-16-06 09:53 testing/ 804 05-16-06 09:53 testing/PdfInstalledfontsSessionEJB.class 3032 05-16-06 09:53 testing/PdfInstalledfontsSessionEJBBean.class 2602 05-16-06 09:53 testing/PdfInstalledfontsSessionEJBClient.class 813 05-16-06 09:53 testing/PdfInstalledfontsSessionEJBLocal.class 2600 05-16-06 09:53 testing/Pdfinstalledfonts.class -------- ------- 13031 13 files
cmdtest.war$ unzip -l cmdtest.war Archive: cmdtest.war Length Date Time Name -------- ---- ---- ---- 0 05-16-06 09:53 META-INF/ 106 05-16-06 09:53 META-INF/MANIFEST.MF 0 05-08-06 14:08 WEB-INF/ 948 05-16-06 09:49 WEB-INF/web.xml 860 05-16-06 09:49 test.jsp 0 05-16-06 09:53 servlets/ 1929 05-16-06 09:53 servlets/TestServlet.class 0 05-16-06 09:53 testing/ 804 05-16-06 09:53 testing/PdfInstalledfontsSessionEJB.class 3032 05-16-06 09:53 testing/PdfInstalledfontsSessionEJBBean.class 2602 05-16-06 09:53 testing/PdfInstalledfontsSessionEJBClient.class 813 05-16-06 09:53 testing/PdfInstalledfontsSessionEJBLocal.class 2600 05-16-06 09:53 testing/Pdfinstalledfonts.class -------- ------- 13694 15 files
JBoss 4.0.4 CR2 btw.