Solved

running the applet and servlet

Posted on 2001-07-28
4
358 Views
Last Modified: 2013-11-24
got tired of figuring this out..
but where do i put my applets and servlets on
resin??
(im attempting to make it work under webapp dir..
but
failed). didnt get any info on caucho.com.
the applet talks with the servlets but can not
reside
on the same directory. can u guys give me a
detailed
guide on how do i go about this one? is there any
environment variable i need to set?

on an unrelated note :
why does the java console doesnt appear on my
task bar
even if i already checked the checkbox "display
java
console"?
i have two java plugin icons on my control panel.
one
is version 1.3.0_01 and 1.31. which one is being
used
by my browser by default? if at least i can see
the
java console, id know what the goddamn the error
was
so that i can fix it. but i cant.

im using jdk 1.3.1
0
Comment
Question by:ibo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 27

Expert Comment

by:rrz
ID: 6330709
I also had problems with multiple Dukes in my control panel. I got it working now. But I don't know if I can fix yours. In your Java Plug-in Control Panel Dialog Box, on the Basic tab, I checked Enable and show(like you did),on the Advanced tab the JRE entry I selected was "Use Java Plug-in Default". Also, I JUST LOOKED in my registry to see if I had every thing in agreement.
Maybe some other Expert can tell us how to make changes(I have 3 Dukes in my Control Panel).
0
 
LVL 4

Accepted Solution

by:
rdov earned 50 total points
ID: 6330894
you should put the applet in the Root directory of Resin or the server local host, and the servlet in the classes directory.
those are the default configuration:
Applet-
<Resin path>\doc\
Servlet-
<Resin path>\doc\WEB-INF\classes

you can change those path by redefine resin.conf.
for more information
http://www.caucho.com/products/resin/ref/servlet-config.xtp

to run a servlet you should use port 8080:
http://localhost:8080/servlet/MyServlet (<Resin path>\doc\WEB-INF\classes\MyServlet.class)
to run the applet use:
http://localhost/MyApplet

Note: if you need to perform applet-server communication, the applet should be placed in the same machine where the servlet is placed. they should be called from the same server URL (for example: http://localhost)

0
 
LVL 3

Author Comment

by:ibo
ID: 6332554
just to add some info,
lets say my resin installation is in c:\resin (im using resin 2.0.1)

so i created a directory "project", so my files now is located at "c:\resin\webapps\project"

i placed my applets and html file at
c:\resin\webapps\project

i placed my servlets, and other classes (rmi stub/skel) and other beans at
c:\resin\webapps\project\web-inf\classes

i was able to run this once but for some unknown and weird reason, i wasnt able to run it now. maybe i was poking on the webstart (which has also jre version, installing new jre, or whatever.)

0
 
LVL 3

Author Comment

by:ibo
ID: 6339532
i got the problem now.
the java plugin 1.3.1 that comes with jdk or even the
jre with plugin v1.3.1 does not work correctly.

i used java plugin version 1.3.0_2
0

Featured Post

Command Line Tips and Tricks

The command line is a powerful tool at the disposal of every Linux user. Although Linux distros come with beautiful user interfaces, it's worthwhile to learn the command line because it allows you to do a number of things that you otherwise cannot do from the GUI.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question