I'm having one of those infamous "IT WTH?!" moments. You know, the 
kind where "you have no idea what you did to break it"?  I have no 
idea what I did to break this apparently fragile as hell project 
setup. 

I'm using Eclipse's "Servers view" functionality to startup Tomcat. 
Everything worked fine for say two months until suddenly I found that 
I was unable to shutdown Tomcrap. No idea why, maybe I started/
stopped too quick or something, but when I tried to shut it down, 
Eclipse just sat there for awhile and it timed out: "unable to 
shutdown server" or whatever rubbish.

Eclipse restart didn't help, I think at that point I was getting 
this error message (instead of a timeout). So I figured I'd reboot - 
still NO good. Still getting this stupid error message. Uhoh. I have 
to think about this? @#$%!

Apparently I made a mistake trusting this "magic" setup to work 
without fully understanding HOW it works. (The Eclipse docs are 
worthless for understanding what it's doing.) Instead of deploying 
the application to Tomcat's webapps directory in it's normal 
installed location, how a normal person would design this feature, it 
deploys everything into some bizzare folder in your workspace 
metadata and somehow it just works. (\EclipseWS\.metadata\.plugins
\org.eclipse.wst.server.core\tmp0\wtpwebapps) (HUH? WTH? Why?)


Sorry for sounding pissed, but I am - I've wasted basically two days 
on this trash with no idea where to go from here. Do I re-install 
Tomcat? Eclipse? Setup my workspace again? Why should I have to do 
all that? This is the kind of stuff in IT that makes you want to say 
"screw it all" and just go into management so the other poor suckers 
have to lose their hair doing stuff like this! lol

I doubt anyone can help with this bizzare problem (it's probably more 
of an Eclipse issue but it only spews this error when I deploy my 
Flex project!) but here's the console output. Note the 
NullPointerException within NioEndpoint:


Sep 14, 2008 1:38:24 AM 
org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} 
Setting property 'source' to 'org.eclipse.jst.j2ee.server:Rtk' did 
not find a matching property.
Sep 14, 2008 1:38:24 AM org.apache.catalina.core.AprLifecycleListener 
init
INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the 
java.library.path: C:\Program Files\Java\jre1.6.0_05\bin;.;C:\Windows
\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java
\jre1.6.0_05\bin\client;C:\Program Files\Java\jre1.6.0_05\bin;C:
\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
Sep 14, 2008 1:38:24 AM org.apache.tomcat.util.net.NioSelectorPool 
getSharedSelector
INFO: Using a shared selector for servlet write/read
Sep 14, 2008 1:38:24 AM org.apache.coyote.http11.Http11NioProtocol 
init
INFO: Initializing Coyote HTTP/1.1 on http-9000
Sep 14, 2008 1:38:24 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 521 ms
Sep 14, 2008 1:38:25 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 14, 2008 1:38:25 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
Sep 14, 2008 1:38:25 AM org.apache.catalina.core.StandardContext 
addApplicationListener
INFO: The listener "flex.messaging.HttpFlexSession" is already 
configured for this context. The duplicate definition has been 
ignored.
Started RtkBootstrapService
Sep 14, 2008 1:38:26 AM org.apache.tomcat.util.net.NioEndpoint 
setSocketOptions
SEVERE: 
java.lang.NullPointerException
        at org.apache.tomcat.util.net.NioEndpoint.setSocketOptions
(NioEndpoint.java:1011)
        at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run
(NioEndpoint.java:1204)
        at java.lang.Thread.run(Unknown Source)
Sep 14, 2008 1:38:26 AM org.apache.coyote.http11.Http11NioProtocol 
start
INFO: Starting Coyote HTTP/1.1 on http-9000
Sep 14, 2008 1:38:26 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Sep 14, 2008 1:38:26 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/93  config=null
Sep 14, 2008 1:38:26 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1725 ms

Reply via email to