[OpenSIPS-Users] Problem when WESIP starts
Ginés Gómez
gines at voztele.com
Tue Feb 3 16:53:11 CET 2009
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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list