Forum Moderators: open

Message Too Old, No Replies

Forum for JSP & Resin Server

JSP and Resin Server

         

Ecstacy

11:56 am on Sep 19, 2003 (gmt 0)

10+ Year Member



Hello there,

I know this is a wrong place to ask my question as it is related to JSP. But still i'm asking it as i am desperately need of solution to my problem.

Can anyone tell me about a good forum to find solution of JSP and Resin server?

I'll be highly obliged if anyone helps me out.

Thanks

Alternative Future

12:30 pm on Sep 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Ecstacy,

Have you been to the Caucho [caucho.com] website?

What exactly is your problem, my site runs on Resin alongside JSP's

-gs

Ecstacy

12:39 pm on Sep 19, 2003 (gmt 0)

10+ Year Member



Hi Alternative Future,

Thanks for your reply.

Actually my site is running on resin and when i type down my site the port number comes up in the address bar.

I do not want the port number visible in the address bar.

So, i want the url like this,
[mysite.com...]
instead of
[mysite.com:8080...]

If you have the solution, plz help me out.

Thanks

Alternative Future

12:43 pm on Sep 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think...

Removing the <http port='8080'> entry from resin.conf should assist in this, but might cause conflicts elsewhere, try it out and see.
Comment it out at first to make sure no other conflicts exist.

-gs

Ecstacy

12:48 pm on Sep 19, 2003 (gmt 0)

10+ Year Member



ok
Let me try it out.

Ecstacy

12:57 pm on Sep 19, 2003 (gmt 0)

10+ Year Member



I tried it out but doesn't work.

Am i supposed to make some other changes as well along with changing the resin.conf file?

Plz guide, if you can.

Thanks

Alternative Future

1:00 pm on Sep 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Ecstacy,

Have you restarted the server after the changes? sorry thought i better ask the obvious first...

Also check your web.xml

-gs

Ecstacy

1:01 pm on Sep 19, 2003 (gmt 0)

10+ Year Member



ok

I'm restarting the server, now.

Alternative Future

1:04 pm on Sep 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also are you running resin on apache?

-gs

Ecstacy

1:10 pm on Sep 19, 2003 (gmt 0)

10+ Year Member



yes, it does run on the apache.

I restarted the server but after that the page stop coming.

Am i supposed to change the web.xml file also?

Alternative Future

1:21 pm on Sep 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Am at work just now so I cannot get hold of my Apache settings, but am sure you might have to check your apache configuration. I shall be able to determine this when I get home later...

What does you web.xml currently look like? Can you post it (if not too large)

-gs

Ecstacy

1:27 pm on Sep 19, 2003 (gmt 0)

10+ Year Member



Following is the web.xml file.

<web-app>
<!--
- Maps all servlets using URLs like /servlet/test.MyServlet
-->
<servlet-mapping>
<url-pattern>/servlet/*</url-pattern>
<servlet-name>invoker</servlet-name>
</servlet-mapping>

<!--
- Configuration for the InitServlet example.
-
- It uses Resin's short configuration syntax with attributes
- for easier maintenance. You can still use the verbose
- servlet syntax.
-->


<servlet>
<servlet-name>
OutSourceInitializationServlet
</servlet-name>
<servlet-class>
server.OutSourceInitializationServlet
</servlet-class>

<load-on-startup>1</load-on-startup>

</servlet>


<!--
- Configuration for the MapServlet example
-->

</web-app>

Alternative Future

1:33 pm on Sep 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That looks fine to me! Nothing in there...

Check your httpd.conf and server.xml for further port settings read through the comments located at the top of them and see if you can find anything before i get home...

-gs

Ecstacy

1:36 pm on Sep 19, 2003 (gmt 0)

10+ Year Member



ok.

thanks for the help.

Alternative Future

1:58 pm on Sep 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ecstacy,

Try replacing your resin.conf with this one i found online! Remember to restart your server and take a back-up of the orig conf file. Let's know the outcome

<caucho.com>
<http-server>
<app-dir>doc</app-dir>
<srun>
<port>8081</port>
</srun>
<host id=''>
<web-app id='/'>
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>com.caucho.jsp.JspServlet</servlet-class>
</servlet>
<servlet-mapping>
<url-pattern>*.jsp</url-pattern>
<servlet-name>jsp</servlet-name>
</servlet-mapping>
</web-app>
</host>
</http-server>
</caucho.com>

-gs

Ecstacy

10:17 am on Sep 20, 2003 (gmt 0)

10+ Year Member



This does not work, Alternative Future.

It shows that the page can not be displayed.

Ecstacy

9:48 am on Sep 22, 2003 (gmt 0)

10+ Year Member



Hello Alternative Future, r u there?

Pls reply me. I need you at one instance.

- Ecstacy

Alternative Future

10:02 am on Sep 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Ecstacy,

Sorry for the delay in getting back to you, been away all weekend!

Are you setting up this server to be visible online? Or is it just for use on your home PC for development purpose?

-gs

Ecstacy

10:09 am on Sep 22, 2003 (gmt 0)

10+ Year Member



I'm using it to make it online.

Can you pls tell me how to change the default page in resin server?

Ecstacy

10:26 am on Sep 22, 2003 (gmt 0)

10+ Year Member



Hello Alternative Future,

Are you there?

I really need it.

Alternative Future

10:37 am on Sep 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In your resin.conf firstly check these settings (and replace the OLD with the NEW):

<http-server>
<!--- The root file directory of the server. Apache users will change this to /usr/local/apache/htdocs and IIS users will change it to d:\inetpub\wwwroot -->

OLD - <app-dir>doc</app-dir>
NEW - <app-dir>/usr/local/apache/htdocs</app-dir>

OLD - <web-app id='examples/tags'/>
NEW - <web-app id='Path-to-the-index.jsp-excluding-jsp'/>

Can you firstly check them xTc

[edit]Also can you sticky me a copy of your server logs - located in the resin dir[/edit]

Ecstacy

10:58 am on Sep 22, 2003 (gmt 0)

10+ Year Member



In my resin.conf file there is no such thing as <app-dir>.

And i did change the <web-app id='examples/tags'/> element.

But that did not work.

Alternative Future

11:01 am on Sep 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



can you sticky me a copy of your resin.conf?

Ecstacy

12:06 pm on Sep 22, 2003 (gmt 0)

10+ Year Member



i'm not able to sticky you.

Can you plz sticky me your msn id, plz?