[OpenSIPS-Users] Problem when WESIP starts
mmarzuola at interfree.it
mmarzuola at interfree.it
Wed Feb 4 10:10:21 CET 2009
Hi.
Now WeSIP seems start, but when I try to connect via web at http://10.10.45.168:8080 or http://10.10.45.168:8080, I get this status error:
HTTP Status 500 - No Context configured to process this request
I have used the default context configuration, but seems does not work.
Is there something to change?
Thanks in advance for the help.
Marzuola Matteo
>Hi,
> you have to change it both in the name and in then nameSip
attributes. It should work then.
>Regards
>Gines
>
> Hi.
> I have changed the server.xml, but the error remains the same.
> The host definition part now is:
>
>
> appBase="webapps" unpackWARs="true"
> port="5060" autoDeploy="true"
> className="com.voztele.sipservlet.core.ConvergedHost">
>
> className="com.voztele.sipservlet.core.SipHostMapper" protocol="SIP/
> 2.0"/>
>
> className="org.apache.catalina.core.HttpHostMapper" protocol="HTTP/
> 1.1"/>
>
>
>
> Wesip runs on a virtual machine other than opensips. It is a problem?
>
> In the engine part:
>
>
> className="com.voztele.sipservlet.core.ConvergedEngine">
>
> and connector part:
>
>
> className="org.apache.catalina.connector.http.HttpConnector"
> port="8080" minProcessors="5" maxProcessors="75"
> enableLookups="true" address="localhost" acceptCount="10"
> debug="10" />
>
> I must change localhost with 10.10.45.158?
>
> Thanks in advance
>
> Matteo Marzuola
>
>> Hi,
>
>> in server.xml, in the host definition part
>
>>
>> appBase="webapps" unpackWARs="true"
>> port="5060" autoDeploy="true"
>> className="com.voztele.sipservlet.core.ConvergedHost">
>
>> try to change localhost with 10.10.45.158 this way you tell the
> SipServlet engine which requests has to manage
>
>> Hope that helps
>
>> Gines
>
>>
>> Hi all.
>> I have downloaded wesip and configured opensips with seas module.
>> This is the opensips.cfg and the server.xml:
>>
>> debug=3
>> log_stderror=no
>> log_facility=LOG_LOCAL0
>> fork=yes
>> children=4
>>
>> port=5060
>> listen=udp:10.10.45.158:5060
>>
>> loadmodule "/usr/local/lib/opensips/modules/signaling.so"
>> loadmodule "/usr/local/lib/opensips/modules/sl.so"
>> loadmodule "/usr/local/lib/opensips/modules/tm.so"
>> loadmodule "/usr/local/lib/opensips/modules/rr.so"
>> loadmodule "/usr/local/lib/opensips/modules/maxfwd.so"
>> loadmodule "/usr/local/lib/opensips/modules/usrloc.so"
>> loadmodule "/usr/local/lib/opensips/modules/registrar.so"
>> loadmodule "/usr/local/lib/opensips/modules/textops.so"
>> loadmodule "/usr/local/lib/opensips/modules/seas.so"
>> loadmodule "/usr/local/lib/opensips/modules/mi_fifo.so"
>>
>> modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
>> modparam("mi_fifo", "fifo_mode", 0666)
>>
>> modparam("usrloc", "db_mode", 0)
>>
>> modparam("rr", "enable_full_lr", 1)
>>
>> modparam("seas", "listen_sockets", "10.10.45.158:5080")
>>
>>
>> route{
>> if (!mf_process_maxfwd_header("10")) {
>> sl_send_reply("483","Too Many Hops");
>> exit;
>> };
>> if (msg:len >= 2048 ) {
>> sl_send_reply("513", "Message too big");
>> exit;
>> };
>> if (!method=="REGISTER")
>> record_route();
>> if (loose_route()) {
>> append_hf("P-hint: rr-enforced\r\n");
>> route(1);
>> };
>> if (uri==myself) {
>> if (method=="REGISTER") {
>> save("location");
>> exit;
>> };
>> lookup("aliases");
>> if (!uri==myself) {
>> append_hf("P-hint: outbound alias\r\n");
>> route(1);
>> };
>> if (!lookup("location")) {
>> sl_send_reply("404", "Not Found");
>> exit;
>> };
>> append_hf("P-hint: usrloc applied\r\n");
>> };
>> route(1);
>> }
>> route[1] {
>> if(!as_relay_t("app_server_one")){
>> t_reply("500","Application Server error");
>> }
>> }
>>
>>
>>
>>
>>
>>
>> className="org.apache.catalina.connector.http.HttpConnector"
>> port="8080" minProcessors="5" maxProcessors="75"
>> enableLookups="true" address="localhost" acceptCount="10"
>> debug="10" />
>>
>> className="com.voztele.sipservlet.connector.SipConnector"
>> minProcessors="5" maxProcessors="75"
>> addresses="10.10.45.158:5060" >
>>
>>
>> key="com.voztele.javax.sip.SER_ADDRESS" value="10.10.45.158:5080" />
>>
>> value="app_server_one" />
>>
>> key="com.voztele.javax.sip.THREAD_POOL_SIZE" value="10" />
>>
>>
>>
>> className="com.voztele.sipservlet.core.ConvergedEngine">
>>
>>
>> timestamp="true"/>
>>
>> className="org.apache.catalina.core.StandardEngineMapper"
>> protocol="HTTP/1.1"/>
>>
>> protocol="SIP/2.0"/>
>>
>>
>> appBase="webapps" unpackWARs="true"
>> port="5060" autoDeploy="true"
>> className="com.voztele.sipservlet.core.ConvergedHost">
>>
>> className="com.voztele.sipservlet.core.SipHostMapper" protocol="SIP/
>> 2.0"/>
>>
>> className="org.apache.catalina.core.HttpHostMapper" protocol="HTTP/
>> 1.1"/>
>>
>>
>>
>>
>>
>> When I start wesip with the script startup.sh I get:
>>
>>
>> opensips-lab:/usr/local/etc/wesip# bin/startup.sh
>> Starting WESIP Application Server VozTelecom...
>> opensips-lab:/usr/local/etc/wesip# Exception during startup
>> processing
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun
>> .reflect
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun
>> .reflect
>> .DelegatingMethodAccessorImpl
>> .invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:
>> 156)
>> Caused by: java.lang.ExceptionInInitializerError
>> at
>> com.voztele.sipservlet.core.ConvergedHost.(ConvergedHost.java:
>> 87)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun
>> .reflect
>> .NativeConstructorAccessorImpl
>> .newInstance(NativeConstructorAccessorImpl.java:39)
>> at
>> sun
>> .reflect
>> .DelegatingConstructorAccessorImpl
>> .newInstance(DelegatingConstructorAccessorImpl.java:27)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:
>> 494)
>> at java.lang.Class.newInstance0(Class.java:350)
>> at java.lang.Class.newInstance(Class.java:303)
>> at
>> org
>> .apache
>> .commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
>> at org.apache.commons.digester.Rule.begin(Rule.java:152)
>> at
>> org.apache.commons.digester.Digester.startElement(Digester.java:1286)
>> at
>> com
>> .sun
>> .org
>> .apache
>> .xerces
>> .internal
>> .parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
>> at
>> com
>> .sun
>> .org
>> .apache
>> .xerces
>> .internal
>> .impl
>> .XMLDocumentFragmentScannerImpl
>> .scanStartElement(XMLDocumentFragmentScannerImpl.java:878)
>> at
>> com
>> .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
>> $
>> FragmentContentDispatcher
>> .dispatch(XMLDocumentFragmentScannerImpl.java:1693)
>> at
>> com
>> .sun
>> .org
>> .apache
>> .xerces
>> .internal
>> .impl
>> .XMLDocumentFragmentScannerImpl
>> .scanDocument(XMLDocumentFragmentScannerImpl.java:368)
>> at
>> com
>> .sun
>> .org
>> .apache
>> .xerces
>> .internal.parsers.XML11Configuration.parse(XML11Configuration.java:
>> 834)
>> at
>> com
>> .sun
>> .org
>> .apache
>> .xerces
>> .internal.parsers.XML11Configuration.parse(XML11Configuration.java:
>> 764)
>> at
>> com
>> .sun
>> .org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:
>> 148)
>> at
>> com
>> .sun
>> .org
>> .apache
>> .xerces
>> .internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
>> 1242)
>> at org.apache.commons.digester.Digester.parse(Digester.java:
>> 1572)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:
>> 428)
>> at org.apache.catalina.startup.Catalina.execute(Catalina.java:
>> 358)
>> at org.apache.catalina.startup.Catalina.process(Catalina.java:
>> 129)
>> ... 5 more
>> Caused by: java.lang.NullPointerException
>> at
>> com.voztele.sipservlet.util.JainFactories.(JainFactories.java:
>> 37)
>> at
>> com
>> .voztele.sipservlet.util.JainFactories.(JainFactories.java:18)
>> ... 27 more
>>
>> Any suggestions?
>>
>> Thanks in advance.
>>
>> Marzuola Matteo
>>
>>
>>
>> ----------------------------------------------------------------------------
>> Vuoi essere presente online?
>> Vuoi dare voce alla tua attivita`?
>> Acquista un dominio su domini.interfree.it.
>> A partire da 18,59 euro
>> ----------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
>
> ----------------------------------------------------------------------------
> Vuoi essere presente online?
> Vuoi dare voce alla tua attivita`?
> Acquista un dominio su domini.interfree.it.
> A partire da 18,59 euro
> ----------------------------------------------------------------------------
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
----------------------------------------------------------------------------
Vuoi essere presente online?
Vuoi dare voce alla tua attivita`?
Acquista un dominio su domini.interfree.it.
A partire da 18,59 euro
----------------------------------------------------------------------------
More information about the Users
mailing list