Problem when WESIP starts

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem when WESIP starts

mmarzuola

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");
               }
}



<Server port="8005" shutdown="SHUTDOWN" debug="0">
   <Service name="WeSIP-Standalone">
     <Connector className="org.apache.catalina.connector.http.HttpConnector"
         port="8080" minProcessors="5" maxProcessors="75"
         enableLookups="true" address="localhost" acceptCount="10" debug="10" />
         <Connector className="com.voztele.sipservlet.connector.SipConnector"
         minProcessors="5" maxProcessors="75"
         addresses="10.10.45.158:5060" >
                <ExtraProperties>
                        <Property key="com.voztele.javax.sip.SER_ADDRESS" value="10.10.45.158:5080" />
                        <Property key="javax.sip.STACK_NAME" value="app_server_one" />
                        <Property key="com.voztele.javax.sip.THREAD_POOL_SIZE" value="10" />
                </ExtraProperties>
     </Connector>
  <Engine name="Standalone" defaultHost="localhost" debug="10"
     className="com.voztele.sipservlet.core.ConvergedEngine">

      <Logger className="org.apache.catalina.logger.SystemOutLogger"
         timestamp="true"/>
      <Mapper className="org.apache.catalina.core.StandardEngineMapper" protocol="HTTP/1.1"/>
      <Mapper className="com.voztele.sipservlet.core.EngineSipMapper" protocol="SIP/2.0"/>
      <Realm  className="org.apache.catalina.realm.MemoryRealm" />
      <Host name="localhost" nameSip="localhost_5060" debug="10" appBase="webapps" unpackWARs="true"
      port="5060" autoDeploy="true" className="com.voztele.sipservlet.core.ConvergedHost">
             <Mapper className="com.voztele.sipservlet.core.SipHostMapper" protocol="SIP/2.0"/>
             <Mapper className="org.apache.catalina.core.HttpHostMapper" protocol="HTTP/1.1"/>
      </Host>
   </Engine>
 </Service>
 </Server>

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.<init>(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.<init>(JainFactories.java:37)
        at com.voztele.sipservlet.util.JainFactories.<clinit>(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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Problem when WESIP starts

Ginés Gómez
Hi,

        in server.xml, in the host definition part

> <Host name="localhost" nameSip="localhost_5060" debug="10"  
> 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

Ginés

>
> 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");
>               }
> }
>
>
>
> <Server port="8005" shutdown="SHUTDOWN" debug="0">
>   <Service name="WeSIP-Standalone">
>     <Connector  
> className="org.apache.catalina.connector.http.HttpConnector"
>         port="8080" minProcessors="5" maxProcessors="75"
>         enableLookups="true" address="localhost" acceptCount="10"  
> debug="10" />
>         <Connector  
> className="com.voztele.sipservlet.connector.SipConnector"
>         minProcessors="5" maxProcessors="75"
>         addresses="10.10.45.158:5060" >
>                <ExtraProperties>
>                        <Property  
> key="com.voztele.javax.sip.SER_ADDRESS" value="10.10.45.158:5080" />
>                        <Property key="javax.sip.STACK_NAME"  
> value="app_server_one" />
>                        <Property  
> key="com.voztele.javax.sip.THREAD_POOL_SIZE" value="10" />
>                </ExtraProperties>
>     </Connector>
>  <Engine name="Standalone" defaultHost="localhost" debug="10"
>     className="com.voztele.sipservlet.core.ConvergedEngine">
>
>      <Logger className="org.apache.catalina.logger.SystemOutLogger"
>         timestamp="true"/>
>      <Mapper  
> className="org.apache.catalina.core.StandardEngineMapper"  
> protocol="HTTP/1.1"/>
>      <Mapper className="com.voztele.sipservlet.core.EngineSipMapper"  
> protocol="SIP/2.0"/>
>      <Realm  className="org.apache.catalina.realm.MemoryRealm" />
>      <Host name="localhost" nameSip="localhost_5060" debug="10"  
> appBase="webapps" unpackWARs="true"
>      port="5060" autoDeploy="true"  
> className="com.voztele.sipservlet.core.ConvergedHost">
>             <Mapper  
> className="com.voztele.sipservlet.core.SipHostMapper" protocol="SIP/
> 2.0"/>
>             <Mapper  
> className="org.apache.catalina.core.HttpHostMapper" protocol="HTTP/
> 1.1"/>
>      </Host>
>   </Engine>
> </Service>
> </Server>
>
> 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.<init>(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.<init>(JainFactories.java:
> 37)
>        at  
> com
> .voztele.sipservlet.util.JainFactories.<clinit>(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
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Problem when WESIP starts

mmarzuola
In reply to this post by mmarzuola

Hi.
I have changed the server.xml, but the error remains the same.
The host definition part now is:

<Host name="10.10.45.158" nameSip="localhost_5060" debug="10" appBase="webapps" unpackWARs="true"
      port="5060" autoDeploy="true" className="com.voztele.sipservlet.core.ConvergedHost">
             <Mapper className="com.voztele.sipservlet.core.SipHostMapper" protocol="SIP/2.0"/>
             <Mapper className="org.apache.catalina.core.HttpHostMapper" protocol="HTTP/1.1"/>
      </Host>

       
Wesip runs on a virtual machine other than opensips. It is a problem?

In the engine part:

<Engine name="Standalone" defaultHost="localhost" debug="10"
     className="com.voztele.sipservlet.core.ConvergedEngine">

and connector part:

<Connector 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

> <Host name="localhost" nameSip="localhost_5060" debug="10"  
> 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
> [hidden email]
> 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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Problem when WESIP starts

Ginés Gómez
Hi,
        you have to change it both in the name and in then nameSip  
attributes. It should work then.

Regards

Ginés

>
> Hi.
> I have changed the server.xml, but the error remains the same.
> The host definition part now is:
>
> <Host name="10.10.45.158" nameSip="localhost_5060" debug="10"  
> appBase="webapps" unpackWARs="true"
>      port="5060" autoDeploy="true"  
> className="com.voztele.sipservlet.core.ConvergedHost">
>             <Mapper  
> className="com.voztele.sipservlet.core.SipHostMapper" protocol="SIP/
> 2.0"/>
>             <Mapper  
> className="org.apache.catalina.core.HttpHostMapper" protocol="HTTP/
> 1.1"/>
>      </Host>
>
>
> Wesip runs on a virtual machine other than opensips. It is a problem?
>
> In the engine part:
>
> <Engine name="Standalone" defaultHost="localhost" debug="10"
>     className="com.voztele.sipservlet.core.ConvergedEngine">
>
> and connector part:
>
> <Connector  
> 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
>
>> <Host name="localhost" nameSip="localhost_5060" debug="10"
>> 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
>> [hidden email]
>> 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
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Problem when WESIP starts

mmarzuola
In reply to this post by mmarzuola

Hi.
The server.xml now is:

<Server port="8005" shutdown="SHUTDOWN" debug="0">
   <Service name="WeSIP-Standalone">
     <Connector className="org.apache.catalina.connector.http.HttpConnector"
         port="8080" minProcessors="5" maxProcessors="75"
         enableLookups="true" address="localhost" acceptCount="10" debug="10" />
         <Connector className="com.voztele.sipservlet.connector.SipConnector"
         minProcessors="5" maxProcessors="75"
         addresses="10.10.45.158:5060" >
                <ExtraProperties>
                        <Property key="com.voztele.javax.sip.SER_ADDRESS" value="10.10.45.158:5080" />
                        <Property key="javax.sip.STACK_NAME" value="app_server_one" />
                        <Property key="com.voztele.javax.sip.THREAD_POOL_SIZE" value="10" />
                </ExtraProperties>
     </Connector>
  <Engine name="Standalone" defaultHost="10.10.45.158" debug="10"
     className="com.voztele.sipservlet.core.ConvergedEngine">

      <Logger className="org.apache.catalina.logger.SystemOutLogger"
         timestamp="true"/>
      <Mapper className="org.apache.catalina.core.StandardEngineMapper" protocol="HTTP/1.1"/>
      <Mapper className="com.voztele.sipservlet.core.EngineSipMapper" protocol="SIP/2.0"/>
      <Realm  className="org.apache.catalina.realm.MemoryRealm" />
      <Host name="10.10.45.158" nameSip="10.10.45.158_5060" debug="10" appBase="webapps" unpackWARs="true"
      port="5060" autoDeploy="true" className="com.voztele.sipservlet.core.ConvergedHost">
             <Mapper className="com.voztele.sipservlet.core.SipHostMapper" protocol="SIP/2.0"/>
             <Mapper className="org.apache.catalina.core.HttpHostMapper" protocol="HTTP/1.1"/>
      </Host>
   </Engine>
 </Service>
 </Server>

But wesip gives always the same exception.



>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
>> [hidden email]
>> 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
> [hidden email]
> 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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Problem when WESIP starts

mmarzuola
In reply to this post by mmarzuola

I have changed also the parameter port of Host part from 5060 to 5080 as indicated by Configuration in the WeSIP site, but does not work  :( :(



>Hi.
>The server.xml now is:


 
 
 port="8080" minProcessors="5" maxProcessors="75"
 enableLookups="true" address="localhost" acceptCount="10" debug="10" />
 
 minProcessors="5" maxProcessors="75"
 addresses="10.10.45.158:5060" >
 
 
 
 
 
 
 
 className="com.voztele.sipservlet.core.ConvergedEngine">

 
 timestamp="true"/>
 
 
 
 
 port="5060" autoDeploy="true" className="com.voztele.sipservlet.core.ConvergedHost">
 
 
 
 
 
 

But wesip gives always the same exception.



>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
>> [hidden email]
>> 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
> [hidden email]
> 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
[hidden email]
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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Problem when WESIP starts

Ginés Gómez
In reply to this post by mmarzuola
Ciao Marco,

        there is problem in the Connector element. It needs two extra  
attributes: pathName="com.voztele" protocol="udp". The thing should  
end up like this

> <Connector className="com.voztele.sipservlet.connector.SipConnector"
>         minProcessors="5" maxProcessors="75"
>         addresses="10.10.45.158:5060"  pathName="com.voztele"  
> protocol="udp">



Despite those parameters come in the default configuration file  
packaged with WeSIP they were not documented in the configuration  
section in www.wesip.eu which is what probably got you wrong. I've  
just fixed that. Sorry for the inconvenience.

Regards

Ginés

>
> Hi.
> The server.xml now is:
>
> <Server port="8005" shutdown="SHUTDOWN" debug="0">
>   <Service name="WeSIP-Standalone">
>     <Connector  
> className="org.apache.catalina.connector.http.HttpConnector"
>         port="8080" minProcessors="5" maxProcessors="75"
>         enableLookups="true" address="localhost" acceptCount="10"  
> debug="10" />
>         <Connector  
> className="com.voztele.sipservlet.connector.SipConnector"
>         minProcessors="5" maxProcessors="75"
>         addresses="10.10.45.158:5060" >
>                <ExtraProperties>
>                        <Property  
> key="com.voztele.javax.sip.SER_ADDRESS" value="10.10.45.158:5080" />
>                        <Property key="javax.sip.STACK_NAME"  
> value="app_server_one" />
>                        <Property  
> key="com.voztele.javax.sip.THREAD_POOL_SIZE" value="10" />
>                </ExtraProperties>
>     </Connector>
>  <Engine name="Standalone" defaultHost="10.10.45.158" debug="10"
>     className="com.voztele.sipservlet.core.ConvergedEngine">
>
>      <Logger className="org.apache.catalina.logger.SystemOutLogger"
>         timestamp="true"/>
>      <Mapper  
> className="org.apache.catalina.core.StandardEngineMapper"  
> protocol="HTTP/1.1"/>
>      <Mapper className="com.voztele.sipservlet.core.EngineSipMapper"  
> protocol="SIP/2.0"/>
>      <Realm  className="org.apache.catalina.realm.MemoryRealm" />
>      <Host name="10.10.45.158" nameSip="10.10.45.158_5060"  
> debug="10" appBase="webapps" unpackWARs="true"
>      port="5060" autoDeploy="true"  
> className="com.voztele.sipservlet.core.ConvergedHost">
>             <Mapper  
> className="com.voztele.sipservlet.core.SipHostMapper" protocol="SIP/
> 2.0"/>
>             <Mapper  
> className="org.apache.catalina.core.HttpHostMapper" protocol="HTTP/
> 1.1"/>
>      </Host>
>   </Engine>
> </Service>
> </Server>
>
> But wesip gives always the same exception.
>
>
>
>> 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
>>> [hidden email]
>>> 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
>> [hidden email]
>> 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
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Problem when WESIP starts

mmarzuola
In reply to this post by mmarzuola

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
>> [hidden email]
>> 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
> [hidden email]
> 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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users