- Posted by: pr cc
- Posted on: March 21 2005 09:43 EST
i am using BEA weblogic server 9.0.I created a new domain named myproj under development mode using config wizard.i have created directory webapp under applications dir of my
newly created domain.
i have created a directory srtucture as webapp\WEB-INF\web.xml
i am able to start and shut down the server.i compiled the servlet program successfully.
but i want to run the program
1.I don't know how to set the classpath and path variables .i would like to set the path and classpath in command line.please help me.
2.do we really need to create web.xml file and war file to run the simple hello servlet program
3.have i placed the .class file in the correct location.
please explain in simple steps.
- RE: problem in classpath setting!!please help urgent by Shaha D on March 21 2005 18:02 EST
Search for startWeblogic script under the domain you created and open it. You will find CLASSPATH variable set in there.
Yes you need to create web.xml. But you do not need to war if you deploy with exploded directory structure.
Check out your package structure and your folder structure under “classes” must match to it.
I have not moved to WLS9 yet, but these things must be pretty much same. If you find any inconsistencies check out BEA docs.
Hope it helps,
Thanks for ur response.i read the documents u had mentioned.I am sorry to bother you.I am new to programming,please help me.I opened and looked startweblogic script under the domain i created.But still i don't know how to set the classpath .I want to set the classpath in command line.i compiled my servlet program using C:\bea\jdk150b.I have set my path variable in command prompt to:
1.how do i Set up a development environment shell with the correct classpath and path settings.how do i set my classpath in command line.how do i include server classes.
2.i have placed my WAR file in c:\bea\user_projects\domain\myprojects\applications.
when i run the program i get 404 error NOT FOUND.Please help me.It frustrates me a lot as i am
unable to run a simple helloworld program.
Have you deployed your war correctly ? If not use weblogic console to deploy it.
I can't understand the second part (C:\IBM\SQLLIB\java\db2java.zip)
in the classpath.There are no files or folders named IBM\SQLLIB ..Please let me know how u have set the second part.