- This topic has 3 replies, 1 voice, and was last updated 16 years, 7 months ago by
DougMH.
-
AuthorPosts
-
DougMHParticipantI think I’ve reworked the JPASpring tutorial from a Java Project into a Web Project, but I think with Spring, I have to use Glassfish or other J2EE Application Server… it sure as heck is blowing up under Tomcat.
1) Is this True?
2) Isn’t Glassfish supplied with MyEclipse 6.6?
3) If it is, I can’t see it as a server, how do I access it?
4) If it is not, do I download and install it from GlassFish, then point to it using the Deployment Manager?Thanks,
December 3, 2008 at 2:21 pm #291594
DougMHParticipantI downloaded and installed GlassFish 2 It’s installed under c:\glassfish2.
I think I deployed my project (WebChassisII) successfully, but when I try to start the server, I immediately get the following error…
java.lang.ClassNotFoundException: com.sun.enterprise.server.PEMain
at com.sun.appserv.server.util.ClassLoaderChain.loadClass(ClassLoaderChain.java:192)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:402)Again, I though GlassFish was included with MyEclipse. I think I didn’t need to download it.
December 3, 2008 at 3:21 pm #291597
DougMHParticipantI’m now at home where it says my project WebChassisII was successfully deployed. If I right click on my project and say run as Web Application, the console registers the following…
Dec 3, 2008 4:16:34 PM com.sun.enterprise.server.PEMain main
INFO: Starting Sun Java System Application Server 9.1 (build b50g-beta3) …
Dec 3, 2008 4:16:34 PM com.sun.enterprise.server.PEMain$LoadMBeanServer doRun
INFO: MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
Dec 3, 2008 4:16:35 PM com.sun.enterprise.server.ss.ASLazyKernel startASSocketServices
INFO: CORE5098: AS Socket Service Initialization has been completed.
Dec 3, 2008 4:16:36 PM com.sun.enterprise.server.ApplicationServer printStartupInfo
INFO: CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.5.0_07] from [Sun Microsystems Inc.]
Dec 3, 2008 4:16:36 PM com.sun.enterprise.security.SecurityLifecycle <init>
INFO: SEC1002: Security Manager is OFF.
Dec 3, 2008 4:16:38 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush
INFO: C:\glassfish\domains\domain1/config/pid
Dec 3, 2008 4:16:38 PM com.sun.enterprise.admin.server.core.AdminService init
INFO: ADM0001:SunoneInterceptor is now enabled
Dec 3, 2008 4:16:39 PM com.sun.enterprise.security.PolicyLoader loadPolicy
INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
Dec 3, 2008 4:16:39 PM com.sun.enterprise.web.VirtualServer configureSSOValve
INFO: WEB0114: SSO is disabled in virtual server [server]
Dec 3, 2008 4:16:40 PM com.sun.enterprise.web.VirtualServer configureSSOValve
INFO: WEB0114: SSO is disabled in virtual server [__asadmin]
Dec 3, 2008 4:16:41 PM com.sun.enterprise.admin.server.core.AdminService initializeAMXMBeans
INFO: ADM1079: Initialization of AMX MBeans started
Dec 3, 2008 4:16:42 PM com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver logJconsoleStartup
INFO: ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://DOUGS-LAPTOP:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
Dec 3, 2008 4:16:42 PM com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver logJconsoleStartup
INFO: ADM1506: Status of Standard JMX Connector: Active = [true]
Dec 3, 2008 4:16:42 PM com.sun.enterprise.server.TargetFileFilter isApplicableToTarget
WARNING: Exception occured while accessing :__ejb_container_timer_app.ear_deployFailed
Dec 3, 2008 4:16:44 PM com.sun.enterprise.web.PEWebContainer startInstance
INFO: WEB0302: Starting Sun-Java-System/Application-Server.
Dec 3, 2008 4:16:44 PM com.sun.jbi.framework.JBIFramework startup
INFO: JBIFW0010: JBI framework ready to accept requests.
Dec 3, 2008 4:16:45 PM com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol start
INFO: WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
Dec 3, 2008 4:16:45 PM com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol start
INFO: WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
Dec 3, 2008 4:16:45 PM com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol start
INFO: WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
Dec 3, 2008 4:16:46 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Sun’s JavaServer Faces implementation (1.2_04-b18-p03) for context ‘/WebChassisII’
Dec 3, 2008 4:16:50 PM com.sun.enterprise.management.selfmanagement.SelfManagementService onReady
INFO: SMGT0007: Self Management Rules service is enabled
Dec 3, 2008 4:16:50 PM com.sun.enterprise.server.PEMain main
INFO: Application server startup complete.
Dec 3, 2008 4:17:31 PM org.apache.jasper.servlet.JspServlet serviceJspFile
SEVERE: PWC6117: File “C:\glassfish\lib\install\applications\admingui\adminGUI_war\WebChassisII\index.jsp” not found… but my index.jsp which forwards to UserPage.faces (UserPage.jsp) never comes up in the MyEclipse browser.
If I run an external browser, I get …
HTTP Status 404 –
——————————————————————————–
type Status report
message
descriptionThe requested resource () is not available.
——————————————————————————–
Sun Java System Application Server 9.1
Help!
December 3, 2008 at 6:27 pm #291601
DougMHParticipantI don’t mean to be a moving target, but I think these errors are germane.
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘hibernateSessionFactory’ defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
… 98 more
Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)
at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)
at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) -
AuthorPosts