users@glassfish.java.net

RE: Failed deploy - NoClassDefFoundError: com/sun/enterprise/server/PELaunch

From: Romanowski, Tim <tim.romanowski_at_lmco.com>
Date: Fri, 16 Mar 2007 16:55:02 -0400

Thanks for the tip; you were right, it was the semi-colon the caused an
issue. This seems to be a bug, since it was autogenerated--either put in
there by NetBeans on deployment, or by Glassfish. By manually replacing the
semi-colon with a colon and launching the app from the Glassfish Admin GUI,
my app started fine.

The Oracle reference you saw was put in by me; I added that as a
ClassPathSuffix via the Glassfish Administration GUI.

Tim

-----Original Message-----
From: Kedar.Mhaswade_at_Sun.COM [mailto:Kedar.Mhaswade_at_Sun.COM]
Sent: Friday, March 16, 2007 3:17 PM
To: users_at_glassfish.dev.java.net
Subject: Re: Failed deploy - NoClassDefFoundError:
com/sun/enterprise/server/PELaunch

Tim,
Something doesn't look right in the minimal server.log
you attached. And the problem might be that there is a
culprit character ';' at the end of the -cp argument
of java command line.

Can you check your domain.xml for any occurrences of this
character? It works on Windows for obvious reasons.

The PELaunch class is in appserv-launch.jar and the ';' character
obfuscates the path.

Also, -Dcom.sun.aas.ClassPathSuffix=oracle.jdbc.pool.OracleDataSource;

does not look right ...

Hope that helps.

Kedar

(Isn't MS Windows a pain?)


Romanowski, Tim wrote:
>
> Server: Glassfish V2 Build 39 on Solaris SPARC
>
> Problem: I get the error (below) when I try to deploy my webapp via
> NetBeans 5.5.1 Beta (not sure how to do so from the command line).
> After the failed deploy, any further attempts to start the domain
> results in the error below as well.
>
>
>
> After installing glassfish, I am able to successfully start the server
> via both netbeans and from the command line (asadmin start-domain
> domain1). When I tried to deploy my app via NetBeans, after the
> server was started, I get an exception. This same error happened to
> me on V2 Build 37. On Windows, I am not getting any error, for the
> same web app. Is something getting corrupted that I can easily fix?
> Last portion of my server log is this:
>
>
>
> -Dcom.sun.aas.classloader.appserverChainJars.ee=
>
> -Dcom.sun.aas.configRoot=/server/glassfish/config
>
>
-Djava.library.path=/server/glassfish/lib:/server/glassfish/lib:/server/glas
sfish/lib
>
> -Dcom.sun.aas.instanceName=server
>
> -Dcom.sun.aas.processLauncher=SE
>
> -Dcom.sun.aas.installRoot=/server/glassfish
>
> -Dcom.sun.aas.ClassPathPrefix=
>
> -Dcom.sun.aas.ClassPathSuffix=oracle.jdbc.pool.OracleDataSource;
>
> -Dcom.sun.aas.ServerClassPath=
>
> -Dcom.sun.aas.promptForIdentity=true
>
> -cp
>
> :/server/glassfish/lib/appserv-launch.jar;
>
> com.sun.enterprise.server.PELaunch
>
> start
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/sun/enterprise/server/PELaunch
>
>
>
>
>
> There used to be problems deploying via NetBeans on V2 prior to NB
> 5.5.1; is this the same type of error, or is something else going on
> that I can troubleshoot?
>
>
>
> Tim
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net