I've an account on myjavaserver and I'start to send my work.
My problem is that in a page I use a bean, but tomcat can't find the class.
I put it my packege in web-inf/classes/mypackage.
If I try to use it on my pc all is ok.
Where must I put the package? Are there some limitation?
Thanks
> I've an account on myjavaserver and I'start to send my work.
> My problem is that in a page I use a bean, but tomcat can't find the class.
> I put it my packege in web-inf/classes/mypackage.
^^^^^^^WEB-INF
> If I try to use it on my pc all is ok.
> Where must I put the package? Are there some limitation?
myjavaserver is a bit messed up. Because the server can't copy with
however many thousand webapps, they just use one and a bit of trickery.
The root of the web app is one level down from your root. That means
that you don't have WEB-INF available. So within WEB-INF/classes their
is a link to your root.
Say you had an account name of fredbloggs all your classes need to be in
the packages fredbloggs or a package that starts with "fredbloggs.". You
then need to put the class in a directory without the initial account
name (which is covered by the link).
So for a class fredbloggs.mypackage.MyClass, you should place it with
file path /mypackage/MyClass.class.
Tom Hawtin

Signature
Unemployed English Java programmer
http://jroller.com/page/tackline/