Hi
First, It is not necessary that you should create a war file.
It is sufficient if you create a jar file with ejb stuff in it.
Set the classpath for this jar file and your servlets in
startWeblogic.cmd.
You should be able to access your servlets .
Thanks & Regards
Balasubramaniyan Krithivasan
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API
Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Edward
Sent: Wednesday, June 05, 2002 8:21 AM
To: [EMAIL PROTECTED]
Subject: How to package file in a complicated directory struct?
I want to use Weblogic6.1 to deploy a servlet,I know I must create a .war
file before deploy the servlet.But it exist a question,in creating .war
file,it need a CheckPassword.jar file which it is formed by using EJB
files.CheckPassword.jar is created by follow steps:
First I have a EJB directory struct:
EJB___META-INF___ejb-jar.xml
| |___weblogic-ejb-jar.xml
|
|___loginEJB___CheckPassword.class
| |___CheckPasswordHome.class
| |___CheckPasswordEJB.class
|
|___CheckPass.class
Then I form CheckPassword.jar by using follows command:
jar cvf CheckPassword.jar META-INF/ loginEJB/*.class
Then I have a servlet directory struct:
servlet___servlets___index.html
|___WEB-INF___lib___CheckPassword.jar
| | |___j2ee.jar
| | |___weblogic.jar
| |
| |___classes___Error.txt
| |___TableInfoResult.class
| |___ReadError.class
|__jsp__error.jsp
|__menu.jsp
I want to put servlet struct into .war file,I don't know if I need put
loginEJB struct of EJB struct into servlet struct? If need ,where should I
put it into? I'm puzzled by servlet directory struct,I don't know how to
use jar command to packaged them into .war file. Please help!
Thanks in advance!
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html