I have an application which runs on my home Pc . It is a basic shopping cart
app. I have Tomcat 4.1 and j2sdk1.4.2.
When I transfered the application to Lunarpages my host , with the same
folder structure I altered all the passwords and db connectors etc but when
Itry to access the shop.jsp page I get the following error " useBean cant
find class com.bloodoo.shoppingbasket " . I transferred the .java and .class
files to Lunarpages.
Do the .java files have to be compiled to .class files in the folder they
wil be accessed ?
If this is the case how are .java files compiled in a remote server?
Any help very much appreciated .
Thanks
Jim Ascroft
> I have an application which runs on my home Pc . It is a basic shopping cart
> app. I have Tomcat 4.1 and j2sdk1.4.2.
[quoted text clipped - 13 lines]
>
> Jim Ascroft
Jim, shoppingbasket.class needs to be in WEB-INF/classes/com/bloodoo,
and any other classes will need to be similarly arranged. Alternatively,
they could be out in a jar and the jar placed in WEB-INF/lib.
BTW, you really should capitalise it to com.bloodoo.ShoppingBasket if
you want to follow convention.
Luke
Luke Webber - 24 Jun 2004 23:41 GMT
>> I have an application which runs on my home Pc . It is a basic
>> shopping cart
[quoted text clipped - 23 lines]
> BTW, you really should capitalise it to com.bloodoo.ShoppingBasket if
> you want to follow convention.
Replying to my own post here.
I should also mention that it's worth looking at *all* of the exceptions
shown in your JSP output. It's entirely possible the
com.bloodoo.shoppingbasket barfed on loading due to a dependency on a
different class. This may be due to the lack of an extension API which
you currently have loaded on your development machine, or possibly to
different JRE versions.
Luke
vivienne wykes - 24 Jun 2004 23:55 GMT
Hi Luke ,
Thanks for that.
I have put all class files in WEB-INF/classes/com/bloodoo,
I will look at Lunarpages for their JRE .
Is it ok then just to transfer my .class files compiled on my machine to
lunarpages server as they are ?
The Lunarpages server can find and show on my browser a basic hello.jsp page
Cant think of anytrhing that is missing at present but it has been a long
day..........
Cheers
Jim
> >> I have an application which runs on my home Pc . It is a basic
> >> shopping cart
[quoted text clipped - 34 lines]
>
> Luke
Luke Webber - 25 Jun 2004 00:40 GMT
> Hi Luke ,
>
[quoted text clipped - 8 lines]
> Cant think of anytrhing that is missing at present but it has been a long
> day..........
Don't forget what I said about looking at *all* of the exceptions. One
should even be headed up with a message about it being the "root cause"
or somesuch.
Luke