• 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: Class 'Session' exists but is not a subclass of WOSession?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class 'Session' exists but is not a subclass of WOSession?


  • Subject: Re: Class 'Session' exists but is not a subclass of WOSession?
  • From: David Avendasora <email@hidden>
  • Date: Tue, 6 May 2008 08:05:34 -0400

Hi Herve,

Try to keep the comments on the list, who knows how many others can benefit from your question! :-)

Do you have a Java Client application? The solution I found is specific to a Java Client application where you are basically creating a split-install with some classes needing to be available to be copied down to the client application via Java WebStart. If you have a standard Web application, you can get the same error, it is just a different problem.

If you really do have a Java Client application, then the question is: "How are you splitting-out the client-side classes?"

I'm assuming you are using Eclipse/WOLips for your application development. The "usual" way to split out the client-side classes is with an Ant task that copies anything in packages that contain "client" or "common" in the package name. For example all classes in the "com.company.myapp.client" package would get copied. See here: http://wiki.objectstyle.org/confluence/display/WO/Java+Client-Building for instructions on adding this to your build.xml file.

The problem was that I had also decided that I should exclude the client-side classes from the server-side .jar file, AND I had my Session, Application, etc in a package with "client" in it. So after the project was built, the only place these classes existed was in the client-side .jar file, which is not on the server-side class path. I simply moved the Session, Application, etc classes to a package like "com.company.myapp.server" and the Ant task no longer put them in the client-side .jar and left them in the server-side .jar.

If you are developing in Xcode, I _think_ you just need to make sure the Session, Application, etc. classes are set to the "Application Server" target and not the "Web Server" target.

I hope this helps.

Dave


On May 6, 2008, at 4:49 AM, Hervé BLANC wrote:

I have exactly the same problem but I don't how to solve this.
Can you tell me how to not put my classes in the client-side package ?

Thanks a lot.

Herve





_______________________________________________ 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
  • Prev by Date: Re: Problem on WOLips
  • Next by Date: Re: ModRewriteWOHyperlink
  • Previous by thread: in need some freelance WO help
  • Next by thread: WO NoVA
  • Index(es):
    • Date
    • Thread