java.nio.BufferUnderflowException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Deploying ICEFaces webapp on Weblogic 10.3.5
    via by Unknown author,
  • Messages posted by ibanhoe
    via by Unknown author,
  • How to reproduce: 1. glassfish-embedded-all-3.0-b65.jar and glassfish-embedded-web-3.0-b65.jar are used. 2. Use war file with sample application (e.g., sample.war from Tomcat 6.0) 3. Use following code to start server and deploy application: public class Launcher { private static final Logger logger = Logger.getLogger(Launcher.class.getName()); private void startup(File installRoot, int port, File warArchive) { try { logger.info("Prepare embedded server file system builder."); File instanceRoot = new File(new File(installRoot, "domains"), "embeddedDomain"); EmbeddedFileSystem.Builder fsBuilder = new EmbeddedFileSystem.Builder().installRoot(installRoot, true) .instanceRoot(instanceRoot) .autoDelete(true); logger.info("Prepare embedded server builder."); Server.Builder builder = new Server.Builder("SampleServer").logger(true) .verbose(true) .embeddedFileSystem(fsBuilder.build()); logger.info("Build server."); Server server = builder.build(); logger.info("Add web container to server."); server.addContainer(ContainerBuilder.Type.web); logger.info("Create port HTTP port."); server.createPort(port); logger.info("Deploying application to embedded server."); DeployCommandParameters deployCommandParameters = new DeployCommandParameters(); deployCommandParameters.name = "SampleApplication"; server.getDeployer().deploy(warArchive, deployCommandParameters); } catch (Throwable t) { logger.log(Level.SEVERE, "Unexpected exception occurred", t); } } public static void main(String[] args) { new Launcher().startup(new File(args[0]), Integer.parseInt(args[1]), new File(args[2])); } } Results are: 1. Unclear warning during server startup: WARNING: c:\testGF\domains\embeddedDomain\config\keystore.jks (The system cannot find the file specified) 01.10.2009 23:03:30 com.sun.enterprise.v3.admin.IdmService postConstruct WARNING: THIS SHOULD BE FIXED, IN EMBEDDED CASE, THERE IS NO MASTER PASSWORD SET OR KEYSTORE DOES NOT EXIST ... 2. In case of embedded-all deployment failed with following exceptions in log: Deployment expansion took 313 01.10.2009 23:00:19 org.glassfish.deployment.common.AnnotationScanner scanArchive WARNING: Failed to scan archive for annotations java.lang.IllegalArgumentException: URI scheme is not "file" at java.io.File.<init>(File.java:366) at org.glassfish.deployment.common.AnnotationScanner.scanArchive(AnnotationScanner.java:88) at com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java:148) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:173) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:146) at Launcher.startup(Launcher.java:39) at Launcher.main(Launcher.java:48) 01.10.2009 23:00:19 com.sun.common.util.logging.LoggingConfigImpl openPropFile INFO: Cannot read logging.properties file. 01.10.2009 23:00:19 com.sun.enterprise.web.WebContainer createHttpListener INFO: Created HTTP listener embedded-listener on port 8070 01.10.2009 23:00:20 com.sun.enterprise.web.WebContainer configureHttpServiceProperties WARNING: pewebcontainer.invalid_http_service_property 01.10.2009 23:00:20 com.sun.enterprise.web.WebContainer createHosts INFO: Created virtual server server 01.10.2009 23:00:22 com.sun.enterprise.web.WebContainer loadSystemDefaultWebModules INFO: Virtual server server loaded system default web module 01.10.2009 23:00:26 com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate 01.10.2009 23:00:33 com.sun.faces.config.ConfigureListener INFO: Initializing Mojarra 2.0.0 (RC b18) for context '' 01.10.2009 23:00:39 com.sun.faces.config.AnnotationScanner SEVERE: Unable to process annotations for url, jar:file:/C:/Projects/EmbeddedTest/glassfish-embedded-all-3.0-b65.jar!/META-INF/faces-config.xml. Reason: java.nio.BufferUnderflowException 01.10.2009 23:00:39 com.sun.faces.config.AnnotationScanner SEVERE: java.nio.BufferUnderflowException at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:127) at com.sun.faces.config.AnnotationScanner$ConstantPoolInfo.containsAnnotation(AnnotationScanner.java:811) at com.sun.faces.config.AnnotationScanner$ClassFile.containsAnnotation(AnnotationScanner.java:734) at com.sun.faces.config.AnnotationScanner.processJarEntries(AnnotationScanner.java:369) at com.sun.faces.config.AnnotationScanner.processClasspath(AnnotationScanner.java:292) at com.sun.faces.config.AnnotationScanner.getAnnotatedClasses(AnnotationScanner.java:215) at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:765) at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:736) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) NAMING EXCEPTION:javax.naming.NamingException: Lookup failed for 'java:comp/BeanManager' in SerialContext [Root exception is javax.naming.NamingException: Error retrieving java:comp/BeanManager [Root exception is java.lang.IllegalStateException: Cannot resolve bean manager]] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:443) at javax.naming.InitialContext.lookup(InitialContext.java:392) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.glassfish.webbeans.jsf.WebBeansApplication.getBeanManager(WebBeansApplication.java:301) at org.glassfish.webbeans.jsf.WebBeansApplication.<init>(WebBeansApplication.java:81) at org.glassfish.webbeans.jsf.WebBeansApplicationFactory.getApplication(WebBeansApplicationFactory.java:60) at com.sun.faces.application.InjectionApplicationFactory.getApplication(InjectionApplicationFactory.java:86) at com.sun.faces.config.processor.AbstractConfigProcessor.getApplication(AbstractConfigProcessor.java:129) at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:251) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:113) at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:115) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:113) at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:335) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:219) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4680) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5305) at com.sun.enterprise.web.WebModule.start(WebModule.java:483) at org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:1523) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardHost.start(StandardHost.java:975) at org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:1523) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:529) at org.apache.catalina.startup.Embedded.start(Embedded.java:946) at com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:578) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174) at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:89) at java.security.AccessController.doPrivileged(Native Method) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58) at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60) at org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:78) at com.sun.enterprise.v3.server.ApplicationLifecycle.startContainers(ApplicationLifecycle.java:684) at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:429) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:232) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:186) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:146) at Launcher.startup(Launcher.java:39) at Launcher.main(Launcher.java:48) Caused by: javax.naming.NamingException: Error retrieving java:comp/BeanManager [Root exception is java.lang.IllegalStateException: Cannot resolve bean manager] at org.glassfish.webbeans.BeanManagerNamingProxy.handle(BeanManagerNamingProxy.java:130) at com.sun.enterprise.naming.impl.NamedNamingObjectManager.tryNamedProxies(NamedNamingObjectManager.java:84) at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:153) at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:429) ... 41 more Caused by: java.lang.IllegalStateException: Cannot resolve bean manager at org.glassfish.webbeans.BeanManagerNamingProxy.handle(BeanManagerNamingProxy.java:120) ... 44 more 01.10.2009 23:00:42 com.sun.enterprise.security.SecurityLifecycle <init> INFO: security.secmgroff 01.10.2009 23:00:43 com.sun.enterprise.security.SecurityLifecycle onInitialization INFO: Security startup service called 01.10.2009 23:00:43 com.sun.enterprise.security.PolicyLoader loadPolicy INFO: policy.loading 01.10.2009 23:00:43 com.sun.enterprise.security.SecurityLifecycle onInitialization INFO: Security service(s) started successfully.... 01.10.2009 23:00:45 com.sun.enterprise.deployment.node.SaxParserHandler error SEVERE: enterprise.deployment.backend.invalidDescriptorFailure 01.10.2009 23:00:45 com.sun.enterprise.deployment.io.DeploymentDescriptorFile read SEVERE: enterprise.deployment.backend.saxParserError 01.10.2009 23:00:45 org.glassfish.api.ActionReport failure SEVERE: Exception while deploying the app java.io.IOException: org.xml.sax.SAXParseException: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://java.sun.com/xml/ns/j2ee,descriptionGroup'. at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:116) at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:35) at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:580) at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:522) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:232) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:186) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:146) at Launcher.startup(Launcher.java:39) at Launcher.main(Launcher.java:48) Caused by: org.xml.sax.SAXParseException: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://java.sun.com/xml/ns/j2ee,descriptionGroup'. at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:304) at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:225) at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:563) at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:316) at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:215) at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:208) at com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:144) at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:112) ... 8 more 3. In case of embedded-web the application is deployed successfully, but 1) 1) Log contains several exceptions: Deployment expansion took 344 01.10.2009 23:04:49 org.glassfish.deployment.common.AnnotationScanner scanArchive WARNING: Failed to scan archive for annotations java.lang.IllegalArgumentException: URI scheme is not "file" at java.io.File.<init>(File.java:366) at org.glassfish.deployment.common.AnnotationScanner.scanArchive(AnnotationScanner.java:88) at com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java:148) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:173) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:146) at Launcher.startup(Launcher.java:39) at Launcher.main(Launcher.java:48) 01.10.2009 23:04:49 com.sun.common.util.logging.LoggingConfigImpl openPropFile INFO: Cannot read logging.properties file. 01.10.2009 23:04:50 com.sun.enterprise.web.WebContainer createHttpListener INFO: Created HTTP listener embedded-listener on port 8070 01.10.2009 23:04:50 com.sun.enterprise.web.WebContainer configureHttpServiceProperties WARNING: pewebcontainer.invalid_http_service_property 01.10.2009 23:04:50 com.sun.enterprise.web.WebContainer createHosts INFO: Created virtual server server 01.10.2009 23:04:52 com.sun.enterprise.web.WebContainer loadSystemDefaultWebModules INFO: Virtual server server loaded system default web module 01.10.2009 23:04:56 com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate 01.10.2009 23:05:03 com.sun.faces.config.ConfigureListener INFO: Initializing Mojarra 2.0.0 (RC b18) for context '' NAMING EXCEPTION:javax.naming.NamingException: Lookup failed for 'java:comp/BeanManager' in SerialContext [Root exception is javax.naming.NamingException: Error retrieving java:comp/BeanManager [Root exception is java.lang.IllegalStateException: Cannot resolve bean manager]] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:443) at javax.naming.InitialContext.lookup(InitialContext.java:392) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.glassfish.webbeans.jsf.WebBeansApplication.getBeanManager(WebBeansApplication.java:301) at org.glassfish.webbeans.jsf.WebBeansApplication.<init>(WebBeansApplication.java:81) at org.glassfish.webbeans.jsf.WebBeansApplicationFactory.getApplication(WebBeansApplicationFactory.java:60) at com.sun.faces.application.InjectionApplicationFactory.getApplication(InjectionApplicationFactory.java:86) at com.sun.faces.config.processor.AbstractConfigProcessor.getApplication(AbstractConfigProcessor.java:129) at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:251) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:113) at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:115) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:113) at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:335) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:219) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4680) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5305) at com.sun.enterprise.web.WebModule.start(WebModule.java:483) at org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:1523) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardHost.start(StandardHost.java:975) at org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:1523) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:529) at org.apache.catalina.startup.Embedded.start(Embedded.java:946) at com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:578) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174) at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:89) at java.security.AccessController.doPrivileged(Native Method) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58) at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60) at org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:78) at com.sun.enterprise.v3.server.ApplicationLifecycle.startContainers(ApplicationLifecycle.java:684) at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:429) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:232) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:186) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:146) at Launcher.startup(Launcher.java:39) at Launcher.main(Launcher.java:48) Caused by: javax.naming.NamingException: Error retrieving java:comp/BeanManager [Root exception is java.lang.IllegalStateException: Cannot resolve bean manager] at org.glassfish.webbeans.BeanManagerNamingProxy.handle(BeanManagerNamingProxy.java:130) at com.sun.enterprise.naming.impl.NamedNamingObjectManager.tryNamedProxies(NamedNamingObjectManager.java:84) at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:153) at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:429) ... 41 more Caused by: java.lang.IllegalStateException: Cannot resolve bean manager at org.glassfish.webbeans.BeanManagerNamingProxy.handle(BeanManagerNamingProxy.java:120) ... 44 more 2) Deplyment time is dramatically decreased in comparison with Prelude version (almost one minute instead of ~5 secs for prelude). 3) Opening a JSP page causes following errors: WARNING: StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP PWC6199: Generated servlet error: string:///index_jsp.java:3: package javax.servlet does not exist PWC6199: Generated servlet error: string:///index_jsp.java:4: package javax.servlet.http does not exist PWC6199: Generated servlet error: string:///index_jsp.java:5: package javax.servlet.jsp does not exist PWC6199: Generated servlet error: string:///index_jsp.java:13: package org.apache.jasper.runtime does not exist PWC6199: Generated servlet error: string:///index_jsp.java:14: package org.apache.jasper.runtime does not exist PWC6199: Generated servlet error: string:///index_jsp.java:16: cannot find symbol symbol : class JspFactory location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:20: package org.glassfish.jsp.api does not exist PWC6199: Generated servlet error: string:///index_jsp.java:26: cannot find symbol symbol : class HttpServletRequest location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:26: cannot find symbol symbol : class HttpServletResponse location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:27: cannot find symbol symbol : class ServletException location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:16: cannot find symbol symbol : variable JspFactory location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:29: cannot find symbol symbol : class PageContext location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:30: cannot find symbol symbol : class HttpSession location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:31: cannot find symbol symbol : class ServletContext location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:32: cannot find symbol symbol : class ServletConfig location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:33: cannot find symbol symbol : class JspWriter location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:34: incompatible types found : org.apache.jsp.index_jsp required: java.lang.Object PWC6199: Generated servlet error: string:///index_jsp.java:35: cannot find symbol symbol : class JspWriter location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:36: cannot find symbol symbol : class PageContext location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:49: package org.glassfish.jsp.api does not exist PWC6199: Generated servlet error: string:///index_jsp.java:237: cannot find symbol symbol : class SkipPageException location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:242: cannot find symbol symbol : class ServletException location: class org.apache.jsp.index_jsp at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:126) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:296) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:372) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:433) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:476) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1522) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:292) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:145) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:379) at com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:360) at java.lang.Thread.run(Thread.java:619) 4) server.stop() command does not actually stop the server: a) a lot of server threads are alive b) some application files are not deleted when autoDelete is on due to locks of application libraries (not relates simple application from Tomcat 6.0). However, manual undeploy of application helps here.
    via by bavik78,
  • BufferUnderlowException in NPropertyTable
    via by antoni.mylka,
  • How to reproduce: 1. glassfish-embedded-all-3.0-b65.jar and glassfish-embedded-web-3.0-b65.jar are used. 2. Use war file with sample application (e.g., sample.war from Tomcat 6.0) 3. Use following code to start server and deploy application: public class Launcher { private static final Logger logger = Logger.getLogger(Launcher.class.getName()); private void startup(File installRoot, int port, File warArchive) { try { logger.info("Prepare embedded server file system builder."); File instanceRoot = new File(new File(installRoot, "domains"), "embeddedDomain"); EmbeddedFileSystem.Builder fsBuilder = new EmbeddedFileSystem.Builder().installRoot(installRoot, true) .instanceRoot(instanceRoot) .autoDelete(true); logger.info("Prepare embedded server builder."); Server.Builder builder = new Server.Builder("SampleServer").logger(true) .verbose(true) .embeddedFileSystem(fsBuilder.build()); logger.info("Build server."); Server server = builder.build(); logger.info("Add web container to server."); server.addContainer(ContainerBuilder.Type.web); logger.info("Create port HTTP port."); server.createPort(port); logger.info("Deploying application to embedded server."); DeployCommandParameters deployCommandParameters = new DeployCommandParameters(); deployCommandParameters.name = "SampleApplication"; server.getDeployer().deploy(warArchive, deployCommandParameters); } catch (Throwable t) { logger.log(Level.SEVERE, "Unexpected exception occurred", t); } } public static void main(String[] args) { new Launcher().startup(new File(args[0]), Integer.parseInt(args[1]), new File(args[2])); } } Results are: 1. Unclear warning during server startup: WARNING: c:\testGF\domains\embeddedDomain\config\keystore.jks (The system cannot find the file specified) 01.10.2009 23:03:30 com.sun.enterprise.v3.admin.IdmService postConstruct WARNING: THIS SHOULD BE FIXED, IN EMBEDDED CASE, THERE IS NO MASTER PASSWORD SET OR KEYSTORE DOES NOT EXIST ... 2. In case of embedded-all deployment failed with following exceptions in log: Deployment expansion took 313 01.10.2009 23:00:19 org.glassfish.deployment.common.AnnotationScanner scanArchive WARNING: Failed to scan archive for annotations java.lang.IllegalArgumentException: URI scheme is not "file" at java.io.File.<init>(File.java:366) at org.glassfish.deployment.common.AnnotationScanner.scanArchive(AnnotationScanner.java:88) at com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java:148) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:173) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:146) at Launcher.startup(Launcher.java:39) at Launcher.main(Launcher.java:48) 01.10.2009 23:00:19 com.sun.common.util.logging.LoggingConfigImpl openPropFile INFO: Cannot read logging.properties file. 01.10.2009 23:00:19 com.sun.enterprise.web.WebContainer createHttpListener INFO: Created HTTP listener embedded-listener on port 8070 01.10.2009 23:00:20 com.sun.enterprise.web.WebContainer configureHttpServiceProperties WARNING: pewebcontainer.invalid_http_service_property 01.10.2009 23:00:20 com.sun.enterprise.web.WebContainer createHosts INFO: Created virtual server server 01.10.2009 23:00:22 com.sun.enterprise.web.WebContainer loadSystemDefaultWebModules INFO: Virtual server server loaded system default web module 01.10.2009 23:00:26 com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate 01.10.2009 23:00:33 com.sun.faces.config.ConfigureListener INFO: Initializing Mojarra 2.0.0 (RC b18) for context '' 01.10.2009 23:00:39 com.sun.faces.config.AnnotationScanner SEVERE: Unable to process annotations for url, jar:file:/C:/Projects/EmbeddedTest/glassfish-embedded-all-3.0-b65.jar!/META-INF/faces-config.xml. Reason: java.nio.BufferUnderflowException 01.10.2009 23:00:39 com.sun.faces.config.AnnotationScanner SEVERE: java.nio.BufferUnderflowException at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:127) at com.sun.faces.config.AnnotationScanner$ConstantPoolInfo.containsAnnotation(AnnotationScanner.java:811) at com.sun.faces.config.AnnotationScanner$ClassFile.containsAnnotation(AnnotationScanner.java:734) at com.sun.faces.config.AnnotationScanner.processJarEntries(AnnotationScanner.java:369) at com.sun.faces.config.AnnotationScanner.processClasspath(AnnotationScanner.java:292) at com.sun.faces.config.AnnotationScanner.getAnnotatedClasses(AnnotationScanner.java:215) at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:765) at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:736) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) NAMING EXCEPTION:javax.naming.NamingException: Lookup failed for 'java:comp/BeanManager' in SerialContext [Root exception is javax.naming.NamingException: Error retrieving java:comp/BeanManager [Root exception is java.lang.IllegalStateException: Cannot resolve bean manager]] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:443) at javax.naming.InitialContext.lookup(InitialContext.java:392) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.glassfish.webbeans.jsf.WebBeansApplication.getBeanManager(WebBeansApplication.java:301) at org.glassfish.webbeans.jsf.WebBeansApplication.<init>(WebBeansApplication.java:81) at org.glassfish.webbeans.jsf.WebBeansApplicationFactory.getApplication(WebBeansApplicationFactory.java:60) at com.sun.faces.application.InjectionApplicationFactory.getApplication(InjectionApplicationFactory.java:86) at com.sun.faces.config.processor.AbstractConfigProcessor.getApplication(AbstractConfigProcessor.java:129) at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:251) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:113) at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:115) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:113) at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:335) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:219) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4680) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5305) at com.sun.enterprise.web.WebModule.start(WebModule.java:483) at org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:1523) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardHost.start(StandardHost.java:975) at org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:1523) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:529) at org.apache.catalina.startup.Embedded.start(Embedded.java:946) at com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:578) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174) at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:89) at java.security.AccessController.doPrivileged(Native Method) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58) at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60) at org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:78) at com.sun.enterprise.v3.server.ApplicationLifecycle.startContainers(ApplicationLifecycle.java:684) at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:429) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:232) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:186) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:146) at Launcher.startup(Launcher.java:39) at Launcher.main(Launcher.java:48) Caused by: javax.naming.NamingException: Error retrieving java:comp/BeanManager [Root exception is java.lang.IllegalStateException: Cannot resolve bean manager] at org.glassfish.webbeans.BeanManagerNamingProxy.handle(BeanManagerNamingProxy.java:130) at com.sun.enterprise.naming.impl.NamedNamingObjectManager.tryNamedProxies(NamedNamingObjectManager.java:84) at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:153) at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:429) ... 41 more Caused by: java.lang.IllegalStateException: Cannot resolve bean manager at org.glassfish.webbeans.BeanManagerNamingProxy.handle(BeanManagerNamingProxy.java:120) ... 44 more 01.10.2009 23:00:42 com.sun.enterprise.security.SecurityLifecycle <init> INFO: security.secmgroff 01.10.2009 23:00:43 com.sun.enterprise.security.SecurityLifecycle onInitialization INFO: Security startup service called 01.10.2009 23:00:43 com.sun.enterprise.security.PolicyLoader loadPolicy INFO: policy.loading 01.10.2009 23:00:43 com.sun.enterprise.security.SecurityLifecycle onInitialization INFO: Security service(s) started successfully.... 01.10.2009 23:00:45 com.sun.enterprise.deployment.node.SaxParserHandler error SEVERE: enterprise.deployment.backend.invalidDescriptorFailure 01.10.2009 23:00:45 com.sun.enterprise.deployment.io.DeploymentDescriptorFile read SEVERE: enterprise.deployment.backend.saxParserError 01.10.2009 23:00:45 org.glassfish.api.ActionReport failure SEVERE: Exception while deploying the app java.io.IOException: org.xml.sax.SAXParseException: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://java.sun.com/xml/ns/j2ee,descriptionGroup'. at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:116) at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:35) at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:580) at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:522) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:232) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:186) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:146) at Launcher.startup(Launcher.java:39) at Launcher.main(Launcher.java:48) Caused by: org.xml.sax.SAXParseException: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://java.sun.com/xml/ns/j2ee,descriptionGroup'. at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:304) at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:225) at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:563) at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:316) at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:215) at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:208) at com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:144) at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:112) ... 8 more 3. In case of embedded-web the application is deployed successfully, but 1) 1) Log contains several exceptions: Deployment expansion took 344 01.10.2009 23:04:49 org.glassfish.deployment.common.AnnotationScanner scanArchive WARNING: Failed to scan archive for annotations java.lang.IllegalArgumentException: URI scheme is not "file" at java.io.File.<init>(File.java:366) at org.glassfish.deployment.common.AnnotationScanner.scanArchive(AnnotationScanner.java:88) at com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java:148) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:173) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:146) at Launcher.startup(Launcher.java:39) at Launcher.main(Launcher.java:48) 01.10.2009 23:04:49 com.sun.common.util.logging.LoggingConfigImpl openPropFile INFO: Cannot read logging.properties file. 01.10.2009 23:04:50 com.sun.enterprise.web.WebContainer createHttpListener INFO: Created HTTP listener embedded-listener on port 8070 01.10.2009 23:04:50 com.sun.enterprise.web.WebContainer configureHttpServiceProperties WARNING: pewebcontainer.invalid_http_service_property 01.10.2009 23:04:50 com.sun.enterprise.web.WebContainer createHosts INFO: Created virtual server server 01.10.2009 23:04:52 com.sun.enterprise.web.WebContainer loadSystemDefaultWebModules INFO: Virtual server server loaded system default web module 01.10.2009 23:04:56 com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate 01.10.2009 23:05:03 com.sun.faces.config.ConfigureListener INFO: Initializing Mojarra 2.0.0 (RC b18) for context '' NAMING EXCEPTION:javax.naming.NamingException: Lookup failed for 'java:comp/BeanManager' in SerialContext [Root exception is javax.naming.NamingException: Error retrieving java:comp/BeanManager [Root exception is java.lang.IllegalStateException: Cannot resolve bean manager]] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:443) at javax.naming.InitialContext.lookup(InitialContext.java:392) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.glassfish.webbeans.jsf.WebBeansApplication.getBeanManager(WebBeansApplication.java:301) at org.glassfish.webbeans.jsf.WebBeansApplication.<init>(WebBeansApplication.java:81) at org.glassfish.webbeans.jsf.WebBeansApplicationFactory.getApplication(WebBeansApplicationFactory.java:60) at com.sun.faces.application.InjectionApplicationFactory.getApplication(InjectionApplicationFactory.java:86) at com.sun.faces.config.processor.AbstractConfigProcessor.getApplication(AbstractConfigProcessor.java:129) at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:251) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:113) at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:115) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:113) at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:335) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:219) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4680) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5305) at com.sun.enterprise.web.WebModule.start(WebModule.java:483) at org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:1523) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardHost.start(StandardHost.java:975) at org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:1523) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:529) at org.apache.catalina.startup.Embedded.start(Embedded.java:946) at com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:578) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174) at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:89) at java.security.AccessController.doPrivileged(Native Method) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58) at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60) at org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:78) at com.sun.enterprise.v3.server.ApplicationLifecycle.startContainers(ApplicationLifecycle.java:684) at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:429) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:232) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:186) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:146) at Launcher.startup(Launcher.java:39) at Launcher.main(Launcher.java:48) Caused by: javax.naming.NamingException: Error retrieving java:comp/BeanManager [Root exception is java.lang.IllegalStateException: Cannot resolve bean manager] at org.glassfish.webbeans.BeanManagerNamingProxy.handle(BeanManagerNamingProxy.java:130) at com.sun.enterprise.naming.impl.NamedNamingObjectManager.tryNamedProxies(NamedNamingObjectManager.java:84) at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:153) at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:429) ... 41 more Caused by: java.lang.IllegalStateException: Cannot resolve bean manager at org.glassfish.webbeans.BeanManagerNamingProxy.handle(BeanManagerNamingProxy.java:120) ... 44 more 2) Deplyment time is dramatically decreased in comparison with Prelude version (almost one minute instead of ~5 secs for prelude). 3) Opening a JSP page causes following errors: WARNING: StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP PWC6199: Generated servlet error: string:///index_jsp.java:3: package javax.servlet does not exist PWC6199: Generated servlet error: string:///index_jsp.java:4: package javax.servlet.http does not exist PWC6199: Generated servlet error: string:///index_jsp.java:5: package javax.servlet.jsp does not exist PWC6199: Generated servlet error: string:///index_jsp.java:13: package org.apache.jasper.runtime does not exist PWC6199: Generated servlet error: string:///index_jsp.java:14: package org.apache.jasper.runtime does not exist PWC6199: Generated servlet error: string:///index_jsp.java:16: cannot find symbol symbol : class JspFactory location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:20: package org.glassfish.jsp.api does not exist PWC6199: Generated servlet error: string:///index_jsp.java:26: cannot find symbol symbol : class HttpServletRequest location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:26: cannot find symbol symbol : class HttpServletResponse location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:27: cannot find symbol symbol : class ServletException location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:16: cannot find symbol symbol : variable JspFactory location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:29: cannot find symbol symbol : class PageContext location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:30: cannot find symbol symbol : class HttpSession location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:31: cannot find symbol symbol : class ServletContext location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:32: cannot find symbol symbol : class ServletConfig location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:33: cannot find symbol symbol : class JspWriter location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:34: incompatible types found : org.apache.jsp.index_jsp required: java.lang.Object PWC6199: Generated servlet error: string:///index_jsp.java:35: cannot find symbol symbol : class JspWriter location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:36: cannot find symbol symbol : class PageContext location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:49: package org.glassfish.jsp.api does not exist PWC6199: Generated servlet error: string:///index_jsp.java:237: cannot find symbol symbol : class SkipPageException location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: string:///index_jsp.java:242: cannot find symbol symbol : class ServletException location: class org.apache.jsp.index_jsp at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:126) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:296) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:372) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:433) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:476) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1522) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:292) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:145) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:379) at com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:360) at java.lang.Thread.run(Thread.java:619) 4) server.stop() command does not actually stop the server: a) a lot of server threads are alive b) some application files are not deleted when autoDelete is on due to locks of application libraries (not relates simple application from Tomcat 6.0). However, manual undeploy of application helps here.
    via by bavik78,
  • How do I use a CharsetEncoder...
    via by 843798,
    • java.nio.BufferUnderflowException at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:127) at com.sun.faces.config.AnnotationScanner$ConstantPoolInfo.containsAnnotation(AnnotationScanner.java:808) at com.sun.faces.config.AnnotationScanner$ClassFile.containsAnnotation(AnnotationScanner.java:751) at com.sun.faces.config.AnnotationScanner.containsAnnotation(AnnotationScanner.java:533) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:502) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:472) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:494) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:472) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:494) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:472) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:494) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:472) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:494) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:472) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:494) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:472) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:494) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:472) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:494) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:472) at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:451) at com.sun.faces.config.AnnotationScanner.getAnnotatedClasses(AnnotationScanner.java:218) at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:727) at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:700) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,