dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Error websocket in java

  1. #1
    Join Date
    May 2018
    Posts
    2

    Error websocket in java

    Hello,

    I using websocket in java, i run in tomcat 8 and errror with message:

    Code:
    org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
    	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
    	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585)
    	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794)
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    	at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.IllegalArgumentException: The path [/websocketmms/{kind}/{uname}/] contains one or more empty segments which are is not permitted
    	at org.apache.tomcat.websocket.server.UriTemplate.<init>(UriTemplate.java:72)
    	at org.apache.tomcat.websocket.server.WsServerContainer.addEndpoint(WsServerContainer.java:199)
    	at org.apache.tomcat.websocket.server.WsServerContainer.addEndpoint(WsServerContainer.java:278)
    	at org.apache.tomcat.websocket.server.WsSci.onStartup(WsSci.java:120)
    	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5244)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    	... 10 more
    I have add lib javax.websocket-api-1.1 and tyrus-standalone-client-1.9 in project

  2. #2
    Join Date
    Nov 2018
    Posts
    3

    Re: Error websocket in java

    What does this tell you?

    > The path [/websocketmms/{kind}/{uname}/] contains one or more empty segments which are is not permitted

  3. #3
    Join Date
    May 2018
    Posts
    2

    Re: Error websocket in java

    Quote Originally Posted by salem_c View Post
    What does this tell you?

    > The path [/websocketmms/{kind}/{uname}/] contains one or more empty segments which are is not permitted
    I fix with:

    /websocketmms/{kind}/{uname}/ to /websocketmms/{kind}/{uname} and success

    Thanks!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)