users@glassfish.java.net

Help - Alternate docroots do not work from sun-web.xml

From: <glassfish_at_javadesktop.org>
Date: Fri, 11 Jan 2008 10:30:31 PST

Just downloaded the server and am trying to migrate a WebLogic 8.1 app that uses virtual directories. Whenever I attempt to apply alternate docroot, I get a class not found exception from the server. I have found and tried the alternate docroot properties suggested in other threads, in various configurations.
- App running in default server. Alternate docroot properties in sun-web.xml
- App running in default server. Alternate docroot properies in default virtual server
- App running in devault virtual server with alternate docroot properties.

Any ideas what this could mean?

Stack trace:

[#|2008-01-11T11:03:04.591-0500|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=19;_ThreadName=Thread-51;_RequestID=2f63de54-6e89-4b3a-8494-dfb0a6a6879e;|
com.sun.enterprise.admin.event.AdminEventListenerException: java.lang.ClassNotFoundException: com/sun/enterprise/security/jmac/callback/ContainerCallbackHandler
        at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:188)
        at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
        at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
        at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
        at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
        at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
        at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
        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.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
        at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
        at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
        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 sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
        at $Proxy1.invoke(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
        at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
        at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145)
        at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:537)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com/sun/enterprise/security/jmac/callback/ContainerCallbackHandler
        at com.sun.enterprise.security.jmac.AuthMessagePolicy.getDefaultCallbackHandler(AuthMessagePolicy.java:373)
        at com.sun.enterprise.security.jmac.config.ConfigHelper.getCallbackHandler(ConfigHelper.java:249)
        at com.sun.enterprise.security.jmac.config.ConfigHelper.init(ConfigHelper.java:95)
        at com.sun.enterprise.security.jmac.config.HttpServletHelper.<init>(HttpServletHelper.java:79)
        at com.sun.web.security.RealmAdapter.getConfigHelper(RealmAdapter.java:1223)
        at com.sun.web.security.RealmAdapter.setVirtualServer(RealmAdapter.java:289)
        at com.sun.enterprise.web.WebModule.setParent(WebModule.java:373)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:970)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1581)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222)
        at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
        ... 35 more
Caused by: java.lang.ClassNotFoundException: com/sun/enterprise/security/jmac/callback/ContainerCallbackHandler
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at com.sun.enterprise.security.jmac.AuthMessagePolicy$6.run(AuthMessagePolicy.java:366)
        at com.sun.enterprise.security.AppservAccessController.doPrivileged(AppservAccessController.java:68)
        at com.sun.enterprise.security.jmac.AuthMessagePolicy.getDefaultCallbackHandler(AuthMessagePolicy.java:355)
        ... 47 more
|#]
[Message sent by forum member 'yagni01' (yagni01)]

http://forums.java.net/jive/thread.jspa?messageID=253471