Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Web Tools Tutorials
Web Tools Tutorials [message #160321] Fri, 10 February 2006 22:50 Go to next message
Eclipse UserFriend
Originally posted by: mnikisher.austin.polycom.com

I have been trying to build a simple dynamic web application for several
days without success. The existing tutorials appear to be for a previous
version of the tools. In spite of that I have followed them as closely as
possible but still no joy. Is anyone aware of a tutorial for building a
web application employing servlets and jsp modules using the latest
release (1.0) of the web tools?
Re: Web Tools Tutorials [message #160335 is a reply to message #160321] Sat, 11 February 2006 03:55 Go to previous messageGo to next message
Sachin Patel is currently offline Sachin PatelFriend
Messages: 75
Registered: July 2009
Member
Michael wrote:
> I have been trying to build a simple dynamic web application for several
> days without success. The existing tutorials appear to be for a previous
> version of the tools. In spite of that I have followed them as closely
> as possible but still no joy. Is anyone aware of a tutorial for building
> a web application employing servlets and jsp modules using the latest
> release (1.0) of the web tools?
>

Are the tutorials you are using referencing WTP 0.7? If so since then,
the introduction of facets have changed some of the presentation. What
specific problems are you having?
Re: Web Tools Tutorials [message #160499 is a reply to message #160321] Mon, 13 February 2006 13:38 Go to previous messageGo to next message
Alexey Kakunin is currently offline Alexey KakuninFriend
Messages: 16
Registered: July 2009
Junior Member
<br><font size=2 face="sans-serif">Yes, tutorials on the WTP site is a
little bit out of dated.</font>
<br><font size=2 face="sans-serif">May be this tutorial: http://www.emdev.ru/tutorials/EJBCactusTutorial/
will be helpfull.</font>
<br>
<br><font size=2 face="sans-serif">With best regards,</font>
<br><font size=2 face="sans-serif">Alexey Kakunin</font>
Re: Web Tools Tutorials [message #160549 is a reply to message #160335] Mon, 13 February 2006 14:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mnikisher.austin.polycom.com

I am using Eclipse 3.1.2, WST 1.0.0 and Tomcat 5.5.

- I created a new Dynamic Web Project called Zoo.
- I then created a new JSP file called Tiger.jsp.
- I right clicked on the Tomcat server entry in the Servers list and added
Zoo to the configured projects list.
- I started the server. It indicates that it is synchronized.
- I go to my browser and enter "http://localhost:8080/Zoo/Tiger.jsp
- The browser displays an error page with the message "The requested
resource (/Tiger.jsp) is not available."
Re: Web Tools Tutorials [message #160565 is a reply to message #160549] Mon, 13 February 2006 15:03 Go to previous messageGo to next message
Sachin Patel is currently offline Sachin PatelFriend
Messages: 75
Registered: July 2009
Member
Michael wrote:
> I am using Eclipse 3.1.2, WST 1.0.0 and Tomcat 5.5.
>
> - I created a new Dynamic Web Project called Zoo. - I then created a new
> JSP file called Tiger.jsp. - I right clicked on the Tomcat server entry
> in the Servers list and added Zoo to the configured projects list.
> - I started the server. It indicates that it is synchronized.
> - I go to my browser and enter "http://localhost:8080/Zoo/Tiger.jsp
> - The browser displays an error page with the message "The requested
> resource (/Tiger.jsp) is not available."
>
>
>

Try right clicking on the JSP itself and choose Run->Run on Server. A
web browser should pop up. Validate the URL you are typing in against it.
Re: Web Tools Tutorials [message #160572 is a reply to message #160565] Mon, 13 February 2006 15:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mnikisher.austin.polycom.com

That action results in a dialog titled "Server Error" containing the
message "No launchable artifact could be found in the selection."
Re: Web Tools Tutorials [message #160579 is a reply to message #160549] Mon, 13 February 2006 15:40 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
To determine if the project is being served at all, you can try the URL
"http://localhost:8080/Zoo/", which should display a directory listing.
This assumes there is no welcome file, such as index.jsp, in your
WebContent folder.

Larry

Michael wrote:
> I am using Eclipse 3.1.2, WST 1.0.0 and Tomcat 5.5.
>
> - I created a new Dynamic Web Project called Zoo. - I then created a new
> JSP file called Tiger.jsp. - I right clicked on the Tomcat server entry
> in the Servers list and added Zoo to the configured projects list.
> - I started the server. It indicates that it is synchronized.
> - I go to my browser and enter "http://localhost:8080/Zoo/Tiger.jsp
> - The browser displays an error page with the message "The requested
> resource (/Tiger.jsp) is not available."
>
>
>
Re: Web Tools Tutorials [message #160594 is a reply to message #160565] Mon, 13 February 2006 16:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mnikisher.austin.polycom.com

Sachin Patel wrote:

> Michael wrote:
>> I am using Eclipse 3.1.2, WST 1.0.0 and Tomcat 5.5.
>>
>> - I created a new Dynamic Web Project called Zoo. - I then created a new
>> JSP file called Tiger.jsp. - I right clicked on the Tomcat server entry
>> in the Servers list and added Zoo to the configured projects list.
>> - I started the server. It indicates that it is synchronized.
>> - I go to my browser and enter "http://localhost:8080/Zoo/Tiger.jsp
>> - The browser displays an error page with the message "The requested
>> resource (/Tiger.jsp) is not available."
>>
>>
>>

> Try right clicking on the JSP itself and choose Run->Run on Server. A
> web browser should pop up. Validate the URL you are typing in against it.

That results in a Server Error dialog with the message "No launchable
artifact could be found in the selection."
Re: Web Tools Tutorials [message #160604 is a reply to message #160579] Mon, 13 February 2006 16:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mnikisher.austin.polycom.com

Larry Isaacs wrote:

> To determine if the project is being served at all, you can try the URL
> "http://localhost:8080/Zoo/", which should display a directory listing.
> This assumes there is no welcome file, such as index.jsp, in your
> WebContent folder.

> Larry

> Michael wrote:
>> I am using Eclipse 3.1.2, WST 1.0.0 and Tomcat 5.5.
>>
>> - I created a new Dynamic Web Project called Zoo. - I then created a new
>> JSP file called Tiger.jsp. - I right clicked on the Tomcat server entry
>> in the Servers list and added Zoo to the configured projects list.
>> - I started the server. It indicates that it is synchronized.
>> - I go to my browser and enter "http://localhost:8080/Zoo/Tiger.jsp
>> - The browser displays an error page with the message "The requested
>> resource (/Tiger.jsp) is not available."

I know I'm going to sound pretty stupid here but I assume that when I
"publish" my project that it should be copying the relevent files to the
server directory. That is not happening. Consequently, there is no "Zoo"
directory at http://localhost:8080.
Re: Web Tools Tutorials [message #160612 is a reply to message #160321] Mon, 13 February 2006 16:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mnikisher.austin.polycom.com

I think I have discovered what I did wrong. When I created my .jsp file it
was created in the top level project node, not the WebContent node. This
happened because I right clicked on the project node and selected New->JSP
rather then right clicking on the WebContent node. I have to suppose that
everyone but me knows how to do this properly.

Thank you everyone for trying to help me.
Re: Web Tools Tutorials [message #160620 is a reply to message #160604] Mon, 13 February 2006 16:42 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Execute Run -> Run... and expand "Apache Tomcat" in the tree if not
already. Select your Tomcat server and switch it to the Arguments tab.
Note the path specified for the "catalina.base" property in the VM
Arguments field. This is where you will find the "webapps" directory to
which your project is being copied. It is also where you will find the
"conf" directory containing the server.xml that is used to actually
start Tomcat.

Larry

Michael wrote:
> Larry Isaacs wrote:
>
>> To determine if the project is being served at all, you can try the
>> URL "http://localhost:8080/Zoo/", which should display a directory
>> listing. This assumes there is no welcome file, such as index.jsp,
>> in your WebContent folder.
>
>
>> Larry
>
>
>> Michael wrote:
>>
>>> I am using Eclipse 3.1.2, WST 1.0.0 and Tomcat 5.5.
>>>
>>> - I created a new Dynamic Web Project called Zoo. - I then created a
>>> new JSP file called Tiger.jsp. - I right clicked on the Tomcat server
>>> entry in the Servers list and added Zoo to the configured projects list.
>>> - I started the server. It indicates that it is synchronized.
>>> - I go to my browser and enter "http://localhost:8080/Zoo/Tiger.jsp
>>> - The browser displays an error page with the message "The requested
>>> resource (/Tiger.jsp) is not available."
>
>
> I know I'm going to sound pretty stupid here but I assume that when I
> "publish" my project that it should be copying the relevent files to the
> server directory. That is not happening. Consequently, there is no "Zoo"
> directory at http://localhost:8080.
>
>
Re: Web Tools Tutorials [message #160629 is a reply to message #160612] Mon, 13 February 2006 16:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com

In article <a0c223b6a4881c4f980029936cdb7e12$1@www.eclipse.org>,
mnikisher@austin.polycom.com says...
> I think I have discovered what I did wrong. When I created my .jsp file it
> was created in the top level project node, not the WebContent node. This
> happened because I right clicked on the project node and selected New->JSP
> rather then right clicking on the WebContent node. I have to suppose that
> everyone but me knows how to do this properly.

Well, we do _now_, anyway, after doing the same thing as you, a few
months ago :-P

--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
Re: Web Tools Tutorials [message #160681 is a reply to message #160335] Tue, 14 February 2006 08:21 Go to previous message
Eclipse UserFriend
Originally posted by: srnivas.velidanda.singularity.co.uk

hi,

I am trying to create a web service client application following the
tutorial at
http://www.eclipse.org/webtools/community/tutorials/WebServi ceClient/WebServiceClient.html

I am getting the .jsp files created but are placed in the WebContent
folder by which the jsp file was not available, then i moved the folder
containing the jsp pages to top level folder that is my main project
folder.

But I am getting error in the browser after clicking on the "Start Server"
button.

Following is the error message stack trace

*****************************************************
Stack Trace Start
*****************************************************
type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:280)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:194)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:276)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2523)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapte r.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:413)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:533)
at java.lang.Thread.run(Unknown Source)


root cause

java.lang.NoClassDefFoundError
at
org.apache.jasper.JspCompilationContext.createCompiler(JspCo mpilationContext.java:233)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:554)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:295)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:280)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:194)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:276)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2523)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapte r.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:413)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:533)
at java.lang.Thread.run(Unknown Source)

*****************************************************
Stack Trace End
*****************************************************

Please let me know how to fix this.

thanks,
Srinivas
Previous Topic:WTP 1.5M4 - server
Next Topic:deployment strategy for web app
Goto Forum:
  


Current Time: Fri Apr 19 19:43:08 GMT 2024

Powered by FUDForum. Page generated in 0.03760 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top