Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / January 2005

Tip: Looking for answers? Try searching our database.

JNDI + Security issue; Please help!!!

Thread view: 
sjkwadzo@hotmail.com - 23 Dec 2004 17:43 GMT
Hi,

We have a web application running on ServletExec application server. In
our code we're trying to get the home interface of an EJB deployed on a
pramati server. This used to worked fine. But for some unknown reason,
this is throwing now a Security exception. The weird this is it'll work
when the application runs in windows (we're using tomcat in windows to
debug). But will not work when deployed to unix. This is the complete
stack trace :

----------- Stack trace begins ------------
java.lang.ExceptionInInitializerError
at
com.pramati.naming.client.PramatiClientContextFactory.getInitialContext(PramatiClientContextFactory.java:223)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.(InitialContext.java:195)
at
org.grnds.facility.factory.GrndsJndiProducer.produce(GrndsJndiProducer.java:91)
at
com.msdw.refdata.o2.integration.savvion.O2SavvionEJBProducer.getEjbHome(O2SavvionEJBProducer.java:152)
at
com.msdw.refdata.o2.integration.savvion.O2SavvionEJBProducer.produce(O2SavvionEJBProducer.java:105)
at
com.msdw.refdata.o2.integration.savvion.O2SavvionEJBProducer.produce(O2SavvionEJBProducer.java:91)
at
org.grnds.facility.factory.GrndsFactory$ProducerContainer.produce(GrndsFactory.java:607)
at
org.grnds.facility.factory.GrndsFactory.produce(GrndsFactory.java:202)
at
org.grnds.facility.factory.GrndsFactory.produce(GrndsFactory.java:133)
at
com.msdw.refdata.o2.integration.savvion.O2SavvionAccessorBLManagerImpl.getWorkflowRequestStatus(O2SavvionAccessorBLManagerImpl.java:54)
at
com.msdw.refdata.o2.ui.createWorkflow.WorkflowRequestStatusAction.execute(WorkflowRequestStatusAction.java:113)
at
org.grnds.structural.ic.http.ActionHttpAdapterCore.perform(ActionHttpAdapterCore.java:332)
at
org.grnds.structural.ic.struts.IcStrutsAction.perform(IcStrutsAction.java:346)
at
org.grnds.structural.ic.struts.IcStrutsAction.execute(IcStrutsAction.java:310)
at
org.apache.struts.action.RequestProcessor.processActionPerform(Unknown
Source)
at org.apache.struts.action.RequestProcessor.process(Unknown Source)
at org.apache.struts.action.ActionServlet.process(Unknown Source)
at org.apache.struts.action.ActionServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.newatlanta.servletexec.ServletExec.CallServletService(ServletExec.java:1717)
at
com.newatlanta.servletexec.SERequestDispatcher.forwardServlet(SERequestDispatcher.java:274)
at
com.newatlanta.servletexec.SERequestDispatcher.forward(SERequestDispatcher.java:191)
at
com.newatlanta.servletexec.SEFilterChain.doFilter(SEFilterChain.java:74)
at
com.msdw.refdata.o2.ui.auth.O2AuthFilter.doFilter(O2AuthFilter.java:166)
at
com.newatlanta.servletexec.SEFilterChain.doFilter(SEFilterChain.java:50)
at
com.newatlanta.servletexec.ApplicationInfo.filterApplRequest(ApplicationInfo.java:1454)
at
com.newatlanta.servletexec.ApplicationInfo.processApplRequest(ApplicationInfo.java:1299)
at
com.newatlanta.servletexec.ServerHostInfo.processApplRequest(ServerHostInfo.java:958)
at
com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1267)
at
com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1115)
at
com.newatlanta.servletexec.ServletExecService.processServletRequest(ServletExecService.java:165)
at
com.newatlanta.servletexec.ServletExecService.Run(ServletExecService.java:197)
at
com.newatlanta.servletexec.HttpServerRequest.run(HttpServerRequest.java:106)
Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission jmx.serial.form write)
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 java.lang.System.setProperty(System.java:654)
at
com.pramati.naming.client.PramatiClientContext.(PramatiClientContext.java:70)
... 37 more

----------- Stack trace ends --------------
Any help will be greatly appreciated.

Thanks,

- Jonathan
Bob Kranson - 04 Jan 2005 04:30 GMT
Did you populate the java.policy for this configuration to allow the
application access to the rmiregistry on the Unix machine?

I get this suggestion from seeing
spi.NamingManager....SecurityPolicyIndicatory....

Regards,
Bob Kranson

> Hi,
>
[quoted text clipped - 94 lines]
>
> - Jonathan


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.