• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

J2EE RI Security Exception Mac OS X

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just wondering if anyone has had any problems with the J2EE RI 1.3.1 running under JDK 1.4.2 on Mac OS X 10.3.2? I keep getting an exception trying to start the darn thing. It happens during the JMS binding phase:
J2EE server listen port: 1050
Naming service started:1050
Binding DataSource, name = jdbc/EstoreDB, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/DB1, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/DB2, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/InventoryDB, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
Binding DataSource, name = jdbc/XACloudscape__xa, dataSource = COM.cloudscape.core.RemoteXaDataSource@cfb8d3
Starting JMS service...
Initialization complete - waiting for client requests
Binding: < JMS Destination : jms/Topic , javax.jms.Topic >
Binding: < JMS Destination : jms/Queue , javax.jms.Queue >
Binding: < JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
Binding: < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties >
Binding: < JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
Binding: < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties >
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at com.sun.enterprise.J2EESecurityManager.checkAccess(J2EESecurityManager.java:46)
at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:287)
at java.lang.Thread.init(Thread.java:284)
at java.lang.Thread.<init>(Thread.java:317)
at com.sun.ejb.containers.RecyclerImpl$RecyclerThread.<init>(RecyclerImpl.java:178)
at com.sun.ejb.containers.RecyclerImpl.<init>(RecyclerImpl.java:51)
at com.sun.ejb.containers.ContainerFactoryImpl.<init>(ContainerFactoryImpl.java:44)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:277)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
java.lang.RuntimeException: access denied (java.lang.RuntimePermission modifyThreadGroup)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
I've tried adding new permissions in the java.policy file to no avail.
Has anyone had this problem?
I downloaded and expanded the Linux version on Kathy Sierra's advice.
I'm trying to do the exercises in the Head First EJB book and it ain't working!
Thanks,
\tommy
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tommy,
Via the deploytool check that under your bean->Security that "Support Client Choice" is checked and not "Certificate". I'm also running OS X with 1.4.2 and a similiar problem; though not exact. The default is "Certificate" on OS X and "Support Client Choice" on XP.
Hope this helps.
 
Tommy Braas
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Van Nguyen,
Thanks for your comments. I ended up reinstalling it and then it worked! Figure that one out. Anyway, thanks for your help!
Kind regards,
\tommy
SCJP
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic