users@glassfish.java.net

Re: Embedded GlassFish with maven, glassfish:run, and JSPs and JSTL

From: <glassfish_at_javadesktop.org>
Date: Tue, 03 Feb 2009 10:17:55 PST

Hello,


Maybe someone is running into this same problem.

It seems that currentlty the ScatteredWar implementation is not working with mvn glassfish:run.

Are there any known work arounds?
Thanks!

I get the following notsupportedxception:



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) createOnly false
EmbeddedInfo (package) autoDeploy false

Feb 3, 2009 4:16:19 PM CommonClassLoaderManager Skipping creation of CommonClassLoader as there are no libraries available
INFO: urls = []
no resource bundle found for version, using default GlassFish version
Feb 3, 2009 4:16:19 PM AppServerStartup run
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
Feb 3, 2009 4:16:20 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start
INFO: Listening on port 8080
Feb 3, 2009 4:16:20 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start
INFO: Listening on port 4848
Feb 3, 2009 4:16:20 PM org.glassfish.admin.mbeanserver.ConnectorStartupService$ConnectorsStarterThread startConnector
INFO: Started JMXConnector, JMXService URL = service:jmx:rmi:///jndi/rmi://pedro-desktop:8686/jmxrmi
Feb 3, 2009 4:16:21 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: GlassFish v3 Prelude startup time : Embedded(392ms) startup services(972ms) total(1364ms)
Feb 3, 2009 4:16:21 PM com.sun.enterprise.web.WebContainer createHttpListener
INFO: Created HTTP listener http-listener-1 on port 8080
Feb 3, 2009 4:16:21 PM com.sun.enterprise.web.WebContainer createHttpListener
INFO: Created HTTP listener admin-listener on port 4848
Feb 3, 2009 4:16:21 PM com.sun.enterprise.web.WebContainer createHosts
INFO: Created virtual server server
Feb 3, 2009 4:16:21 PM com.sun.enterprise.web.WebContainer createHosts
INFO: Created virtual server __asadmin
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] java.lang.UnsupportedOperationException: Not supported yet.

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: java.lang.UnsupportedOperationException: Not supported yet.
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: java.lang.UnsupportedOperationException: Not supported yet.
        at org.glassfish.maven.RunMojo.execute(RunMojo.java:142)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        ... 16 more
Caused by: org.glassfish.embed.EmbeddedException: java.lang.UnsupportedOperationException: Not supported yet.
        at org.glassfish.embed.Server.deploy(Server.java:743)
        at org.glassfish.embed.Server.deploy(Server.java:697)
        at org.glassfish.maven.RunMojo.execute(RunMojo.java:131)
        ... 18 more
Caused by: java.lang.UnsupportedOperationException: Not supported yet.
        at org.glassfish.embed.ScatteredWar.entries(ScatteredWar.java:141)
        at org.glassfish.persistence.jpa.JPASniffer.handles(JPASniffer.java:82)
        at com.sun.enterprise.v3.server.SnifferManager.getSniffers(SnifferManager.java:127)
        at org.glassfish.embed.Server.deploy(Server.java:723)
[Message sent by forum member 'pedroteixeira' (pedroteixeira)]

http://forums.java.net/jive/thread.jspa?messageID=329904