• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Bear Bibeault
  • paul wheaton
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Mikalai Zaikin
  • Piet Souris
Bartenders:

Need help with Sun's J2EE tutorial

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using the J2EE tutorial from Sun to get started with J2EE. I have been using the deploytool GUI and following all the instructions in the tutorial.
I encountered a problem in the "Specifying the JNDI Names" section.When I click on the Application, I do not see a JNDI Names Tab, where I can map the references to the Bean. This leads to problems during the deploy stage.What could have possibly gone wrong ?
Any help will be greatly appreciated.
-Mary
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mhhh...very mysterious! Even when I create a new application without any content, I get an JNDI Tab!
Maybe a workaround:
You can do the chaining of the EJB with the references (what you do usually at the JNDI Tab), also when you deploy your application. Be sure to have the references defined for your several clients. You should allready have done that, when you have followed the tutorial.
Greets, Andr�
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had the same problem with the latest version of J2EE (1.4 ?), so I reverted to the previous version (1.3.1 I think) which works OK.
I noticed that on SUN's forums there has been quite a lot of discussion of this problem, but since I've got a working version haven't been to woried about it yet.
Suprised it hasn't been brought up here before now though!
web page
 
Mary Philip
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mike,
Thanks for u'r tip.
I used J2EE 1.3.1 and I was able to get the JNDI names right. But, I encountered the following error while deploying the application.
An exception has occurred in the compiler (1.4.1_01). Please file a bug at the Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.security.AccessControlException: access denied (java.io.FilePermission C:\PROGRAM FILES\JAVA\J2RE1.4.1_01\lib\ext read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.checkRead(SecurityManager.java:887)
at java.io.File.list(File.java:912)
at com.sun.tools.javac.v8.code.ClassReader.addArchives(ClassReader.java:256)
at com.sun.tools.javac.v8.code.ClassReader.setClassPaths(ClassReader.java:241)
at com.sun.tools.javac.v8.code.ClassReader.<init>(ClassReader.java:204)
at com.sun.tools.javac.v8.code.ClassReader.instance(ClassReader.java:156)
at com.sun.tools.javac.v8.code.Symtab.<init>(Symtab.java:292)
at com.sun.tools.javac.v8.code.Symtab.instance(Symtab.java:35)
at com.sun.tools.javac.v8.JavaCompiler.make(JavaCompiler.java:117)
at com.sun.tools.javac.v8.Main.compile(Main.java:517)
at com.sun.tools.javac.Main.compile(Main.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.ejb.codegen.GeneratorDriver.compileClasses(GeneratorDriver.java:221)
at com.sun.ejb.codegen.GeneratorDriver.compileAndRmic(GeneratorDriver.java:101)
at com.sun.ejb.codegen.GeneratorDriver.preDeploy(GeneratorDriver.java:888)
at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployEjbs(JarInstallerImpl.java:707)
at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:221)
at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:355)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
Compilation failed ...
Queries for this problem have been posted earlier, but nobody seems to have replied.
Can anybody help me ?
Thanks in advance
-Mary
 
He puts the "turd" in "saturday". Speaking of which, have you smelled this tiny ad?
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic