Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

WEB-INF Classes and Classpath

843840Feb 2 2009 — edited Feb 2 2009
Hi,

I have just setup a new web server and deployed a test JSP. This JSP connects to a resident class in the WEB-INF/classes/testapp and output a String on the JSP page. The thing is unless I add the folder to the classpath, it comes up with an error message

Only a type can be imported. testapp.test resolves to a package

When actually the testapp.test is a class. I remember on previous deployments (where I hadn't setup the server) I wasn't required to add this detail in the class path for every site. And even in this case on the live Linux site, I'm having trouble adding more that one item in the class path. I have 2 questions.

1. How do I make it so I don't need to add each site various class folders into the classpath?
2. What format should I be using on the /etc/profile classpath on a linux server so I can add multiple items?

Thanks, really apprecaite any assistance ;)

Dan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 2 2009
Added on Feb 2 2009
7 comments
140 views