• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WO not able to find itself?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO not able to find itself?


  • Subject: Re: WO not able to find itself?
  • From: email@hidden
  • Date: Mon, 10 Oct 2005 08:25:57 +0200


Hi!

Why are you trying to launch the application by hand? You should rather use the launch script which takes care of setting the correct classpath.

cd C:\DisneyTravel\dist\TravelDWIBC.woa
TravelDWIBC.cmd

(Actually, WebObjects uses a custom class loader to handle the classpath. The launch script sets the classpath to point to the JAR file containing this class loader.)

Pierre

webobjects-dev-bounces+pierre.bernard=email@hidden wrote on 10/09/2005 08:06:05 PM:

> Hi All,
>
> I seem to be having some sort of classpath problem
> starting my application.  Running the following:
>
> C:\DisneyTravel\dist\TravelDWIBC.woa>java  
> -DWORootDirectory="C:\Apple"
> -DWOLocalRootDirectory="C:\Apple\Local\Library"
> -DWOUserDirectory=
> "C:\DisneyTravel\dist\TravelDWIBC.woa" -classpath
> "C:\DisneyTravel\dist\TravelDW
> IBC.woa\Contents\Resources\Java\traveldwibc.jar"
> woapps.wdwibc.Application
>
> Gives me the error:
>
> Exception in thread "main"
> java.lang.NoClassDefFoundError: com/webobjects/appser
> ver/WOApplication
>         at java.lang.ClassLoader.defineClass0(Native
> Method)
>         at java.lang.ClassLoader.defineClass(Unknown
> Source)
>         at
> java.security.SecureClassLoader.defineClass(Unknown
> Source)
>         at java.net.URLClassLoader.defineClass(Unknown
> Source)
>         at java.net.URLClassLoader.access$100(Unknown
> Source)
>         at java.net.URLClassLoader$1.run(Unknown
> Source)
>         at
> java.security.AccessController.doPrivileged(Native
> Method)
>         at java.net.URLClassLoader.findClass(Unknown
> Source)
>         at java.lang.ClassLoader.loadClass(Unknown
> Source)
>         at
> sun.misc.Launcher$AppClassLoader.loadClass(Unknown
> Source)
>         at java.lang.ClassLoader.loadClass(Unknown
> Source)
>         at
> java.lang.ClassLoader.loadClassInternal(Unknown
> Source)
>
> What am I missing?  Using WO5.2.3, J2RE1.4.2, on
> WinXP.
>
> Thanks,
>
> Ismael Jones
> email@hidden
>
>
>
>      
> ______________________________________________
> Renovamos el Correo Yahoo!
> Nuevos servicios, más seguridad
> http://correo.yahoo.es
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>


**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >WO not able to find itself? (From: Ismael Perdido <email@hidden>)

  • Prev by Date: Re: Redirect from within Session
  • Next by Date: NSTimestamp
  • Previous by thread: WO not able to find itself?
  • Next by thread: Re: WO not able to find itself?
  • Index(es):
    • Date
    • Thread