Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

myjavaserver

Thread view: 
alfonso12 - 05 Nov 2005 14:15 GMT
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

Signature

Alfonso

Thomas Hawtin - 05 Nov 2005 20:20 GMT
> 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/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.