users@glassfish.java.net

glassfish deploy from eclipse exception

From: <forums_at_java.net>
Date: Sat, 13 Nov 2010 17:55:17 -0800

Hi, I've created simple Enterprise Application project within eclipse.
Now, I am trying to deploy to GlassFish v3, again through eclipse. (GlassFish
server added to eclipse).
However, although there is no build or any other errors,
deployment fails with not very helpful error mesage
cannot Deploy simpleentapp
Deployment Error for module: simpleentapp: Exception while deploying the app
: java.lang.StringIndexOutOfBoundsException: String index out of range:
-1%%%EOL%%%
Stack trace from log is:
org.eclipse.core.runtime.CoreException: Deployment Error for module:
hellojavaee: Exception while deploying the app :
java.lang.StringIndexOutOfBoundsException: String index out of range:
-1%%%EOL%%%
at
com.sun.enterprise.jst.server.sunappsrv.SunAppServerBehaviour.publishDeployedDirectory(SunAppServerBehaviour.java:762)
at
com.sun.enterprise.jst.server.sunappsrv.SunAppServerBehaviour.publishModuleForGlassFishV3(SunAppServerBehaviour.java:598)
at
com.sun.enterprise.jst.server.sunappsrv.SunAppServerBehaviour.publishModule(SunAppServerBehaviour.java:288)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1025)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1115)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:948)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775)
at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2889)
at
org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Maybe somebody faced with such problem before (specially interesting is
part: String index out of range: -1%%%EOL%%%)
Any help/info/advice/suggestion is appreciated.
I'd added more details but there is not much more of them (if it will be of
any help I can send whole eclipse project to anyone interested).
Thanks in advance.


--
[Message sent by forum member 'rssole']
View Post: http://forums.java.net/node/717666