That seems to work, thanks.
However, I now have the following problem:
I create a new SipAppContext as follows:
sipContext = new SipAppContext();
which results in the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jetty/webapp/Descriptor
at org.cipango.server.sipapp.SipAppContext.<init>(SipAppContext.java:163)
at com.ubicity.platform.Ubicity.<init>(Ubicity.java:59)
at com.ubicity.platform.Ubicity.main(Ubicity.java:90)
The offending code in the SipAppContext constructor seems to be:
_metaData = new MetaData();
However, since I'm using embedded Jetty, I don't have a webapp descriptor anywhere. Any suggestions for how to get around this?
Thanks,
Chris
-----Original Message-----
From:
cipang...@googlegroups.com [mailto:
cipang...@googlegroups.com] On Behalf Of Nicolas
Sent: Tuesday, April 23, 2013 12:11 AM
To:
cipang...@googlegroups.com
Subject: Re: [cipango-users] Handling SIP and HTTP requests in the same server
Chris,
This is possible, this is the case when Cipango distribution is used.
You could do it with the following code snippet:
SipServer sipServer = new SipServer();
Server server = new Server();
sipServer.setServer(server); // This will add sipServer as a Jetty server bean
// TODO configure server and sip server
server.start(); // As SipServer is a bean, starting server will also start sip server
Regards,
Nicolas
Le 22/04/2013 22:51, Chris Lauwers a écrit :
> I'm building a server that handles both SIP and HTTP requests. I assume I'll need to instantiate both a SipServer object and a (Jetty) Server object. Is that possible? Are there any code examples that show how to do this correctly?
>
> thanks,
>
> Chris
>
--
You received this message because you are subscribed to the Google Groups "cipango-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
cipango-user...@googlegroups.com.
To post to this group, send email to
cipang...@googlegroups.com.
Visit this group at
http://groups.google.com/group/cipango-users?hl=en-US.
For more options, visit
https://groups.google.com/groups/opt_out.