hi,
seeing this error trying to build maven project using 3.1-SNAPSHOT
version of maven-embedded-glassfish-plugin:
"IncompatibleClassChangeError: Expected static method
GrizzlyEmbeddedHttp.setWebAppRootPath(Ljava/lang/String;)V"
here is shell output:
C:\a\embedded\jersey\samples\helloworld-webapp>mvn clean package
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Helloworld WebApp - Jersey Sample
[INFO] task-segment: [clean, package]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory
C:\a\embedded\jersey\samples\helloworld-webapp\target
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources,
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 2 source files to
C:\a\embedded\jersey\samples\helloworld-webapp\target\classes
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
C:\a\embedded\jersey\samples\helloworld-webapp\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 1 source file to
C:\a\embedded\jersey\samples\helloworld-webapp\target\test-classes
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory:
C:\a\embedded\jersey\samples\helloworld-webapp\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.sun.jersey.samples.helloworld.HelloWorldWebAppTest
Dec 27, 2010 8:48:52 PM
com.sun.jersey.test.framework.spi.container.embedded.glassfish.EmbeddedGlassFishTestContainerFactory$EmbeddedGlassFishTestContainer
<init>
INFO: Creating EmbeddedGlassFish test container configured at the base
URI
http://localhost:9998/helloworld-webapp
Dec 27, 2010 8:48:52 PM org.glassfish.embed.util.LoggerHelper info
INFO: Class Modifiers Field Value
EmbeddedInfo (package) name EmbeddedGFServer
EmbeddedInfo (package) httpPort 9998
EmbeddedInfo (package) adminHttpPort -1
EmbeddedInfo (package) jmxConnectorPort -1
EmbeddedInfo (package) efs Class
ModifiersField Value
EmbeddedFileSystem private installRoot
C:\a\embedded\jersey\samples\helloworld-webapp\embedded_2343_glassfish
EmbeddedFileSystem private instanceRoot
C:\a\embedded\jersey\samples\helloworld-webapp\embedded_2343_glassfish\domains\domain1
EmbeddedFileSystem private domainXmlTarget
C:\a\embedded\jersey\samples\helloworld-webapp\embedded_2343_glassfish\domains\domain1\config\domain.xml
EmbeddedFileSystem private appsDir
C:\a\embedded\jersey\samples\helloworld-webapp\embedded_2343_glassfish\domains\domain1\applications
EmbeddedFileSystem private docRootDir
C:\a\embedded\jersey\samples\helloworld-webapp\embedded_2343_glassfish\domains\domain1\docroot
EmbeddedFileSystem private generatedDir
C:\a\embedded\jersey\samples\helloworld-webapp\embedded_2343_glassfish\domains\domain1\generated
EmbeddedFileSystem private modulesDir
C:\a\embedded\jersey\samples\helloworld-webapp\embedded_2343_glassfish\modules
EmbeddedFileSystem private logFile
C:\a\embedded\jersey\samples\helloworld-webapp\embedded_2343_glassfish\domains\domain1\logs\server.log
EmbeddedFileSystem private domainXmlSource
jar:file:/C:/Documents%20and%20Settings/jbenoit/.m2/repository/org/glassfish/embedded/glassfish-embedded-all/3.0-Prelude-Embedded-b14/glassfish-embedded-all-3.0-Prelude-Embedded-b14.jar!/org/glassfish/embed/domain.xml
EmbeddedFileSystem private defaultWebXml <null>
EmbeddedFileSystem private initialized true
EmbeddedFileSystem private autoDelete true
EmbeddedFileSystem private autoDeleteWasExplicitlySet false
EmbeddedInfo (package) httpListenerName http-listener-1
EmbeddedInfo (package) adminHttpListenerName admin-listener
EmbeddedInfo (package) adminVSName __asadmin
EmbeddedInfo (package) logging false
EmbeddedInfo (package) verbose false
EmbeddedInfo (package) autoDeploy false
Dec 27, 2010 8:48:52 PM org.glassfish.embed.util.LoggerHelper info
INFO: could not load JavaDB driver
Dec 27, 2010 8:48:52 PM
com.sun.jersey.test.framework.spi.container.embedded.glassfish.EmbeddedGlassFishTestContainerFactory$EmbeddedGlassFishTestContainer
start
INFO: Starting the EmbeddedGlassFish instance...
Dec 27, 2010 8:48:52 PM com.sun.enterprise.module.impl.HK2Factory initialize
WARNING: Singleton already initialized as
com.sun.enterprise.module.impl.HK2Factory_at_156b6b9
Dec 27, 2010 8:48:52 PM CommonClassLoaderManager Skipping creation of
CommonClassLoader as there are no libraries available
INFO: urls = []
Dec 27, 2010 8:48:52 PM AppServerStartup run
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
Exception in thread "GlassFish Kernel Main Thread"
java.lang.IncompatibleClassChangeError: Expected static method
com.sun.enterprise.v3.services.impl.GrizzlyEmbeddedHttp.setWebAppRootPath(Ljava/lang/String;)V
at
com.sun.enterprise.v3.services.impl.GrizzlyListenerConfigurator.configure(GrizzlyListenerConfigurator.java:100)
at
com.sun.enterprise.v3.services.impl.GrizzlyProxy.configureGrizzly(GrizzlyProxy.java:139)
at
com.sun.enterprise.v3.services.impl.GrizzlyProxy.<init>(GrizzlyProxy.java:128)
at
com.sun.enterprise.v3.services.impl.GrizzlyService.createNetworkProxy
(GrizzlyService.java:264)
at
com.sun.enterprise.v3.services.impl.GrizzlyService.postConstruct(Griz
zlyService.java:206)
at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:1
50)
at
com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87)
at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
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
com.sun.enterprise.v3.server.ApplicationLoaderInjector.postConstruct(
ApplicationLoaderInjector.java:52)
at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150)
at
com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87)
at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
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
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:203)
at
com.sun.enterprise.v3.server.AppServerStartup$1.run(AppServerStartup.java:116)