RE: [Echo-list] Newbie Eclipse and Echo setup
Brought to you by:
tliebeck
From: Ciaran J. <Cia...@te...> - 2004-02-24 08:54:20
|
That doesn't sound like an echo/echopoint issue. If there is no servlet.jar there *NO* JSP/Servlet framework will work! is it possible that the servlet-api.jar file contains the javax.servlet.* classes ? - Ciaran -----Original Message----- From: Glen Trudgett [mailto:Gle...@de...] Sent: 24 February 2004 00:26 To: ech...@li... Subject: Re: [Echo-list] Newbie Eclipse and Echo setup Firstly, Thanks for the input, I've made head way :) Something has come to my attention. Firstly, I'm running Linux (Gentoo) and the distro now has tomcat version 5 as the new release. After poking around in the common libraries (TOMCAT_HOME/common/lib/) I have found the following; ant.jar commons-collections.jar commons-dbcp-1.1.jar commons-el.jar commons-pool-1.1.jar jasper-compiler.jar jasper-runtime.jar jmx-remote-tools.jar jmx-remote.jar jmx.jar jsp-api.jar naming-common.jar naming-factory.jar naming-java.jar naming-resources.jar servlet-api.jar In particular the last entry. There is no servlet.jar!!! Is this something that will have to be accounted for in the echo/echopoint libraries? I found this to be one of the problems I have had during my development environment setup. Glen Dalton, Jason wrote: >Hi Glen, > >I think I'm understanding what you're trying to do here. Basically, you're wanting to know how to get an echo app up and running using eclipse from step 1. I'll assume you have a Java project compiling in eclipse. Exactly how you accomplish the following steps is up to you, but here's an example that should work: > >First, setup the eclipse project to build to the Servlet structure. >1. Set your Java build path to bin\WEB-INF\classes >2. Create the directory bin\WEB-INF\lib and copy your lib files there (Echo.jar, EchoServer.jar, servlet.jar, etc) >3. Put your web.xml file in the bin\WEB-INF directory >Note - at some point you'll want to make an ant build file to manage this structure along with any other CM activities in your project (http://ant.apache.org/). > >Second, setup Tomcat to load your web application. >1. Open TOMCAT_HOME\conf\server.xml >2. Add this line under the <host> tag: ><Context path="/myurl" docBase="PROJECT_HOME/bin" debug="0"/> >Where: >- "myurl" is the virutal directory you want to use to access your app >- "PROJECT_HOME" is the absolute directory to your eclipse project (Note - if you're on windows, replace all back slashes with forward slashes so it'll look something like C:/apps/eclipse/workspace/testproject/bin). > >Fire up Tomcat. The url will be http://localhost:8080/myurl/myservlet Where "myservlet" is what you defined in web.xml for the <url-pattern> of your EchoServer servlet. > >As I mentioned earlier, there are various ways to get your project integrated with Tomcat. I prefer this method since I can setup the build directory structure once (using ant) and rely on eclipse's incremental compile thereafter to test my changes. > >If I missed something I'm sure one of the many folks on this list will let us know. > >Hope this helps, > >jd > > -----Original Message----- > From: Glen Trudgett [mailto:Gle...@de...] > Sent: Sun 2/22/2004 7:47 PM > To: Bra...@ca... > Cc: ech...@li... > Subject: Re: [Echo-list] re: Newbie Eclipse and Echo setup > > > > Hi Brad, > > Thanks for the reply. Fortunately I do understand the mechanics of this > particular element of the setup. I apologise for my lack of clarity. I > continually recieve errors in my source code relating to > javax.servlet.http.HttpServlet. I have managed to have eclipse 'import' > all the properties associated with Labels, Window etc. > > Is this a common problem for 'new players'? > > Glen > > > > Bra...@ca... wrote: > > >I use the Sysdeo Eclipse plugin to allow me to "control/launch" Tomcat from > >within Eclipse. > > > >You can download it from : > > > >http://www.sysdeo.com/eclipse/tomcatPlugin.html > > > >What is does is "start" Tomcat under the control of the Eclipse Java > >Debugger and hence allows you to "step" through your code. > > > >In the menu option Window / Prefernces, you need to go to the Tomcat entry > >and enter in parameters such as where you copy of Tomcat is, what version > >you are running, and finally what JVM to use for Tomcat. > > > >Once you have done this you can "start and stop" Tomcat and it will be > >running inside the Eclispe JVM. > > > > > > > >Cheers > >Brad Baker > >--------------------------------------------------------------------------- ------------- > > > >Email : bra...@ca... > >Mobile: 0418-642-341 > >--------------------------------------------------------------------------- ------------- > > > > > > > > > > > > Glen Trudgett > > <Gle...@de... To: ech...@li... > > .au> cc: > > Sent by: Subject: [Echo-list] re: Newbie Eclipse and Echo setup > > ech...@li...ur > > ceforge.net > > > > > > 23/02/2004 09:38 AM > > > > > > > > > >Hi all, > > > >I am having a little trouble trying to get an echo application up and > >running, using the eclipse editor. > >What I thought would be a straight forward procedure has become a little > >confusing. I would like to be able to grab the helloworld source code, > >put it in the eclipse environment, and create the appropriate Servlet > >executable. > >I have no problems get the EchoDemo working through tomcat. My > >environment contains the following (most recent stable); tomcat, ant, > >jdk, j2ee & eclipse (tomcat plugin). > > > >I have created a project with the structure of WAR standard, using the > >eclipse tomcat plug-in. I have put the echo*.jar files in /lib and have > >created the web.xml for access through tomcat. Would it be possible for > >someone to provide the basic trick of getting Echo development going in > >Eclipse? > > > >Thanks > > > >Glen > > > > > >********************************************************************** > >This message is intended for the addressee named and may contain > >privileged information or confidential information or both. If you > >are not the intended recipient please delete it and notify the sender. > >********************************************************************** > > > > > >------------------------------------------------------- > >SF.Net is sponsored by: Speed Start Your Linux Apps Now. > >Build and deploy apps & Web services for Linux with > >a free DVD software kit from IBM. Click Now! > >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > >_______________________________________________ > >Echo-list mailing list > >Ech...@li... > >https://lists.sourceforge.net/lists/listinfo/echo-list > > > > > > > > > > > > > >------------------------------------------------------- > >SF.Net is sponsored by: Speed Start Your Linux Apps Now. > >Build and deploy apps & Web services for Linux with > >a free DVD software kit from IBM. Click Now! > >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > >_______________________________________________ > >Echo-list mailing list > >Ech...@li... > >https://lists.sourceforge.net/lists/listinfo/echo-list > > > > > > > ********************************************************************** > This message is intended for the addressee named and may contain > privileged information or confidential information or both. If you > are not the intended recipient please delete it and notify the sender. > ********************************************************************** > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Echo-list mailing list > Ech...@li... > https://lists.sourceforge.net/lists/listinfo/echo-list > > > > ********************************************************************** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. ********************************************************************** ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Echo-list mailing list Ech...@li... https://lists.sourceforge.net/lists/listinfo/echo-list ******************************************** Any opinions expressed in this email are those of the individual and not necessarily the Company. This email and any files transmitted with it, including replies and forwarded copies (which may contain alterations) subsequently transmitted from the company, are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited. If you have received this email in error please notify the IT Dept. via email to IT....@Te..., including a copy of the message. Please then delete this email and destroy any copies of it. ********************************************* |