users@glassfish.java.net

usage of embedded glassfish 3.1.1 for gwt devmode execution

From: luc peuvrier at home <lc.pvrr_at_orange.fr>
Date: Sat, 10 Dec 2011 08:29:42 +0100

Hi,

I have the below error:

  java.lang.NoSuchMethodError: org.apache.jasper.xmlparser.ParserUtils.setSchemaResourcePrefix(Ljava/lang/String;)V
  at com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:408)
  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 org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:93)
  at com.sun.enterprise.v3.server.ApplicationLifecycle.startContainers(ApplicationLifecycle.java:957)
  at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:667)
  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
  at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:193)
  at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:142)
  at com.totsp.gwt.glassfish.Glassfish.start(Glassfish.java:91)
  at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
  at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
  at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
  at com.google.gwt.dev.DevMode.main(DevMode.java:311)
I started from http://code.google.com/p/gwt-glassfish/ and made some modification to use with glassfish 3.1.1.
I have the same error using glassfish 3.2-b06

Please find attached the two eclipse projects and launch configuration to be able to reproduce.
The used eclipse has GWT plugin installed.

Best regards
Luc Peuvrier