Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

Preeti Patil

Greenhorn
+ Follow
since Nov 27, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Preeti Patil

Hi Suresh..
whatever u have posted on the JavaRanch ...really i got out of the problem..
The only mistake i was making was... of URL pattern for servlet........
Thanks a lot ...
Preeti
16 years ago
Hi ..
I am also facing the same problem..only diff is i have used Eclipse IDE with Lomboz plugin...
If any one has solution for this...ps let me know.....
Preeti
16 years ago
Hi ..
I don't know what you want..
Acc to my knowledge if u having problem of starting server..
Then just do the below things...
If installation dir of tomcat is c:\Tomcat then set the below path thro environment variables..
VARIABLE NAME ---- JAVA_HOME
VARIABLE VALUE ---- C:\jdk (here whatever version u have)
VARIABLE NAME ---- CATALINA_HOME
VARIABLE VALUE ---- C:\Tomcat (here whatever version u have)
After doing the above settings then...
u can start the server from START->RUN and type the below command ..
%CATALINA_HOME%\BIN\startup.bat
and if u want to stop the server ........
%CATALINA_HOME%\BIN\shutdown.bat
All the best...

Preeti
16 years ago
Hi All...
I am using Eclipse IDE with Lomboz Plugin in order to create servlets .
I had been successfull to install Tomcat 4.1 ,Eclipse with Lomboz plugin.
Also I am able to start my server on port 8060 the only problem i am facing is that when Server is started ...after visiting below link..
http://localhost:8060/index.hmtl
I am able to execute example servlets but i am not able to execute mine created servlet...
The directory structure i followed is shown below...
c:/Eclipse/workspace/Tom/test/TestServlet.java

Waiting for earliest Reply..
Preeti
16 years ago
Hi Sunny..
Yes U can do one thing ... go and visit the links related to Servlets spec and as well Tomcat server spec.
That will surely help u lot..
Preeti
16 years ago
Thanks alot...
Yes I know that a beginner should not hurry to use IDE as the concepts/logic involved during the programming is not cleared.
Preeti
16 years ago
Hi..
I have heard about IDE and for Tomcat I have downloaded Esclipse with Lombaz plugin. Whether these things will be useful for me ..? If so...how..?
Are there any other IDEs available fro Tomcat/Apache..?

Preeti
16 years ago

Originally posted by Sunny T:
Hi Sunny..
[QB]I would like to know
1. can i compile the servlets using servlet.jar of tomcat or j2ee.jar of j2sdkee1.3.1
sol : Yeah u need servlet.jar
2. after compiling that how to set the path in autoexec.bat and how to set the environment variable(Do i need to set both of them or not)
sol: u can set path in one of the 2 ways...
Either by setting values in Environment variable Tab or by editing autoexec.bat file
3. where to place my servlet source code, class file and what is url i need to type in the browser.
sol: Suppose u have your 'Hello.java' servlet file in 'Trialweb' folder then u place the above folder as shown below
C:\jakarta-tomcat-3.3.1a\webapps\Trialweb
and after u can copmile the servlet by using javac -d command or by javac and copy the class file from the current location to
C:\jakarta-tomcat-3.3.1a\webapps\Trialweb\WEB-INF\classes
4. how to see the results(servlet) on command prompt
After doing the above task u can start the tomcat.
And when the enginee is started u can go the browser and type the below
http://localhost:8080/Trialweb/servlet/Hello

I hope u will find the output (result ) of servlet... but in browser...

Hey! what exactly u want in command prompt..?

Preeti

16 years ago
Yeah..
i too had same problem when i started with Tomcat 4 and so i just shifted to Tomcat 3.X .
If u find any solution ps. get back to me.
Thanks.
16 years ago
Hi All...
I have developed a web application and it is running on JRUN server ver 2.3.2 now i want to switch my whole application to Tomcat/Apache server
so is there any solution from Tomcat/Apache which one is best...
Also long back i tried on Tomcat 4 but there was some problem to start the server...

I want to know whether
16 years ago