Luc14860 / jwebsocket

Automatically exported from code.google.com/p/jwebsocket
0 stars 0 forks source link

Can't loadup TCPEngine on startup #121

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Grabbed 0.11 from trunk
2. Used jWebSocketServer-Bundle-0.11.jar in lib folder
3. Servlet context listener load fails with
Initializing jWebSocketServer
2011-03-03 08:41:03,752 DEBUG - AbstractJWebSocketInitializer: Logging 
settings: appender: console, filename: jWebSocket.log, level: debug, 
buffersize: 65536, pattern: %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p - %C{1}: %m%n
2011-03-03 08:41:03,769 DEBUG - AbstractJWebSocketInitializer: Starting 
jWebSocket Server Sub System...
2011-03-03 08:41:03,771 DEBUG - JWebSocketFactory: Starting jWebSocket Server 
Sub System...
2011-03-03 08:41:03,773 DEBUG - AbstractJWebSocketInitializer: Instantiating 
engine...
2011-03-03 08:41:03,775 DEBUG - AbstractJWebSocketInitializer: Engine 
'org.jwebsocket.tcp.engines.TCPEngine' not yet in classpath.
2011-03-03 08:41:03,777 DEBUG - JWebSocketXmlConfigInitializer: Loading from 
the jar file 'org.jwebsocket.tcp.engines.TCPEngine'  
2011-03-03 08:41:03,778 ERROR - JWebSocketXmlConfigInitializer: jWebSocket 
engine class org.jwebsocket.tcp.engines.TCPEngine could not be loaded.
2011-03-03 08:41:03,825 [main] ERROR [localhost].[/websocket]  - Exception 
sending context initialized event to listener instance of class 
websocket.JWebSocketServletContextListener
java.lang.NullPointerException

What is the expected output? What do you see instead?
Expected TCPEngine to load....seems like the package moved and there is still a 
ref to the old package namespace somewhere.....checked the jWebSocket.xml and 
it was correct so it must be somewhere else. 
<engine>
            <name>org.jwebsocket.tcp.TCPEngine</name>
            <id>tcp0</id>
            <jar>jWebSocketTCPEngine-0.11.jar</jar>
            <port>8787</port>
            <sslport>9797</sslport>
            <!-- these domains are accepted by the engine listening on the above mentioned port -->
            <domains>
                <domain>jwebsocket.org</domain>
                <domain>jwebsocket.com</domain>
            </domains>
            <!-- default session timeout 1h, max timeout currently 1 hour -->
            <timeout>0</timeout>
            <!--
                maximum size of the data packet that the engine will read,
                if the frame size is larger than this the connection will be closed.
            -->
            <maxframesize>1048840</maxframesize>
        </engine>

What version of the product are you using? On what operating system? 0.11

Please provide any additional information below.

Original issue reported on code.google.com by rga...@gmail.com on 3 Mar 2011 at 2:50

GoogleCodeExporter commented 9 years ago
Had the same problem. The package in v0.11 for TCPEngine is 
'org.jwebsocket.tcp.TCPEngine' not 'org.jwebsocket.tcp.engines.TCPEngine'. 
Correct the corresponding entry in jwebsocket.xml and it'll load.

Original comment by vs8...@gmail.com on 11 Apr 2011 at 7:13