• 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: EOF and Tomcat Issue - SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOF and Tomcat Issue - SOLVED


  • Subject: Re: EOF and Tomcat Issue - SOLVED
  • From: John Martyniak <email@hidden>
  • Date: Tue, 24 Feb 2004 09:47:13 -0500

Pierre,

Thank you for nudging something in my brain because I was kind of thinking
along the same lines.  In that everything seems to compile correctly yet,
when it comes time to find a class it can't.

In my classpath that I set for Tomcat I point that at the frameworks, but I
include the JARs in my WEB-INF/libs.  Which works and the application
displays data.  Which is awesome.

I still get the 'javax.naming.NameNotFoundException: Name jdbc is not bound
in this Context' which doesn't seem to effect anything, but I would like to
figure this one out.  I think that the next step is going to be to include
the frameworks directories in the lib and see if that helps anything.

Thanks again for the help.

-John

On 2/24/04 3:26 AM, "email@hidden" <email@hidden> wrote:

> Hi!
>
> I have never even come close to Tomcat. Thus I can't really help you out here.
>
> Yet there is a thought that crossed my mind: are your classes loaded by the
> same class loader than the EOF classes? If they are not, you might run into
> trouble. E.g. if EOF classes were loaded by a classloader higher up the
> hierarchy they may not instantiate your EO classes.
>
> Pierre.
>
> -----Original Message-----
> From: John Martyniak [mailto:email@hidden]
> Sent: Monday, February 23, 2004 10:09 PM
> To: WebObjects
> Subject: EOF and Tomcat Issue.
>
>
> I am developing a pure EOF application, which I have running on tomcat 4.0.6
> if I completely specify all of the jars, frameworks, etc in the Classpath
> with (setclasspath.sh).
>
> However I would like to to upgrade to tomcat 4.1.2x, and so far with no
> luck.  I tried the same tactic by including everything in the Classpath in
> the same way that I did with 4.0.6 and didn't work the same way.
>
> I am able load my models, and perform fetches, however the result of the
> fetches returns only EOGenerics and not my custom classes with all of the
> business logic.
>
> My first thought was that for some reason EOF was unable to bind to the
> classes but they are in my WEB-INF/classes directory, and they are obviously
> found at come level because I don't get an error when I use them.  The error
> I get is a ClassCast Exception when trying to convert from EOGeneric to User
> (my class).
>
> Does anybody have any ideas??  Has anybody come across this problem before?
> I have really been kind of tearing my hair out over this.
>
> Any help would be greatly appreciated.
>
> Thanks in advance,
>
> -John
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
>
>
> **********************************************************************
> 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
> **********************************************************************
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re[2]: Inheritance problem in EOModeler
  • Next by Date: Re: webobjects-dev digest, Vol 1 #804 - 11 msgs
  • Previous by thread: localized strings do not show up when deployed on UNIX...
  • Next by thread: Re: webobjects-dev digest, Vol 1 #804 - 11 msgs
  • Index(es):
    • Date
    • Thread