wood burning stoves 2.0*
The moose likes Other Java Products and Servers and the fly likes New to RESIN Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "New to RESIN" Watch "New to RESIN" New topic
Author

New to RESIN

Philip Barlow
Greenhorn

Joined: Aug 18, 2003
Posts: 8
Hi,
I am relatively new to resin and i am currently working on a project which will run using RESIN. I am having a problem with my JSP pages, when i go to the index page that i put up and try to link to any page off this page the server automatically redirects the user back to the index page. I have searched the RESIN.conf file for answers and nothing seems to point in any way to this problem.
I would be really grateful if anyone could point me in the right direction or even better if anyone has had this problem before and might know the solution.
Thanks in advance
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
Which version of Resin are you using? Would you mind posting the source for the index page and maybe even the web.xml file?


Matthew Phillips
Philip Barlow
Greenhorn

Joined: Aug 18, 2003
Posts: 8
Hi,
Thanks for the reply, i am using Resin 2.1.4 and the problem is definitley not with the index page. My web.xml page has nothing in it but <web-app>
<servlet-mapping>
<url-pattern>/servlet/*</url-pattern>
<servlet-name>invoker</servlet-name>
</servlet-mapping>
</web-app>
so any idea what the problem is?
Philip Barlow
Greenhorn

Joined: Aug 18, 2003
Posts: 8
also ive just noticed resin seems to be starting every 30 seconds, or should i say restarting except the screen never says that it stopped. . .
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Do you by any chance have two Resin's running at once? You might see behaviour like this if you have two processes trying to bind to the same port - one grabs the port and the other keeps trying and then times out.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Philip Barlow
Greenhorn

Joined: Aug 18, 2003
Posts: 8
There is an instance of RESIN running already but the person who set this up said that they set up a virtual host so this wouldnt happen, have you any idea where i might be able to check if this is the problem? Would it be in the RESIN.conf file and could you be specific about what it might come under?
Thanks,
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
OK, several points as a result of this.
Resin's "virtual host" mechanism (like Apache's etc.) is handled by the server itself. So, if you want to run two virtual hosts, you should really configure a single resin instance to serve both hosts.
If you want to run two separate Resin instances on a single computer you either have to run them each listening to different ports, or use a separate web server (for example Apache or IIS) to manage the "virtual hosts", disable the direct access to the Resin server, and only access Resin through the Apache or IIS plugin.
To check if this is the problem, look in Resin's log files for things like "unable to bind to port".
Philip Barlow
Greenhorn

Joined: Aug 18, 2003
Posts: 8
Thanks for all your help, think i have it figured out though, i am using JSTL and i don't think RESIN-2.1.4 supports it, this is a bit of a problem but i have a few ideas to sort it out thanks again
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New to RESIN