Marcel Klein <> wrote:
>> So Resin is installed, but you cannot run your web
>>applications.
>>
>> Let's do a "Hello World" example:
>> - The directory webapps in the resin directory contains web
>>applications.
>> - Let's say you have a web application with context root
>>"HelloWorld",
>> packaged in a war file or directory structure:
>
>
> Thanks for the quick help.
> But i think my problem is a bit more simpler:
> I am just starting to use Resin. dont know anything about "war" and "jsp"
> yet.
In that case, I'll set follow-uips to the appropriate newsgroup (cljh).
JSP
Java Server Page(s). Basically HTML pages, optionally with Java and/or
use of tag libraries in it.
WAR
Web Application Archive. A special zip format that defines a web
application.
Some starting points:
- your teacher (you mentioned him and it's his job).
- a J2EE tutorial (using Sun's application server, but hey, it's a start):
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
- an overview of web applications by the Resin team:
http://kalamari.sics.se:8080/resin-doc/webapp/begin.xtp
> yet i can run the "resin-doc.war" in my C:\resin-3.0.9\webapps directory by
> browsing http://localhost:8080/resin-doc ... they seem to be comparable to
> exe files
They're not like .exe files: web applications run on a server and are
accessed using browser; .exe files are run on your local computer.
Also note, that resin-doc.war is located somewhere else in the resin
installation directory, and through the default resin configuration
mapped to the root of the server (without a context root).
> My teacher said we can write java apps and call them directly by name by
> typing: http:/(resinhost):8080/servlet/(NAme of the java file).
You can call the servlets directly like that, but you must still use the
context root (you omitted it again). After all, if you have three web
applications installed, Resin doesn't know where to find your servlet if
you don't tell him. So:
http://(resinhost):8080/(webApplicat.../(servletclass)
> For example we simply write the helloworld.java and place it in the
> WEB-INF/classes dir.. then put in the browser
> http:/(resinhost):8080/servlet/helloworld and it should run the applet.
Again: if you don't create the context root, Resin can't find it.
Especially with a default installation, as each directory below the
webapps directory is a separate web application. Only below that will
Resin look for a WEB-INF directory.
> i am able to do it on his server(version2.9) it works... straight away i
> downloaded and installed Resin(for windows version 3.0) from caucho.com but
> cant seem to be able to do that on my computer.
> i seem not to know where exactly to place them...
>
> btw. when starting the server Resin gives two error messages:
>
> "java.lang.unsatidfiedlinkerror: no resin in java.library.path"
> and hotswapping is not available.
The first should not happen with a clean install. The second is strange,
as I have no problems with that. It's probably related.
--
Oscar Kind
http://home.hccnet.nl/okind/
Software Developer for contact information, see website
PGP Key fingerprint: 91F3 6C72 F465 5E98 C246 61D9 2C32 8E24 097B B4E2