Hi All,
I'm writing an application that uses glassfish-embedded-web-3.0.jar to deploy a WAR file. Everything was working perfectly when I was deploying from disk using the "file:" codebase:
[code]
<!-- for dev test deployment -->
<jnlp
spec="1.5+"
codebase="file:/Users/kss/projects/pub-array-dev/libraries/blitzkrieg/web-dist/app/"
href="blitzkrieg.jnlp"
version="1.0.0">
<!-- for internal test deployment -->
<!--<jnlp
spec="1.5+"
codebase="
http://zapp.jax.org/blitzkrieg/1.0.0-build1/app"
href="blitzkrieg.jnlp">-->
[/code]
... so I thought I was done, but when I copied the Web Start app to an internal server and I switched to using the "http:" codebase I got the following exception:
[code]
Exception in thread "Thread-14" java.util.ServiceConfigurationError:
com.sun.enterprise.module.bootstrap.PlatformMain:
Provider com.sun.enterprise.glassfish.bootstrap.ASEmbedded could not be instantiated:
java.lang.IllegalArgumentException: URI scheme is not "file"
at java.util.ServiceLoader.fail(ServiceLoader.java:207)
at java.util.ServiceLoader.access$100(ServiceLoader.java:164)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:353)
at java.util.ServiceLoader$1.next(ServiceLoader.java:421)
at org.glassfish.api.embedded.Server.getMain(Server.java:644)
at org.glassfish.api.embedded.Server.<init>(Server.java:263)
at org.glassfish.api.embedded.Server.<init>(Server.java:61)
at org.glassfish.api.embedded.Server$Builder.build(Server.java:158)
at org.glassfish.api.embedded.Server$Builder.build(Server.java:140)
at org.jax.blitzkrieg.EmbeddedGlassfishLauncher.start(EmbeddedGlassfishLauncher.java:75)
at org.jax.blitzkrieg.BlitzkriegFrame$8.run(BlitzkriegFrame.java:435)
Caused by: java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.<init>(File.java:366)
at com.sun.enterprise.module.bootstrap.Which.jarFile(Which.java:27)
at com.sun.enterprise.glassfish.bootstrap.AbstractMain.findBootstrapFile(AbstractMain.java:118)
at com.sun.enterprise.glassfish.bootstrap.AbstractMain.<init>(AbstractMain.java:69)
at com.sun.enterprise.glassfish.bootstrap.ASMainNonOSGi.<init>(ASMainNonOSGi.java:59)
at com.sun.enterprise.glassfish.bootstrap.ASEmbedded.<init>(ASEmbedded.java:63)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:345)
... 8 more
[/code]
Could anyone provide hints on how to proceed or what is going wrong here?
Thanks
-Keith
[Message sent by forum member 'keithshep' (keithshep_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=384618