cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying a JSP file

former_member198060
Participant
0 Kudos

Hello,

I am currently trying to deploy a jsp file on the application server from NWDS.

But unfortunatelly I didn't manage to make it work yet.

If anybody could provide a step by step howto that would be great, I am not very familiar with the deployment descriptor files for java web applications. So I am having trouble to set the right web project up where I can add my jsp and then deploy and find it on the server.

My situation is: I have a jsp file from the internet that I would like to deploy on the AS. Afterwards I want to call the jsp directly via the browser. I already have my Web AS setup in NWDS, so I can deploy web projects there.

I am just not sure, which kind of project to chose and how to integrate my jsp. And afterwards which sub URL to use to call my jsp.

Any help would be really appreciated!

Best Regards,

Peter

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member198060
Participant
0 Kudos

Ok got it to work now (although I am not quite sure that I am using the correct method).

Did it the following way:

1.) Create Dynamic Web Project

2.) add the jsp File to WebModule Project

3.) Create an Ear Project and add the WebProject to it

4.) on jsp- file right click and Run on Server

Former Member
0 Kudos

The way(s) are described in the forum thread here:

/message/7659293#7659293 [original link is broken]

- Regards, Dibya

former_member198060
Participant
0 Kudos

Hello Dibya,

Thank you for your reply!

I have actually seen this thread but unfortunatelly I could not make my jsp work.

One problem I have is that in every guide I found, it says to create a "J2EE -> Web module" project in NWDS. But in my NWDS I only have Application Client-, Connector-, Enterprise Application- and Utility Project under "J2EE".

Under "Web" I have "Dynamiy web project" and "Static web project" in addition.

Which one would be the right one?

I have also tried to create a portal application project like advised in the mentioned thread.

Basically what I did so far was creating the mentioned projects, then right click the project and choose new -> jsp file.

Into the jsp file I then inserted the coding of my downloaded jsp file and then I tried to export the projects into an EAR file.

This also worked. Then I deployed the EAR archive to the application server. But when I am on the application server I am not able to find / open my appliciation.

For example the last try I did was with the portal application. I have an EAR file created out of my portal application file. Inside the EAR file there is a WAR file. Inside the WAR file I have a folder called "WEB-INF" and inside this folder there is the "jsp" folder and in there is my jsp.

My question is now, how can I call that jsp after deploying the EAR file?

Let's say my project is called "test" and I have a "test.ear", inside of that I have the "test.war" and inside there in the "WEB-INF/jsp" folder I have a "abc.jsp".

When I open my appserver address http://server:port/test I am getting http error 403:

Error: You are not authorized to view the content of the requested directory.

Details:

Directory listing is not allowed on this server.

So I tried to open the jsp via:

http://server:port/test/abc.jsp

http://server:port/test/test/

http://server:port/test/test/WEB-INF/jsp/abc.jsp

But neither worked (every time http error 404 - file not found).

So if you could give me any further hint on what I am doing wrong that would be really appreciated.

Best Regards,

Peter