- This topic has 12 replies, 5 voices, and was last updated 16 years, 7 months ago by
Loyal Water.
-
AuthorPosts
-
BoYangMemberI have MyEclipse installed on my pc. Its version is 6.0.1.GA. I have JDK 1.5.013 and sun application server 9.1 installed as well.
When I try to start the sun appllication server from myEclipse, I got the following errors on console:
[#|2007-11-12T14:52:10.999-0500|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=71162d70-4db8-4e38-8654-66d97e2e8411;|Exception in thread “main” |#]
[#|2007-11-12T14:52:11.015-0500|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=71162d70-4db8-4e38-8654-66d97e2e8411;|java.lang.NoClassDefFoundError: javax/security/auth/message/config/AuthConfigFactory
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at com.sun.enterprise.security.SecurityLifecycle.initializeJMAC(SecurityLifecycle.java:136)
at com.sun.enterprise.security.SecurityLifecycle.onInitialization(SecurityLifecycle.java:104)
at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:262)
at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
|#]Any help will be appreciated.
November 13, 2007 at 7:53 am #278462
Loyal WaterMemberYou will have to use the GlassFish 2 connector to setup the SAS 9.1 server. You can do this by going to Windows > Prefs > MyEclipse > Servers > GlassFish > GlassFish 2.x.
November 14, 2007 at 12:43 pm #278569
BoYangMember@support-nipun wrote:
You will have to use the GlassFish 2 connector to setup the SAS 9.1 server. You can do this by going to Windows > Prefs > MyEclipse > Servers > GlassFish > GlassFish 2.x.
Thanks for your reply.
I do take your advice and user glassfish 2 as a connector, now I am able to restart the sun app server. However, I go to sun app server admin console and log in, there are a lot of errors showing up on myeclipse console and there is not information which was logined to server.log either:
Nov 14, 2007 1:41:52 PM com.sun.enterprise.update.util.LoggerUtil log
SEVERE: MSG_FileNotFound
java.io.FileNotFoundException: %GLASSFISH_HOME%\updatecenter\config\config.xml (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at com.sun.enterprise.update.config.ConfigManagerImpl.getInputStream(ConfigManagerImpl.java:429)
at com.sun.enterprise.update.config.ConfigManagerImpl.initializeUpdatecenterBean(ConfigManagerImpl.java:403)
at com.sun.enterprise.update.config.ConfigManagerImpl.<init>(ConfigManagerImpl.java:80)
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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.sun.enterprise.update.UpdateManager.getConfigManager(UpdateManager.java:173)
at com.sun.enterprise.update.schedule.SchedulerImpl.<init>(SchedulerImpl.java:65)
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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.sun.enterprise.management.ext.update.UpdateStatusImpl.getNumModules(UpdateStatusImpl.java:80)
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:597)
at com.sun.enterprise.management.support.AMXImplBase.getAttributeByMethod(AMXImplBase.java:1161)
at com.sun.enterprise.management.support.AMXImplBase.getAttributeInternal(AMXImplBase.java:1048)
at com.sun.enterprise.management.support.AMXImplBase.getAttribute(AMXImplBase.java:1020)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:666)
at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638)
at com.sun.enterprise.interceptor.DynamicInterceptor.getAttribute(DynamicInterceptor.java:196)
at com.sun.appserv.management.util.jmx.MBeanProxyHandler.getAttribute(MBeanProxyHandler.java:443)
at com.sun.appserv.management.util.jmx.MBeanProxyHandler.invoke(MBeanProxyHandler.java:604)
at com.sun.appserv.management.client.handler.AMXProxyHandler._invoke(AMXProxyHandler.java:1113)
at com.sun.appserv.management.client.handler.AMXProxyHandler.invoke(AMXProxyHandler.java:1024)
at $Proxy12.getNumModules(Unknown Source)
at com.sun.enterprise.tools.admingui.handlers.CommonHandlers.initSessionAttributes(CommonHandlers.java:147)
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:597)
at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:421)
at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:343)
at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:317)
at com.sun.jsftemplating.layout.descriptors.LayoutComponent.beforeCreate(LayoutComponent.java:331)
at com.sun.jsftemplating.layout.descriptors.LayoutComponent.getChild(LayoutComponent.java:270)
at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:413)
at com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:203)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:203)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at com.sun.enterprise.tools.admingui.servlet.DelayedInitFacesServlet.service(DelayedInitFacesServlet.java:89)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)November 15, 2007 at 1:33 am #278600
Loyal WaterMemberYou dont get these errors when you start GlassFish using an external instance ?
Why are you logging into the Admin Console when the server has been started from MyEclipse?
November 15, 2007 at 9:27 am #278617
BoYangMember@support-nipun wrote:
You dont get these errors when you start GlassFish using an external instance ?
Why are you logging into the Admin Console when the server has been started from MyEclipse?
I started glassfish from myeclipse, and I autodeployed a web application there. Then I went to glassfish web admin console and checked if the build was there.
Since I kept myeclipse opened all time, I saw thoese errors displaying on the myeclipse console.
I have GLASSFISH_HOME as env variable, it does not seem to fix the issue.
November 16, 2007 at 12:46 am #278657
Loyal WaterMemberAre you able to see the build in the admin console ?
November 20, 2007 at 8:15 pm #278810
BoYangMember@support-nipun wrote:
Are you able to see the build in the admin console ?
Yes, I was able to see the build in admin console. However, the exceptions I mentioned in myeclipse console are always there. I really would like to get rid of it,
What do I miss? The file path is out there, why myeclipse can not find it.
November 21, 2007 at 11:21 am #278850
Loyal WaterMemberI just checked with the dev team and it seems like this is normal… the admin console coughs up a bunch of exceptions when you login… I have no idea why, but it’s been doing it for quite a while now (since Glassfish 1?) and it seems to be harmless.
March 18, 2008 at 11:39 am #283036
rmaunderMemberThis message has not been recovered.
March 18, 2008 at 11:40 am #283037
rmaunderMemberThis message has not been recovered.
June 24, 2008 at 6:55 am #286155
grassolMemberWhen you compare the startup-command from the asadmin start-domain domain and the startup from myeclipse you can see, that in the myeclipse-startup there are several environment variables, which are not resolved.
For example %GLASSFISH_HOME%, %HADB_HOME%, %MFWK_HOME%.So i would agree, that this is not a normal behaviour and the startup-command of Glassfish 2 is, let’s say, a little bit suboptimal 😉
Is this fixed in 6.5??
Oliver
December 25, 2008 at 5:38 am #292798
ChetanShettigarMemberThis message has not been recovered.
December 29, 2008 at 1:05 pm #292873
Loyal WaterMemberThis message has not been recovered.
-
AuthorPosts