Access to a Tomcat Realm

HI! I am trying to get the following code to run, but I still get a nullpointer exception.
This code is in a servlets init method, and should be loaded on tomcats startup.
Server server = ServerFactory.getServer();
//Note, this assumes the Container is "Catalina"
Service service = server.findService("Catalina");
Engine engine = (Engine) service.getContainer();
Host host = (Host) engine.findChild(engine.getDefaultHost());
//Note, this assumes your context is "myContext"
Context context = (Context) host.findChild("myContext");
Realm realm = context.getRealm();I've set the privileged parameter in the webapp/webcontent/meta-inf/context.xml file.
Why I could'nt access this classes?? Where is my misstake?
Thank you for your answer!

Yeah, it looks like we may have to alter the client code to basically pass their login via a "form"....but we'd rather not do that.
BTW, this is a SOAP server we'll building...so not only would it been a real pain to alter the client's XML output (and therefore our corresponding remote method), but the login data would be even more in plain view.
:: still searching for a wildard possibility ::

Similar Messages

  • JSF - Tomcats Realm - General Question

    Hi @ ll,
    I've written a wep app in JSF.
    Evererything works fine. Also the autentification by Tomcats JDBC Realm.
    My problem is. only the login is not written in JSF, cause every form get id prefix.
    I know its "normal" in in JSF.
    But Tomcat expect a submit "j_security_check" without a prifix like "_id0:".
    I don't know to figure it out.
    I've had a look into the Jaas dokumentation. It will take some hours/days to lean it.
    And I think Jaas is overdosed for my very simple webapp.
    Now my general Questen:
    Is it posible to write a simple form based login in Java Server Pages to use Tomcats Realm?
    Is there a simple alternative to Jaas?
    THX 4 your advise.
    esion

    It's not possible with the default set of components.
    That said, there may be a component set that provides a form-based authentication component, but off the top of my head I'm no aware of one.
    It wouldn't be that difficult to roll your own either.

  • Accessing EJB form tomcat

    We are using Sun Application Server 8 and seems like I have
    problem accessing AS from Tomcat.
    The following is the error message from the log
    [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2006-12-22 12:14:40 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2006-12-22 12:14:40 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2006-12-22 12:14:41 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2006-12-22 12:14:41 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2006-12-22 12:15:14 StandardWrapperValve[session.Login]: Servlet.service() for servlet session.Login threw exception
    java.lang.NoClassDefFoundError: javax/security/jacc/PolicyContextException
         at com.sun.enterprise.security.SSLUtils.<clinit>(SSLUtils.java:68)
         at com.sun.enterprise.iiop.IIOPSSLSocketFactory.<init>(IIOPSSLSocketFactory.java:149)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at com.sun.corba.ee.impl.orb.ParserTable$5.operate(ParserTable.java:650)
         at com.sun.corba.ee.impl.orb.NormalParserAction.apply(NormalParserAction.java:22)
         at com.sun.corba.ee.spi.orb.PropertyParser.parse(PropertyParser.java:52)
         at com.sun.corba.ee.spi.orb.ParserImplBase.init(ParserImplBase.java:55)
         at com.sun.corba.ee.impl.orb.ORBDataParserImpl.<init>(ORBDataParserImpl.java:397)
         at com.sun.corba.ee.impl.orb.ORBImpl.postInit(ORBImpl.java:499)
         at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:589)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:372)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:236)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:248)
         at com.sun.appserv.naming.S1ASCtxFactory.getInitialContext(S1ASCtxFactory.java:208)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at iims.shared.ServerAgent.setServer(ServerAgent.java:134)
         at iims.web.session.Login.doPost(Login.java:150)
         at iims.web.session.Login.doGet(Login.java:665)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         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:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    2006-12-22 12:15:16 StandardWrapperValve[session.Login]: Servlet.service() for servlet session.Login threw exception
    java.lang.NoClassDefFoundError
         at com.sun.enterprise.iiop.IIOPSSLSocketFactory.<init>(IIOPSSLSocketFactory.java:149)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at com.sun.corba.ee.impl.orb.ParserTable$5.operate(ParserTable.java:650)
         at com.sun.corba.ee.impl.orb.NormalParserAction.apply(NormalParserAction.java:22)
         at com.sun.corba.ee.spi.orb.PropertyParser.parse(PropertyParser.java:52)
         at com.sun.corba.ee.spi.orb.ParserImplBase.init(ParserImplBase.java:55)
         at com.sun.corba.ee.impl.orb.ORBDataParserImpl.<init>(ORBDataParserImpl.java:397)
         at com.sun.corba.ee.impl.orb.ORBImpl.postInit(ORBImpl.java:499)
         at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:589)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:372)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:236)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:248)
         at com.sun.appserv.naming.S1ASCtxFactory.getInitialContext(S1ASCtxFactory.java:208)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at iims.shared.ServerAgent.setServer(ServerAgent.java:134)
         at iims.web.session.Login.doPost(Login.java:150)
         at iims.web.session.Login.doGet(Login.java:665)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         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:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    2006-12-22 12:27:55 StandardContext[servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1b2d7df')
    2006-12-22 12:27:55 StandardContext[servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@7a9224')
    2006-12-22 12:27:55 StandardContext[servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@110b640')
    2006-12-22 12:27:55 StandardContext[servlets-examples]SessionListener: contextDestroyed()
    2006-12-22 12:27:55 StandardContext[servlets-examples]ContextListener: contextDestroyed()
    2006-12-22 12:27:55 StandardContext[jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@13fba1')
    2006-12-22 12:27:55 StandardContext[jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1ed27e4')
    2006-12-22 12:27:55 StandardContext[jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@d61aef')
    2006-12-22 12:27:55 StandardContext[jsp-examples]SessionListener: contextDestroyed()
    2006-12-22 12:27:55 StandardContext[jsp-examples]ContextListener: contextDestroyed()
    2006-12-22 12:29:47 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2006-12-22 12:29:47 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2006-12-22 12:29:47 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2006-12-22 12:29:48 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2006-12-22 12:29:48 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2006-12-22 13:09:15 StandardWrapperValve[session.Login]: Servlet.service() for servlet session.Login threw exception
    java.lang.NoClassDefFoundError: javax/security/jacc/PolicyContextException
         at com.sun.enterprise.security.SSLUtils.<clinit>(SSLUtils.java:68)
         at com.sun.enterprise.iiop.IIOPSSLSocketFactory.<init>(IIOPSSLSocketFactory.java:149)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at com.sun.corba.ee.impl.orb.ParserTable$5.operate(ParserTable.java:650)
         at com.sun.corba.ee.impl.orb.NormalParserAction.apply(NormalParserAction.java:22)
         at com.sun.corba.ee.spi.orb.PropertyParser.parse(PropertyParser.java:52)
         at com.sun.corba.ee.spi.orb.ParserImplBase.init(ParserImplBase.java:55)
         at com.sun.corba.ee.impl.orb.ORBDataParserImpl.<init>(ORBDataParserImpl.java:397)
         at com.sun.corba.ee.impl.orb.ORBImpl.postInit(ORBImpl.java:499)
         at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:589)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:372)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:236)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:248)
         at com.sun.appserv.naming.S1ASCtxFactory.getInitialContext(S1ASCtxFactory.java:208)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at iims.shared.ServerAgent.setServer(ServerAgent.java:134)
         at iims.web.session.Login.doPost(Login.java:150)
         at iims.web.session.Login.doGet(Login.java:665)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         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:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    2006-12-22 13:09:17 StandardWrapperValve[session.Login]: Servlet.service() for servlet session.Login threw exception
    java.lang.NoClassDefFoundError
         at com.sun.enterprise.iiop.IIOPSSLSocketFactory.<init>(IIOPSSLSocketFactory.java:149)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at com.sun.corba.ee.impl.orb.ParserTable$5.operate(ParserTable.java:650)
         at com.sun.corba.ee.impl.orb.NormalParserAction.apply(NormalParserAction.java:22)
         at com.sun.corba.ee.spi.orb.PropertyParser.parse(PropertyParser.java:52)
         at com.sun.corba.ee.spi.orb.ParserImplBase.init(ParserImplBase.java:55)
         at com.sun.corba.ee.impl.orb.ORBDataParserImpl.<init>(ORBDataParserImpl.java:397)
         at com.sun.corba.ee.impl.orb.ORBImpl.postInit(ORBImpl.java:499)
         at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:589)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:372)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:236)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:248)
         at com.sun.appserv.naming.S1ASCtxFactory.getInitialContext(S1ASCtxFactory.java:208)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at iims.shared.ServerAgent.setServer(ServerAgent.java:134)
         at iims.web.session.Login.doPost(Login.java:150)
         at iims.web.session.Login.doGet(Login.java:665)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         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:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)

    Connecting to an EJB from a jsp in tomcat is no different from connecting to an EJB from a remote client.
    You have to go through the basics such as setting up your Initial context and then doing a lookup.
    InitialContext ctx = new InitialContext(props);
    MyBeanHome beanhome = (MyBeanHome) ctx.lookup("ejb/mysuperbean");

  • URGENT HELP NEEDED ... Tomcat Realm and JRE1.4 plug-in problem

    I have tried the Security Realm of Tomcat. Since I do not have
    an LDAP server, I decided to use the Tomcat-users.xml file in
    Tomcat\conf directory.
    I added the following lines of code in the web.xml file.
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Entire Application</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <!-- NOTE: This role is not present in the default users file -->
    <role-name>webviewer</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Tomcat Manager Application</realm-name>
    </login-config>
    The <role-name> "webviewer" is added into "Tomcat-Users.xml" as the following:
    <tomcat-users>
    <user name="test" password="password" roles="webviewer" />
    </tomcat-users>
    So, now when we type the url: http://localhost:8080/adbpdbre/default.htm, TOMCAT shows a dialog box asking for UserName: and Password:Now, only when we give the username and password, it shows the page. This is exactly what we want.
    But the problem now is, this default.htm page, has 5 links to 5 applets. The first time that I click on one of these links, the JRE plug of 1.4 shows a dialog again asking for the username and password. Till I dont provide the username and password the system doesnt go ahead and applet doesnt load. I do not want the JRE to ask me for the username/passwords again..How to avoid this ?
    Can you give me some more information on this. Ultimately in the production usage, we will be using LDAP and not Tomcat's memory realm.
    URGENT HELP NEEDED ... I need to get back to my client on this.
    Help would be v. much appreciated.

    In the config file, you 're essentially saying that you want Tomcat to prompt for usr/passw on every request (url-pattern = /*) made by a 'webviewer', and that's exactly what Tomcat is doing.
    Consider using specific url-patterns & roles for resources to be protected. If for now, all you need is to protect the first page, use a more specific url-pattern.
    Just an advice : if you'll be using LDAP in production, do not waste time with Tomcat's Security Realm and the BASIC authentication type, since the two have not much in common. Start reading doc on LDAP, and code a prototype, or even better, a vertical slice of the app (i.e a proof of concept).

  • Java Server Pages Programming Database Access Error Through Tomcat

    Question# 1
    I am trying to access MYSQL Database through JAVA Server Pages programming using Tomcat Server as web server on win xp.
    Whenever I give following url http://localhost:8080/jspBook/ch1/customers.jsp in web browser , I get followin errors.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
    org.apache.jsp.ch1.customers_jsp._jspService(org.apache.jsp.ch1.customers_jsp:96)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.
    Apache Tomcat/5.5.15
    I am facing this problem since one month. I tried searching on google, but could not get concrete answer. I have configured mysqlconnector to connect to mysql and also configured other things in Tomcat's webapps folder. But I could not overcome this error.
    Please reply urgently. Thankz for the help and time. ?
    <!-- JSP Directives -->
    <%@ page import="java.sql.*" %>
    <%@ page contentType="text/html" %>
    <html>
    <head>
         <title>Insurance Quoting System</title>
    </head>
    <body>
    <basefont face="Arial">
    <!-- JSP Declarations -->
    <%! ResultSet rs = null;%>
    <!-- JSP Scriptlet -->     
    <%
         try {
              Class.forName("org.gjt.mm.mysql.Driver");
              Connection db = DriverManager.getConnection(
    "jdbc:mysql://localhost:3306/quoting");
              Statement s = db.createStatement();
              rs = s.executeQuery("select * from customer");
         catch (Exception e) {
    // For now, just report the error to the system log
         System.out.println(e.toString());
    %>
    <!-- Template text -->
    <table width="550" border="0" align="center">
    <tr>
    <td bgcolor="#006633">
    <div align="center">
              <font size="6" color="#FFFFFF"><b>Insurance Quoting System</b></font>
         </div>
    </td>
    </tr>
    <tr>
    <td>
    <p> </p>
    <p> </p>
    <p align="center"><b>Customers</b></p>
    <table width="290" border="0" align="center">
    <%
         try {
              while (rs.next()) {
    %>
    <!-- JSP Expressions used within template text -->
         <tr>
              <td width="20"><%= rs.getInt(1) %></td>
              <td width="70"><%= rs.getString(2) %></td>
              <td width="70"><%= rs.getString(3) %></td>
              <td width="40">
                   <a href="custMaint.jsp?id=<%= rs.getString(1) %>&action=edit">edit
    </a>
              </td>
              <td width="40">
                   <a href="custMaint.jsp?id=<%= rs.getString(1) %>&action=delete">delete
    </a>
              </td>
              <td width="40">
                   <a href="custMaint.jsp?id=<%= rs.getString(1) %>&action=newQuote">new quote
    </a>
              </td>
         </tr>
    <%
         catch (SQLException e) {
         // For now, just report the error to the system log
         System.out.println(e.toString());
    %>
    </table>
    </td>
    </tr>
    <tr>
         <td>
              <p> </p>
         <p align="center">New Customer</p>
         </td>
    </tr>
    </table>
    </body>
    </html>
    I have tried all possible configurations of classpath with mysqlconnectorj and Tomcat, but i could not find any solution. Plz help urgently. Thankz a lot.

    Your DB connection is probably failing
    As a result your result set "rs" is null when you get to it later on, causing a null pointer exception.
    Do you need to provide a username/password for your database?
    Have you configured your database to allow connections from localhost?
    If you haven't already figured it out, doing SQL programming in a JSP is bad practice. Put your SQL code into a java bean / class where it belongs.

  • Access database vs Tomcat 1.4.2.9

    Good afternoon
    I'm currently at my practical training and i'm trying te access a MS Access database with a Servlet. I've already done that in the past and there weren't any issues, so it should be a piece of cake.
    Unfortunately, i think there's an issue with Tomcat. When i access the database from the servlet, i always get a "General Error", with no explanation. It seems he can't find the data source or the driver. I already configured a System and User DSN for the database, so this should work.
    I also wrote a testapplication, to test my database-class and when i write something to that database, it really updates the database.
    I have to use that specific version of tomcat, i'm afraid upgrading Tomcat is not an option.
    Here's my code:
    Open connection:
         /** Openen van de connectie naar de databank */
         private void openDatabank()
              try{
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   con = DriverManager.getConnection("jdbc:odbc:Viewer");
            catch(SQLException e){ System.out.println("SQLExcep " + e.getMessage()); e.printStackTrace(); }
            catch(ClassNotFoundException cnf){ System.out.println("CNF: " + cnf.getMessage()); cnf.printStackTrace(); }
         }Insert information into the database
         public void voerNonQueryUit(String sql)
              openDatabank();
             try{
                  Statement stmt = con.createStatement();
                  stmt.execute(sql);
                  sluitDatabank();
             }catch(Exception e){ e.printStackTrace(); }
         }Call the insert method:
         /** Kijkt of databank al is aangemaakt */
         private void maakDatabank()
              if(db == null)
                   db = new Databank();
         /** Sessieid die behoort aan gebruiker wegschrijven in databank */
         public void schrijfSessieIDWeg(GenerateID generateid)
              maakDatabank();
              sql = "INSERT INTO Sessie(SessieID) VALUES ('" + generateid.getId() + "')";
              db.voerNonQueryUit(sql);
         }

    I'd look at two things:
    (1) Your PATH environment variable should have JAVA_HOME/bin as its very first entry, where JAVA_HOME is the directory where you've installed the JDK.
    (2) If the first thing doesn't fix it, there's probably a registry setting that points to the JRE. On my machine, it's under LOCAL_MACHINE/SOFTWARE/Java Soft. See what's in there and make it use the ones you want.
    MOD

  • Accessing .war on tomcat using apache

    i am trying to deploy .war file in the tomcat server that communicates with apache to fulfill the dynamic requests.
    Now when i am making war I am able to access the application when I use tomcat only.
    But when used inconjunction with apache web server it does not shows the page giving page not found error.
    where is the problem?
    I have used jk connector for connecting the two servers.
    Are there some changes that i need to do in the configuration file that i need to do to make it happne? Please help.

    i am trying to deploy .war file in the tomcat server that communicates with apache to fulfill the dynamic requests.
    Now when i am making war I am able to access the application when I use tomcat only.
    But when used inconjunction with apache web server it does not shows the page giving page not found error.
    where is the problem?
    I have used jk connector for connecting the two servers.
    Are there some changes that i need to do in the configuration file that i need to do to make it happne? Please help.

  • Does MS Access work with Tomcat?

    Hi,
    I'vw setup a access database with pageview under Tomcat. I can access the page in the same machine, but, when it's accessed from other machines, It returns error:
    'c:\jakarta-tomcat-3.2.2\webapps\Access_data\xyz1.mdb' is not a valid path.
    It is defined in the connection setup under Acces. I tried to change it to URI address and that doesn't help. Can someone tell me how can I correct this problem for users?
    TIA

    Hi,
    I created a database using MS Access. In Access, there's an option to create HTML page which would call the DB. I did that and saved it under Tomcat. I can access the page, but, problem is MSAccess isn't saving the parameters like permissions, etc. Any ideas.
    BTW, your solution worked just once. I did the mapping under web.xml as 'mdb' and 'application/mdb'. It started throwing the same error again.

  • How to access .html in tomcat

    I am very new to programming. I have created an html file (ThreeParamsForm.html) and placed it in development directoy. I am unsure of how to access that file. When i am typing http://localhost/ThreeParamsForm.html it is giving me HTTP Status 404 error. I have tried using servlets but they seem to be working fine. It is only htmls which i am unsure how to access. please help

    I think it may be considered bad practice to include all your web applications in the root directory.
    Instead, why don't you deploy each web application in it's own directory with a deployment descriptor.
    Your directory structure should look like this:
    [TOMCAT_HOME]
    --|\webapps
    ----|\MyWebApp
    ------|index.html
    ------|\WEB-INF
    --------|web.xmlYou'r web.xml file might read like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app>
         <context path="/MyWebApp" />
    </web-app>This so when you browse to your web site, you will go to http://localhost/MyWebApp

  • Applet access denied  with Tomcat 4.1.29 -- Plz Help

    I searched for answers in the forum and used the jarsigner to certify an applet that uses Oracle thin driver. Modified the catalina.policy to:
    grant {
            permission java.security.AllPermission;
    permission java.net.SocketPermission "127.0.0.1:1024-", "accept, connect, listen, resolve";
              }; I am still seeing this error:
    access denied (java.net.SocketPermission 127.0.0.1:1521 connect, resolve)PLEASE HELP
    Murthy

    Thanks for the clarification! I created a java.policy file on the client. I'm now seeing null pointer for the connection variable. BTW, on the client I saved the java.policy at $HOME and the policy tool says it can't find it!!!

  • Custom Access Gate for tomcat in solaris 10 AMD 64

    i need write custom AccessGate in java, without install AccessServer SDK in server solaris 10 ADM64, is it possible?

    NO. You must install the Asdk in a supported platform, configure the accessgate, policy to be able to develop an access gate.

  • Portal 7.1 + Access Manager in realm mode

    OS Solaris SPARC 9.
    Components already installed: SJES Directory Server + SJES5 Web Server + SJES5 Access Manager (configured in realm mode with 'Configure now' option selected).
    Web Server is listenin on port 8088.
    It is said in "SJES5 Installation Guide for UNIX) that Portal Server supports Realm mode only if Access Manager is configured with Directory Server, with AMSDK configured for the data store.
    I've installed AMSDK at the same time when installed AM itself. No postinstallition configuration was made.
    But when I try to install Portal 7.1 (using SJES5 GUI installer, in 'configure now' mode) in realm mode, i receive following errors during installition:
    Sun enterprise system 5 - installed
    Java DB - installed (configure after install)
    System Registry 3.1 installed (configure after install)
    Java System Portal - installed (configuration failed)
    Exploring /var/opt/SUNWportal/logs/config/portal.fabric.0.0.log shows following errors:
    WARNING     SJS Portal Server     debug.com.sun.portal.fabric.config     "ThreadID=10; ClassName=com.sun.portal.fabric.config.ValidatePortalInputData; MethodName=validateSharedComponents; "     PSFB_CSPFC0301:The Directory PrivateLibDir is *not* being validated.
    SEVERE     SJS Portal Server     debug.com.sun.portal.fabric.config     "ThreadID=10; ClassName=com.sun.portal.fabric.config.ValidatePortalInputData; MethodName=checkPSAMInstallData; "     PSFB_CSPFC0061:The Access Manager Configuration File /etc/opt/SUNWam/config/AMConfig.properties exists with required permissions.     
    SEVERE     SJS Portal Server     debug.com.sun.portal.fabric.util     "ThreadID=10; ClassName=com.sun.portal.fabric.util.NetworkUtil; MethodName=isPortValid; "     PSFB_CSPFU0011: The Port 8989 on server.org.com is being used.     
    SEVERE     SJS Portal Server     debug.com.sun.portal.fabric.util     "ThreadID=10; ClassName=com.sun.portal.fabric.util.NetworkUtil; MethodName=isPortValid; "     PSFB_CSPFU0011: The Port 8088 on server.org.com is being used.     
    SEVERE     SJS Portal Server     debug.com.sun.portal.fabric.config     "ThreadID=10; ClassName=com.sun.portal.fabric.config.PortalConfigurator; MethodName=createPortalInstances; "     PSFB_CSPFC0041:Failed invoking mbean action : create instance.
    javax.management.MBeanException: Exception thrown in operation createAndFinalizeInstance                              
    "     at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:435)"                              
    "     at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)"                              
    "     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)"                              
    "     at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)"                              
    "     at com.sun.jdmk.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:203)"                              
    "     at com.sun.jdmk.interceptor.MBeanServerInterceptorWrapper.invoke(MBeanServerInterceptorWrapper.java:512)"                              
    "     at com.sun.portal.admin.server.PortalServerLoggingInterceptor.invoke(PortalServerLoggingInterceptor.java:422)"                              
    "     at com.sun.cacao.agent.DispatchInterceptor.invoke(DispatchInterceptor.java:662)"                              
    "     at com.sun.cacao.agent.auth.impl.AccessControlInterceptor.invoke(AccessControlInterceptor.java:618)"                              
    "     at com.sun.jdmk.JdmkMBeanServerImpl.invoke(JdmkMBeanServerImpl.java:764)"                              
    "     at com.sun.cacao.common.instrum.impl.InstrumDefaultForwarder.invoke(InstrumDefaultForwarder.java:106)"                              
    "     at javax.management.remote.generic.ServerIntermediary.handleRequest(ServerIntermediary.java:280)"                              
    "     at javax.management.remote.generic.ServerIntermediary$PrivilegedRequestJob.run(ServerIntermediary.java:951)"                              
    "     at java.security.AccessController.doPrivileged(Native Method)"
    "     at javax.management.remote.generic.ServerIntermediary$RequestHandler.handleMBSReqMessage(ServerIntermediary.java:727)"
    "     at javax.management.remote.generic.ServerIntermediary$RequestHandler.execute(ServerIntermediary.java:629)"
    "     at com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl$RemoteJob.run(ServerSynchroMessageConnectionImpl.java:249)"
    "     at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208)"
    "     at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59)"
    Caused by: com.sun.portal.admin.common.PSMBeanException: java.lang.SecurityException: authentication failure: Authentication failed: Error occurred while processing XML request.
    Connection refused
    com.sun.cacao.agent.impl.CacaoJmxConnectorProvider.newJMXConnector(CacaoJmxConnectorProvider.java:388)
    javax.management.remote.JMXConnectorFactory.getConnectorAsService(JMXConnectorFactory.java:415)
    javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:307)
    javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:247)
    com.sun.portal.admin.common.util.AdminUtil.getConnector(AdminUtil.java:813)
    com.sun.portal.admin.server.AdminServerUtil.getJMXConnector(AdminServerUtil.java:81)
    com.sun.portal.fabric.mbeans.Portal.createAndFinalizeInstance(Portal.java:549)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)
    com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    com.sun.jdmk.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:203)
    com.sun.jdmk.interceptor.MBeanServerInterceptorWrapper.invoke(MBeanServerInterceptorWrapper.java:512)
    com.sun.portal.admin.server.PortalServerLoggingInterceptor.invoke(PortalServerLoggingInterceptor.java:422)
    com.sun.cacao.agent.DispatchInterceptor.invoke(DispatchInterceptor.java:662)
    com.sun.cacao.agent.auth.impl.AccessControlInterceptor.invoke(AccessControlInterceptor.java:618)
    com.sun.jdmk.JdmkMBeanServerImpl.invoke(JdmkMBeanServerImpl.java:764)
    com.sun.cacao.common.instrum.impl.InstrumDefaultForwarder.invoke(InstrumDefaultForwarder.java:106)
    javax.management.remote.generic.ServerIntermediary.handleRequest(ServerIntermediary.java:280)
    javax.management.remote.generic.ServerIntermediary$PrivilegedRequestJob.run(ServerIntermediary.java:951)
    java.security.AccessController.doPrivileged(Native Method)     
    javax.management.remote.generic.ServerIntermediary$RequestHandler.handleMBSReqMessage(ServerIntermediary.java:727)     
    javax.management.remote.generic.ServerIntermediary$RequestHandler.execute(ServerIntermediary.java:629)     
    com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl$RemoteJob.run(ServerSynchroMessageConnectionImpl.java:249)     
    com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208)     
    com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59)     
    "     at com.sun.portal.fabric.mbeans.Portal.createAndFinalizeInstance(Portal.java:564)"     
    "     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:585)"     
    "     at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)"     
    "     ... 18 more"     
    [#     2007-06-14T19:35:27.195+0400     SEVERE     SJS Portal Server     debug.com.sun.portal.fabric.config     "ThreadID=10; ClassName=com.sun.portal.fabric.config.PortalConfigurator; MethodName=configurePortal; "     PSFB_CSPFC0034:Encountered Exception while configuring the Portal
    com.sun.portal.fabric.tasks.ConfigurationException: javax.management.MBeanException: Exception thrown in operation createAndFinalizeInstance                              
    "     at com.sun.portal.fabric.config.PortalConfigurator.createPortalInstances(PortalConfigurator.java:1314)"                              
    "     at com.sun.portal.fabric.config.PortalConfigurator.configurePortal(PortalConfigurator.java:842)"                              
    "     at com.sun.portal.fabric.config.ConfigurePortal.main(ConfigurePortal.java:189)"                              
    Caused by: javax.management.MBeanException: Exception thrown in operation createAndFinalizeInstance                              
    "     at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:435)"                              
    "     at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)"                              
    "     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)"                              
    "     at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)"                              
    "     at com.sun.jdmk.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:203)"                              
    "     at com.sun.jdmk.interceptor.MBeanServerInterceptorWrapper.invoke(MBeanServerInterceptorWrapper.java:512)"                              
    "     at com.sun.portal.admin.server.PortalServerLoggingInterceptor.invoke(PortalServerLoggingInterceptor.java:422)"                              
    "     at com.sun.cacao.agent.DispatchInterceptor.invoke(DispatchInterceptor.java:662)"                              
    "     at com.sun.cacao.agent.auth.impl.AccessControlInterceptor.invoke(AccessControlInterceptor.java:618)"                              
    "     at com.sun.jdmk.JdmkMBeanServerImpl.invoke(JdmkMBeanServerImpl.java:764)"                              
    "     at com.sun.cacao.common.instrum.impl.InstrumDefaultForwarder.invoke(InstrumDefaultForwarder.java:106)"
    "     at javax.management.remote.generic.ServerIntermediary.handleRequest(ServerIntermediary.java:280)"
    "     at javax.management.remote.generic.ServerIntermediary$PrivilegedRequestJob.run(ServerIntermediary.java:951)"
    "     at java.security.AccessController.doPrivileged(Native Method)"
    "     at javax.management.remote.generic.ServerIntermediary$RequestHandler.handleMBSReqMessage(ServerIntermediary.java:727)"
    "     at javax.management.remote.generic.ServerIntermediary$RequestHandler.execute(ServerIntermediary.java:629)"
    "     at com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl$RemoteJob.run(ServerSynchroMessageConnectionImpl.java:249)"
    "     at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208)"
    "     at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59)"
    Caused by: com.sun.portal.admin.common.PSMBeanException: java.lang.SecurityException: authentication failure: Authentication failed: Error occurred while processing XML request.
    Connection refused
    com.sun.cacao.agent.impl.CacaoJmxConnectorProvider.newJMXConnector(CacaoJmxConnectorProvider.java:388)
    javax.management.remote.JMXConnectorFactory.getConnectorAsService(JMXConnectorFactory.java:415)
    javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:307)
    javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:247)
    com.sun.portal.admin.common.util.AdminUtil.getConnector(AdminUtil.java:813)
    com.sun.portal.admin.server.AdminServerUtil.getJMXConnector(AdminServerUtil.java:81)
    com.sun.portal.fabric.mbeans.Portal.createAndFinalizeInstance(Portal.java:549)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)
    com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    com.sun.jdmk.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:203)
    com.sun.jdmk.interceptor.MBeanServerInterceptorWrapper.invoke(MBeanServerInterceptorWrapper.java:512)
    com.sun.portal.admin.server.PortalServerLoggingInterceptor.invoke(PortalServerLoggingInterceptor.java:422)
    com.sun.cacao.agent.DispatchInterceptor.invoke(DispatchInterceptor.java:662)
    com.sun.cacao.agent.auth.impl.AccessControlInterceptor.invoke(AccessControlInterceptor.java:618)
    com.sun.jdmk.JdmkMBeanServerImpl.invoke(JdmkMBeanServerImpl.java:764)
    com.sun.cacao.common.instrum.impl.InstrumDefaultForwarder.invoke(InstrumDefaultForwarder.java:106)
    javax.management.remote.generic.ServerIntermediary.handleRequest(ServerIntermediary.java:280)
    javax.management.remote.generic.ServerIntermediary$PrivilegedRequestJob.run(ServerIntermediary.java:951)
    java.security.AccessController.doPrivileged(Native Method)
    javax.management.remote.generic.ServerIntermediary$RequestHandler.handleMBSReqMessage(ServerIntermediary.java:727)
    javax.management.remote.generic.ServerIntermediary$RequestHandler.execute(ServerIntermediary.java:629)
    com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl$RemoteJob.run(ServerSynchroMessageConnectionImpl.java:249)
    com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208)
    com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59)
    "     at com.sun.portal.fabric.mbeans.Portal.createAndFinalizeInstance(Portal.java:564)"
    "     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:585)"
    "     at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)"
    "     ... 18 more"                              
    [#     2007-06-14T19:35:27.792+0400     SEVERE     SJS Portal Server     debug.com.sun.portal.fabric.config     "ThreadID=10; ClassName=com.sun.portal.fabric.config.ConfigurePortal; MethodName=main; "     PSFB_CSPFC0014:Failed configuring Portal Server!!
    com.sun.portal.fabric.tasks.ConfigurationException: com.sun.portal.fabric.tasks.ConfigurationException: javax.management.MBeanException: Exception thrown in operation createAndFinalizeInstance                              
    "     at com.sun.portal.fabric.config.PortalConfigurator.configurePortal(PortalConfigurator.java:849)"                              
    "     at com.sun.portal.fabric.config.ConfigurePortal.main(ConfigurePortal.java:189)"                              
    Caused by: com.sun.portal.fabric.tasks.ConfigurationException: javax.management.MBeanException: Exception thrown in operation createAndFinalizeInstance                              
    "     at com.sun.portal.fabric.config.PortalConfigurator.createPortalInstances(PortalConfigurator.java:1314)"                              
    "     at com.sun.portal.fabric.config.PortalConfigurator.configurePortal(PortalConfigurator.java:842)"                              
    "     ... 1 more"                              
    Caused by: javax.management.MBeanException: Exception thrown in operation createAndFinalizeInstance                              
    "     at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:435)"                              
    "     at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)"                              
    "     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)"                              
    "     at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)"                              
    "     at com.sun.jdmk.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:203)"
    "     at com.sun.jdmk.interceptor.MBeanServerInterceptorWrapper.invoke(MBeanServerInterceptorWrapper.java:512)"
    "     at com.sun.portal.admin.server.PortalServerLoggingInterceptor.invoke(PortalServerLoggingInterceptor.java:422)"
    "     at com.sun.cacao.agent.DispatchInterceptor.invoke(DispatchInterceptor.java:662)"
    "     at com.sun.cacao.agent.auth.impl.AccessControlInterceptor.invoke(AccessControlInterceptor.java:618)"
    "     at com.sun.jdmk.JdmkMBeanServerImpl.invoke(JdmkMBeanServerImpl.java:764)"
    "     at com.sun.cacao.common.instrum.impl.InstrumDefaultForwarder.invoke(InstrumDefaultForwarder.java:106)"
    "     at javax.management.remote.generic.ServerIntermediary.handleRequest(ServerIntermediary.java:280)"
    "     at javax.management.remote.generic.ServerIntermediary$PrivilegedRequestJob.run(ServerIntermediary.java:951)"
    "     at java.security.AccessController.doPrivileged(Native Method)"
    "     at javax.management.remote.generic.ServerIntermediary$RequestHandler.handleMBSReqMessage(ServerIntermediary.java:727)"
    "     at javax.management.remote.generic.ServerIntermediary$RequestHandler.execute(ServerIntermediary.java:629)"
    "     at com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl$RemoteJob.run(ServerSynchroMessageConnectionImpl.java:249)"
    "     at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208)"
    "     at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59)"
    Caused by: com.sun.portal.admin.common.PSMBeanException: java.lang.SecurityException: authentication failure: Authentication failed: Error occurred while processing XML request.
    Connection refused
    com.sun.cacao.agent.impl.CacaoJmxConnectorProvider.newJMXConnector(CacaoJmxConnectorProvider.java:388)
    javax.management.remote.JMXConnectorFactory.getConnectorAsService(JMXConnectorFactory.java:415)
    javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:307)
    javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:247)
    com.sun.portal.admin.common.util.AdminUtil.getConnector(AdminUtil.java:813)
    com.sun.portal.admin.server.AdminServerUtil.getJMXConnector(AdminServerUtil.java:81)
    com.sun.portal.fabric.mbeans.Portal.createAndFinalizeInstance(Portal.java:549)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)
    com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    com.sun.jdmk.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:203)
    com.sun.jdmk.interceptor.MBeanServerInterceptorWrapper.invoke(MBeanServerInterceptorWrapper.java:512)
    com.sun.portal.admin.server.PortalServerLoggingInterceptor.invoke(PortalServerLoggingInterceptor.java:422)
    com.sun.cacao.agent.DispatchInterceptor.invoke(DispatchInterceptor.java:662)
    com.sun.cacao.agent.auth.impl.AccessControlInterceptor.invoke(AccessControlInterceptor.java:618)
    com.sun.jdmk.JdmkMBeanServerImpl.invoke(JdmkMBeanServerImpl.java:764)
    com.sun.cacao.common.instrum.impl.InstrumDefaultForwarder.invoke(InstrumDefaultForwarder.java:106)
    javax.management.remote.generic.ServerIntermediary.handleRequest(ServerIntermediary.java:280)
    javax.management.remote.generic.ServerIntermediary$PrivilegedRequestJob.run(ServerIntermediary.java:951)
    java.security.AccessController.doPrivileged(Native Method)
    javax.management.remote.generic.ServerIntermediary$RequestHandler.handleMBSReqMessage(ServerIntermediary.java:727)
    javax.management.remote.generic.ServerIntermediary$RequestHandler.execute(ServerIntermediary.java:629)
    com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl$RemoteJob.run(ServerSynchroMessageConnectionImpl.java:249)
    com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208)
    com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59)
    "     at com.sun.portal.fabric.mbeans.Portal.createAndFinalizeInstance(Portal.java:564)"     
    "     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:585)"     
    "     at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)"     
    "     ... 18 more"     
    May the problem be that AMSDK need additional configuration for datastore?

    Yes, copy config is enabled in all organisations.
    I also tried to create an ldap data store instead of amsdk, but same behavior.
    I have "fixed" the issue through a hack now by creating my own ldap login module, simply copied the original one and replaced LDAPPrincipal with my own version. It returns now a correct dn for the user in portal instead of the username only.
    Works this way. Alas, it is just a hack...
    As far as I can see, the problem is in the IDRepository. Its somewhat:
    If (username is a DN) return username;
    else return UniversalID;
    This universal ID is then used by ps to get desktop information and since it is not a valid dn in ldap the desktop servlet cannot proceed...
    I guess the problem does not appear in your environment. Maybe it was introduced with update 1? Do you use update 2?
    Thanks, Chris

  • Do I have to configure realm policy in Access Manager for IDM SPML Request

    Hi all,
    I wanted to run a SPML request from my application to the IDM which is presently protected by an AM server. Somehow, I get the following error, while I run a search using SpmlClient:
    org.openspml.util.SpmlException: Unsupported response content type "text/html", must be: "text/xml".
    Do I have to set a policy in Sun Access manager for the realm? Guys, pls help.
    Thanks,
    Aneesh.

    > I believe as long as you have access to the above two you can turn the CA off if you want.
    Enterprise CAs are not intended to be offline. Therefore, you should not turn off them. If these root CAs issue certificates only to subordinate CAs, then you should consider to implement offline Standalone (not Enterprise) Root CAs.
    > I believe the location of the CRL is detailed in the CDP which is detailed on the Certs issued but a given CA, so the client can look in the Cert and see what it states about the CDP and thereby get the list of revoked certs.
    this is correct.
    > to place its CDP at a location other than the  default location in case it overwrites the existing CRL at the default location
    no, CDP locations should be defined in the post-installation script.
    > does the fully qualified X500 name of the CDP include the CA Name (and therefore be unique) and it will not over write the original
    yes, LDAP URL includes CA server's NetBIOS name to differentiate between CAs.
    My weblog: en-us.sysadmins.lv
    PowerShell PKI Module: pspki.codeplex.com
    PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
    Check out new: SSL Certificate Verifier
    Check out new:
    PowerShell FCIV tool.

  • How to get access to the HTTP-Manager Tomcat ?

    How to get access to the HTT-Manager Tomcat ?
    Whe i do:
    http://localhost:8080 - i have access to the Kablink.
    How i can get access to the Tomcat Manager ??
    Serg

    Originally Posted by skoltogyan
    How to get access to the HTT-Manager Tomcat ?
    Whe i do:
    http://localhost:8080 - i have access to the Kablink.
    How i can get access to the Tomcat Manager ??
    Serg
    Hey Serg,
    I don't think that's possible with the tomcat config that is supplied with Vibe.
    You might get a better answer in the community space for Vibe/Kablink at vibe.novell.com, direct link being atm: https://vibe.novell.com/ssf/a/do?p_n...beonprem_url=1
    Cheers,
    Willem

  • IIS 6.0 and Tomcat 5.0.30, how to enable anonymous access?

    Dear All,
    Thanks to Adam Krouskop's great guide (2003) i got IIS 6 and Tomcat 5 working together using the isapi connector. But.... IIS won't give anonymous access to my Tomcat web-apps.
    When i go to http://localhost/jsp-examples it pops up a login window, when I enter my administrator username and password it will log me on and everything works fine. But how do i enable anonymous access??
    This might not be best place to post this question but I know there's people out here who know. Thanks in advance.
    Greetings from Holland. T.

    This is probably way too late to help you out but I just ran into the same problem with IIS 6.0. The thing that is missing from the connector instructions is that it does not tell you to add the DLL as a web service extension. Here is how to do that after adding the ISAPI filter:
    1) In the IIS manager, right-click on Web Service Extensions. Choose "Add a new Web service extension...".
    2) Type in a meaninful name for the extension, like "tomcat".
    3) Click the "Add" button.
    4) Type the full pathname for the isapi_redirect.dll file or click "Browse" button to find it.
    5) Check the "Set extension status to Allowed" checkbox.
    6) Click "OK" to add the new extension. Verify by clicking on Web Service Extensions folder and seeing the new one in the right-hand pane.
    7) Now go ahead and restart IIS as in the original instructions.
    Hope this helps someone in the future...

Maybe you are looking for

  • Is it possible to add text to a non-fillable form using Reader DC?

    TLDR: Can I add text to a form (e.g., fill it out) using Adobe Reader DC on Windows, or can that only be done with "fillable" forms?  If so, how? I'm attempting to fill out a fairly lengthy "paper" form.  The form is not a fillable form, it is a gove

  • In iOS 7 does it say if you have replied or forwarded an email?

    Recently since I have updated to iOS 7 it no longer tells me in mail if I have replied or forwarded to an email. This is very annoying. If there is a way to display this information please may someone tell me.

  • Run 10.6.2 and 10.5x at same time

    I have run into several compatability problems with 10.6.2 ie., Roxio easy vhs to dvd and HP Scanjet G4050 scanner, and considered reverting to 10.5x but have read of the other problems doing this. I was wondering if it would be possible to run 10.5

  • LDAP over SSL gives an error when testing connection in RPD

    Hello all, I got something strange. When I configure OBIEE to use an LDAP server (ADSI) it just works fine. Now when I change the port number and check SSL and I check the connection again it says: [53016] The IBM LDAP SSL (Secure Socket Layer) clien

  • I bought photoshop. Why won't it download?

    i paid for photoshop but when i click download the screen appears to enter my ID and PW after I do this it keeps saying i have been signed out