-
1. Re: where do i put my client JSP ?
jaikiran Oct 28, 2005 1:34 AM (in response to matrix1234)I would suggest, you create the following hierarchy:
myApp.ear
|
| ------- META-INF
| |--------------------- application.xml
|
|--------- myAppEjb.jar(Ejb files)
|
|---------myApp.war(contains the jsps)
In short, place the jsps in the .war file -
2. Re: where do i put my client JSP ?
matrix1234 Oct 28, 2005 1:48 AM (in response to matrix1234)sir many many thanks for the fast reply.
>In short, place the jsps in the .war file
thanks....i have made the war containg JSP's.
>application.xml .....whats it this ??
please give me a simple example for this -
3. Re: where do i put my client JSP ?
matrix1234 Oct 28, 2005 1:56 AM (in response to matrix1234)whats the content of META-INF ?
-
4. Re: where do i put my client JSP ?
jaikiran Oct 28, 2005 2:23 AM (in response to matrix1234)Sample contents of application.xml:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd"> <application> <!-- icon nodes start here --> <!-- icon nodes end here --> <!-- display-name node start here --> <display-name>MyAPP</display-name> <!-- display-name node end here --> <!-- description node start here --> <!-- description node end here --> <!-- module nodes start here --> <module> <web> <web-uri>myApp.war</web-uri> <context-root>/myApp</context-root> </web> </module> <module> <ejb>myAppEjb.jar</ejb> </module> </application>
You will be placing this file in META-INF directory of your .ear file. -
5. Re: where do i put my client JSP ?
matrix1234 Oct 28, 2005 2:34 AM (in response to matrix1234)i am getting errors
00:02:31,093 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jbos s/server/default/deploy/myApp.ear org.jboss.deployment.DeploymentException: No META-INF/application.xml found at org.jboss.deployment.EARDeployer.init(EARDeployer.java:120) at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738) at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)
i have application.xml inside META-INF dir<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd"> <application> <!-- icon nodes start here --> <!-- icon nodes end here --> <!-- display-name node start here --> <display-name>MyAPP</display-name> <!-- display-name node end here --> <!-- description node start here --> <!-- description node end here --> <!-- module nodes start here --> <module> <web> <web-uri>myApp.war</web-uri> <context-root>/myApp</context-root> </web> </module> <module> <ejb>StringProcessor.jar</ejb> </module> </application>
-
6. Re: where do i put my client JSP ?
jaikiran Oct 28, 2005 2:37 AM (in response to matrix1234)Please execute the following command and post the output:
jar -tf myApp.ear
This will show the contents of your ear -
7. Re: where do i put my client JSP ?
matrix1234 Oct 28, 2005 2:40 AM (in response to matrix1234)i have myApp folder.
myApp folder contains META-INF,myApp.war,StringProcessor.jar
META-INF contains applications.xml.
myApp.war contains samPleJSP.jsp
i used WinRAR on myApp folder and then while saving i changed extension .rar to .ear.
and i got an myAPP.ear.
i deployed this and got the above errors.
whats wrong ? -
8. Re: where do i put my client JSP ?
matrix1234 Oct 28, 2005 2:43 AM (in response to matrix1234)"jaikiran" wrote:
Please execute the following command and post the output:jar -tf myApp.ear
This will show the contents of your ear
from my cmd prompt...
C:\jboss\server\default\deploy>jar -tf myApp.ear
C:\jboss\server\default\deploy>
NO OUTPUT -
9. Re: where do i put my client JSP ?
jaikiran Oct 28, 2005 2:44 AM (in response to matrix1234)"Matrix1234" wrote:
META-INF contains applications.xml.
It should be application.xml and NOT applications.xml -
10. Re: where do i put my client JSP ?
matrix1234 Oct 28, 2005 2:45 AM (in response to matrix1234)i am confused. where is the mistake ? is it because of using WinRAR tool to make war and ear file ?
how do u make ear,war file then ?
i dont understand whats the problem -
11. Re: where do i put my client JSP ?
matrix1234 Oct 28, 2005 2:46 AM (in response to matrix1234)"jaikiran" wrote:
"Matrix1234" wrote:
META-INF contains applications.xml.
It should be application.xml and NOT applications.xml
sorry. i have application.xml ...its typo while posting here -
12. Re: where do i put my client JSP ?
matrix1234 Oct 28, 2005 2:53 AM (in response to matrix1234)hi,
i have uploaded my ear file here..
http://rapidshare.de/files/6859813/myApp.ear.html
will you please look into it ?
you can download ear file in free mode from that side. -
13. Re: where do i put my client JSP ?
jaikiran Oct 28, 2005 2:58 AM (in response to matrix1234)Saw the contents of myApp.ear. Your myApp.ear contains a folder myApp, which is wrong. I guess you clicked on myApp folder and said "Add to Archive" using WinRAR. Instead do the following:
OPEN the folder myApp
Select ALL files, and say, "Add to Archive" using WinRAR
Name it myApp.ear
Also, i see the same problem with myApp.war. Please follow the above steps while creating myApp.war also.
This will create the correct structure -
14. Re: where do i put my client JSP ?
jaikiran Oct 28, 2005 3:04 AM (in response to matrix1234)Also, please see that you have WEB-INF directory in your .war file. Your WEB-INF directory should contain web.xml.
Sample contents:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <!-- icon nodes start here --> <!-- icon nodes end here --> <!-- display-name node start here --> <display-name>MyApp</display-name><!-- display-name node end here --> </web-app>