users@glassfish.java.net

Problems converting app from 2.1 to 3.1

From: <forums_at_java.net>
Date: Tue, 5 Apr 2011 16:37:38 -0500 (CDT)

 I have an app that runs fine with JEE 5 and Glassfish 2.1.1.  Now I'm
trying to upgrade to JEE 6 and Glassfish 3.1, but there are problems.  On
deployment I get the error "Exception while loading the app".  How do I get
more information?  The log isn't being very helpful here.  I've dialed all
the levels up to FINE and it's not helping.  Later on the log says "RAR8505:
Application [ MyApp ] does not seem to have started. Skipping Inbound
Recovery for the application."

I feel fairly experienced in finding the source of the problem with Glassfish
2.1, but I'm missing something here.  To quote XKCD "my normal approach is
useless here".  If the log levels are at INFO and the error "Exception while
loading the app" is reported, shouldn't there be something--anything--to
explain that?  Then upping the log levels should help, but no luck.

Suggestions?

I'm going to start building up a simple app and adding parts of my app to see
if I can deploy anything at all.  I really just doing that for something to
try.  The glassfish install is just the ogs zip file unzipped, using the
domain it comes with.

The error and useless (to me) stack trace:

[#|2011-04-05T10:48:08.590-0600|SEVERE|oracle-glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-2;|Exception
while loading the app|#]
[#|2011-04-05T10:48:08.597-0600|WARNING|oracle-glassfish3.1|javax.enterprise.system.core.classloading.com.sun.enterprise.loader|_ThreadID=1;_ThreadName=Thread-2;|Input
stream has been finalized or forced closed without being explicitly closed;
stream instantiation reported in following stack trace java.lang.Throwable at
com.sun.enterprise.loader.ASURLClassLoader$SentinelInputStream.<init>(ASURLClassLoader.java:1230)
at
com.sun.enterprise.loader.ASURLClassLoader$InternalJarURLConnection.getInputStream(ASURLClassLoader.java:1338)
at java.net.URL.openStream(URL.java:1010) at
com.sun.naming.internal.VersionHelper12$InputStreamEnumeration$1.run(VersionHelper12.java:199)
at java.security.AccessController.doPrivileged(Native Method) at
com.sun.naming.internal.VersionHelper12$InputStreamEnumeration.getNextElement(VersionHelper12.java:194)
at
com.sun.naming.internal.VersionHelper12$InputStreamEnumeration.hasMore(VersionHelper12.java:214)
at
com.sun.naming.internal.ResourceManager.getApplicationResources(ResourceManager.java:470)
at
com.sun.naming.internal.ResourceManager.getInitialEnvironment(ResourceManager.java:159)
at javax.naming.InitialContext.init(InitialContext.java:219) at
javax.naming.InitialContext.<init>(InitialContext.java:197) at
com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.initializeRemoteNamingSupport(GlassfishNamingManagerImpl.java:157)
at
org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:139)
at
org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getProtocolManager(GlassFishORBHelper.java:187)
at
com.sun.ejb.containers.BaseContainer.initializeProtocolManager(BaseContainer.java:818)
at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:566) at
com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:155)
at
com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:149)
at
com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:105)
at
org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:234)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:290) at
org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:101) at
org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186) at
org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:249) at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
at
com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:364)
at
com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:208)
at
com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
at
com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
at
com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:243)
at
com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:135)
at
com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
at
com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
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.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55) |#]
Possibly irrelevant, but at one point I was getting "Request URI is too
large", but I changed the URI max to 0, just to get past that for now.

[#|2011-04-05T10:37:28.741-0600|SEVERE|oracle-glassfish3.1|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=20;_ThreadName=Thread-2;|GRIZZLY0039:
Request URI is too large. java.nio.BufferOverflowException at
com.sun.grizzly.tcp.http11.InternalInputBuffer.fill(InternalInputBuffer.java:765)
at
com.sun.grizzly.tcp.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:467)
at com.sun.grizzly.http.ProcessorTask.parseRequest(ProcessorTask.java:855) at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:692) at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013) at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
 


--
[Message sent by forum member 'culli']
View Post: http://forums.java.net/node/789009