• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

New to RESIN

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which version of Resin are you using? Would you mind posting the source for the index page and maybe even the web.xml file?
 
Philip Barlow
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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. . .
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Philip Barlow
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic