MArtin,
Thanks again for your help.
It turns out that the only class it puts into the
C:\work\example\examples\build-examples\interest\WEB-INF\classes\org\jboss\docs\interest
directory is the Interest.class not the
InterestHome.class ....
I am going to try and deploy the servlet the way you
mentioned.
-Amos
--- Martin Welch <[EMAIL PROTECTED]> wrote:
> Sorry for the delay in my reply -- real work got in
> the way again!
>
> Just double check that you've also got
> Interest.class and InterestHome.class
> in your
>
C:\work\example\examples\build-examples\interest\WEB-INF\classes\org\jboss\d
> ocs\interest directory.
>
> This is why I got the same error as you.
>
> HTH,
>
> Martin
>
> -----Original Message-----
> From: A.L. [mailto:[EMAIL PROTECTED]]
> Sent: 01 August 2001 16:13
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] JBOSS INTEREST EXAMPLE
>
>
> The immediate naswer to you question is:
> The interestservlet.class file was created in:
>
C:\work\example\examples\build-examples\interest\WEB-INF\classes\org\jboss\d
> ocs\interest
>
> Here is some more background info...
>
> When I downloaded the files for the interest example
> I
> put them all into the following directory:
>
> C:\work\example\examples\org\jboss\docs\interest
>
> After running the ant compile command from the
> directory
> C:\work\example\examples\build
>
> A new Directory was created with the follwoing
> structure
> C:\work\example\examples\build-examples
>
> The interestservlet.class file was created in:
>
C:\work\example\examples\build-examples\interest\WEB-INF\classes\org\jboss\d
> ocs\interest
>
> Nevertheless, After running all the ant commands
> defined in the build.xml file, interest.JAR,
> interest.WAR, and interest.EAR all were placed in
> the
> JBoss deploy file. I assume they all have the
> compressed the same directory structure I have
> described above.
>
> I hope that this is correct, if not I'm an idiot for
> having messed this up.
>
>
> Thanks again Martin
>
> --- Martin Welch <[EMAIL PROTECTED]> wrote:
> > Where is your InterestServlet.class file?
> >
> > -----Original Message-----
> > From: A.L. [mailto:[EMAIL PROTECTED]]
> > Sent: 31 July 2001 17:20
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] JBOSS INTEREST EXAMPLE
> >
> >
> > I have finally tried to restart the whole process
> to
> > get the Interest Servlet to work. now I am getting
> > the
> > following error when I try to calculate:
> > Error: 500
> > Location: /interest/InterestServlet
> > Internal Servlet Error:
> >
> > java.lang.NoClassDefFoundError:
> > org/jboss/docs/interest/Interest
> > at java.lang.Class.newInstance0(Native Method)
> > at java.lang.Class.newInstance(Unknown Source)
> > .
> > .
> > .
> >
> > I have a couple of questions. The interestClient
> > class is running fine, and has the following line:
> > Object ref =
> > jndiContext.lookup("interest/Interest");
> >
> > I have put the same line in the InterestServlet
> > Class.
> > Yet i am still getting an errors. Any ideas why?
> >
> > Also when I try to deploy the servlet Class with
> the
> > line Object ref =
> > jndiContext.lookup("java:comp/env/ejb/Interest");
> > it also doesn't work.
> >
> > I meanwhile have jboss.xml, jboss-web.xml, and
> > web.xml
> > . These all seem to be configured properly. I
> > would
> > assume they would be anyways since I downloaded
> them
> > from the Jboss web site.
> >
> >
> > Finally. Which file must go into the
> Jboss/deploy/
> > directory for the servlet to run. Interest.EAR,
> > Interest.WAR, or Interest.JAR. Do all of them go
> > into
> > the deploy directory?
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute
> > with Yahoo! Messenger
> > http://phonecard.yahoo.com/
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> >
>
http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/jboss-user
>
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user