<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Villiam,<br>
<br>
I've tried to reproduce your problem and it works fine in my WeSIP.<br>
<br>
I have the C2C application in <i>wesip/wesipapps/click2call</i>.
Inside of application there is a jsp folder it cotains the
Click2Call.jsp file. I've inserted into the same folder the Test.jsp
with the include as you do and I've opened <a
 href="http://localhost:8080/click2call/jsp/Test.jsp">http://localhost:8080/click2call/jsp/Test.jsp</a>
and Click2Call.jsp has been showed.<br>
I've tried your second problem and It's worked fine too.<br>
<br>
I undestand that your Click2Call,jsp works fine and when you open the
Test.jsp is when it doesn't works. Isn't it?<br>
<br>
Firstable check your paths because in your mail explains  you connect
to <a href="http://localhost:8080/c2c/Test.jsp.">http://localhost:8080/c2c/Test.jsp.</a>
but in the example of Click2call is in <a
 href="http://localhost:8080/c2c/jsp/Click2Call.jsp">http://localhost:8080/c2c/jsp/Click2Call.jsp</a>
and you include is <i>&lt;jsp:include page="Click2Dial.jsp" /&gt;
</i><br>
And you also can revise your JAVA_HOME environment variable because
WeSIP imports the tools.jar library  relative to JAVA_HOME and uf  you
want to use jsp's pages, this library has to be present.<br>
<br>
Try it and tell me how are things.<br>
Antonio.<br>
<br>
<blockquote cite="mid:85DF4137-B25D-4C04-9151-3296B6DD1785@voztele.com"
 type="cite">
  <blockquote type="cite">De: Viliam Pucik
<a class="moz-txt-link-rfc2396E" href="mailto:viliam.pucik@gmail.com">&lt;viliam.pucik@gmail.com&gt;</a>
    <br>
Fecha: 15 de marzo de 2009 21:20:34 GMT+01:00
    <br>
Para: <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>
    <br>
Asunto: [OpenSIPS-Users] WeSIP - Problem with &lt;jsp:include&gt; and
RequestDispatcher
    <br>
    <br>
Hello,
    <br>
    <br>
there is a problem when using &lt;jsp:include page"some/page.jsp"&gt;
tag in
    <br>
a JSP page in WeSIP.
    <br>
    <br>
To reproduce the error:
    <br>
    <br>
For example: Download click2call application and put Test.jsp page
    <br>
with the following content in it:
    <br>
    <br>
&lt;jsp:include page="Click2Dial.jsp" /&gt;
    <br>
    <br>
into the same folder where Click2Dial.jsp is located. It will show
    <br>
"HTTP Status 500 - Internal Server Error" after opening URL
    <br>
<a class="moz-txt-link-freetext" href="http://localhost:8080/c2c/Test.jsp">http://localhost:8080/c2c/Test.jsp</a>.
    <br>
    <br>
The error in a log file:
    <br>
    <br>
2009-03-15 20:49:29 StandardWrapperValve[jsp]: Servlet.service() for
    <br>
servlet jsp threw exception
    <br>
java.lang.NullPointerException
    <br>
    at org.apache.jasper.runtime.JspRuntimeLibrary.include(Unknown
Source)
    <br>
    at org.apache.jsp.Test$jsp._jspService(Test$jsp.java:65)
    <br>
    at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
    <br>
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    <br>
    at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
    <br>
Source)
    <br>
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
Source)
    <br>
    at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
    <br>
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    <br>
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
    <br>
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
    <br>
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:206)
    <br>
    at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
    <br>
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
    <br>
    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:946)
    <br>
    at
com.voztele.sipservlet.valves.ConvergedContextValve.invokeHTTP(ConvergedContextValve.java:144)
    <br>
    at
com.voztele.sipservlet.valves.ConvergedContextValve.invoke(ConvergedContextValve.java:64)
    <br>
    at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
    <br>
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
    <br>
    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:946)
    <br>
    at
org.apache.catalina.core.StandardHttpContext.invoke(StandardHttpContext.java:2377)
    <br>
    at
com.voztele.sipservlet.core.ConvergedContext.invoke(ConvergedContext.java:98)
    <br>
    at
com.voztele.sipservlet.valves.ConvergedHostValve.invokeHTTP(ConvergedHostValve.java:337)
    <br>
    at
com.voztele.sipservlet.valves.ConvergedHostValve.invoke(ConvergedHostValve.java:98)
    <br>
    at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
    <br>
    at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:124)
    <br>
    at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
    <br>
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    <br>
    at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
    <br>
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
    <br>
    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:946)
    <br>
    at
com.voztele.sipservlet.valves.ConvergedEngineValve.invoke(ConvergedEngineValve.java:98)
    <br>
    at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
    <br>
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
    <br>
    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:946)
    <br>
    at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:994)
    <br>
    at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1105)
    <br>
    at java.lang.Thread.run(Thread.java:636)
    <br>
    <br>
Also the similar error happens when using
    <br>
    <br>
RequestDispatcher dispatcher =
    <br>
getServletContext().getRequestDispatcher("/jsp/Click2Dial.jsp");
    <br>
dispatcher.forward(request, response);
    <br>
    <br>
in a servlet.
    <br>
    <br>
It's a little bit frustrating :(
    <br>
    <br>
    <br>
Regards
    <br>
    <br>
Viliam Pucik
    <br>
    <br>
_______________________________________________
    <br>
Users mailing list
    <br>
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
    <br>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
    <br>
    <br>
  </blockquote>
  <br>
</blockquote>
<br>
</body>
</html>