Tomcat won't be discovered

In my environment a Tomcat 7 installation on Ubuntu 14.04. won't be discovered. In the first step I just want to test basic Tomcat monitoring, so BeanSpy is not installed on the system.
The following Tomcat packages are installed on the system:
joachimm@ubu-001-127:~$ dpkg -l *tomcat*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                          Version             Architecture        Description
+++-=============================-===================-===================-===============================================================
un  libtomcat6-java               <none>              <none>              (no description available)
ii  libtomcat7-java               7.0.52-1ubuntu0.1   all                 Servlet and JSP engine -- core libraries
ii  tomcat7                       7.0.52-1ubuntu0.1   all                 Servlet and JSP engine
ii  tomcat7-admin                 7.0.52-1ubuntu0.1   all                 Servlet and JSP engine -- admin web applications
ii  tomcat7-common                7.0.52-1ubuntu0.1   all                 Servlet and JSP engine -- common files
ii  tomcat7-docs                  7.0.52-1ubuntu0.1   all                 Servlet and JSP engine -- documentation
ii  tomcat7-examples              7.0.52-1ubuntu0.1   all                 Servlet and JSP engine -- example web applications
un  tomcat7-user                  <none>              <none>              (no description available)
The following JEE Management Packs are installed:
PS > Get-SCOMManagementPack -Name Microsoft.JEE* | Select Sealed,Name,DisplayName,Version | Sort Name | ft -a
Sealed Name                            DisplayName                               Version   
  True Microsoft.JEE.JBoss.4           JEE JBoss 4.x Application Server          7.3.2135.0
  True Microsoft.JEE.JBoss.5           JEE JBoss 5.x Application Server          7.3.2135.0
  True Microsoft.JEE.JBoss.6           JEE JBoss 6.x Application Server          7.3.2135.0
  True Microsoft.JEE.JBoss.Library     JEE JBoss Application Server Library      7.3.2135.0
  True Microsoft.JEE.Library           JEE Application Server Library            7.3.2135.0
  True Microsoft.JEE.Templates.Library JEE Templates Library                     7.3.2135.0
  True Microsoft.JEE.Tomcat.5          JEE Tomcat 5.x Web Application Server     7.3.2135.0
  True Microsoft.JEE.Tomcat.6          JEE Tomcat 6.x Web Application Server     7.3.2135.0
  True Microsoft.JEE.Tomcat.7          JEE Tomcat 7.x Web Application Server     7.3.2135.0
  True Microsoft.JEE.Tomcat.Library    JEE Tomcat Web Application Server Library 7.3.2135.0
When looking into the discovery rule "Seed of a configuration for Tomcat 7.x application server on Unix/Linux" there's a filter for the attribute MajorVersion:
  <TargetSystem>$Target/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
  <Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_Application_Server?__cimnamespace=root/scx</Uri>
  <Filter />
  <SplitItems>true</SplitItems>
  <Interval>14400</Interval>
  <SyncTime />
  <FilterProperty1>//*[local-name()="Type"]</FilterProperty1>
  <FilterValue1>Tomcat</FilterValue1>
  <FilterProperty2>//*[local-name()="MajorVersion"]</FilterProperty2>
  <FilterValue2>7</FilterValue2>
On my system the attribute MajorVersion is empty though:
joachimm@ubu-001-127:~$ pushd /opt/microsoft/scx/bin/tools/
/opt/microsoft/scx/bin/tools ~ /opt/microsoft/scx/bin/tools ~
joachimm@ubu-001-127:/opt/microsoft/scx/bin/tools$ . ./setup.sh
joachimm@ubu-001-127:/opt/microsoft/scx/bin/tools$ ./omicli ei root/scx SCX_Application_Server
instance of SCX_Application_Server
    Caption=SCX Application Server
    Description=Represents a JEE Application Server
    [Key] Name=/var/lib/tomcat7/
    HttpPort=8080
    HttpsPort=
    Port=
    Protocol=
    Version=
    MajorVersion=
    DiskPath=/var/lib/tomcat7/
    Type=Tomcat
    Profile=
    Cell=
    Node=
    Server=
    IsDeepMonitored=false
    IsRunning=true
Any idea why the MajorVersion attribute is empty and how to fix this? 
Some additional information:
Management Server:
SCOM 2012 R2 Update Rollup 3
joachimm@ubu-001-127:/opt/microsoft/scx/bin/tools$ ./scxadmin -version
Version: 1.5.1-116 (Labeled_Build - 20140604L)
joachimm@ubu-001-127:/opt/microsoft/scx/bin/tools$ ./omicli id
instance of OMI_Identify
    [Key] InstanceID=2FDB5542-5896-45D5-9BE9-DC04430AAABE
    SystemName=ubu-001-127
    ProductName=OMI
    ProductVendor=Microsoft
    ProductVersionMajor=1
    ProductVersionMinor=0
    ProductVersionRevision=6
    ProductVersionString=1.0.6.5
    Platform=LINUX_X86_64_GNU
    OperatingSystem=LINUX
    Architecture=X86_64
    Compiler=GNU
    ConfigPrefix=GNU
    ConfigLibDir=/opt/microsoft/scx/lib
    ConfigBinDir=/opt/microsoft/scx/bin
    ConfigIncludeDir=/opt/microsoft/scx/include
    ConfigDataDir=/opt/microsoft/scx/share
    ConfigLocalStateDir=/var/opt/microsoft/scx
    ConfigSysConfDir=/etc/opt/microsoft/scx/conf
    ConfigProviderDir=/etc/opt/microsoft/scx/conf
    ConfigLogFile=/var/opt/microsoft/scx/log/omiserver.log
    ConfigPIDFile=/var/opt/microsoft/scx/run/omiserver.pid
    ConfigRegisterDir=/etc/opt/microsoft/scx/conf/omiregister
    ConfigSchemaDir=/opt/microsoft/scx/share/omischema
    ConfigNameSpaces={root-omi, root-scx}
joachimm@ubu-001-127:/opt/microsoft/scx/bin/tools$ ./omicli ei root/scx SCX_OperatingSystem
instance of SCX_OperatingSystem
    Caption=Ubuntu 14.04 (x86_64)
    Description=Ubuntu 14.04 (x86_64)
    [Key] Name=Linux Distribution
    EnabledState=5
    RequestedState=12
    EnabledDefault=2
    [Key] CSCreationClassName=SCX_ComputerSystem
    [Key] CSName=ubu-001-127.contoso.local
    [Key] CreationClassName=SCX_OperatingSystem
    OSType=36
    OtherTypeDescription=3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014 x86_64
    Version=14.04
    LastBootUpTime=20140925103421.004559+000
    LocalDateTime=20140926090957.864558+000
    CurrentTimeZone=120
    NumberOfLicensedUsers=0
    NumberOfUsers=2
    NumberOfProcesses=236
    MaxNumberOfProcesses=7374
    TotalSwapSpaceSize=1044476
    TotalVirtualMemorySize=1846144
    FreeVirtualMemory=1287796
    FreePhysicalMemory=248180
    TotalVisibleMemorySize=801668
    SizeStoredInPagingFiles=1044476
    FreeSpaceInPagingFiles=1039616
    MaxProcessMemorySize=0
    MaxProcessesPerUser=3687
    OperatingSystemCapability=64 bit
    SystemUpTime=81336
Thanks,
Joachim

Hi Joachim,
There is a known issue in which Tomcat installed from a package (deb / rpm) does not discover version information. This issue has been corrected and will be released in the UR4 version of the OpsMgr UNIX/Linux agents.
The work around is to insert the RELEASE-NOTES file from a source distribution into the installation directory of the tomcat install. The file for a tomcat 7.0.52 installation can be found here
http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.52/
Anurag Gupta
Open Source Technology Center

Similar Messages

  • Tomcat won't work after XP SP2 install?? help, please

    Help please!
    Hi, I installed a fresh JDK (1_5_0_02-windows-i586-p), JRE (1.5.0_01), J2EE (1.4_2005Q1), Apache web server (2.0.53-win32-x86-no_ssl) and Tomcat (5.5.7) . Everything seemed to work. I installed XP Service Pack 2 and now Tomcat won't compile JSPs. (I don't know if the SP2 install was the cause).
    The service Starts okay, but when I try to hit a jsp, Tomcat takes over my processor (at like 80%) and it starts writing to the stdout log (stdout was set to auto), repeatedly. After being up for like 20 min the log was well over 1 GB in size. It showed the below exceptions repeating ad infinitum.
    I uninstalled and reinstalled Tomcat, repaired the Apache installation (that shouldn't matter, should it?), and I am going to try reinstalling JDK/JRE/J2EE, but does anyone have any ideas of how I can fix this?
    Mar 13, 2005 9:15:13 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Mar 13, 2005 9:15:13 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 984 ms
    Mar 13, 2005 9:15:13 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Mar 13, 2005 9:15:13 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
    Mar 13, 2005 9:15:13 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Mar 13, 2005 9:15:14 PM org.apache.catalina.core.ApplicationContext log
    INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    Mar 13, 2005 9:15:14 PM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    Mar 13, 2005 9:15:14 PM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    Mar 13, 2005 9:15:15 PM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    Mar 13, 2005 9:15:15 PM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    Mar 13, 2005 9:15:15 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Mar 13, 2005 9:15:15 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
    SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored exception: java.net.SocketException: select failed
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:406)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:70)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    Mar 13, 2005 9:15:15 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/32 config=null
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM o

    Is it possible this is resulting from classpaths not
    being setup correctly? Could someone please tell me
    what my CLASSPATH and PATH enviro variables should be
    fod JDK, J2EE, JRE, etc...? Both in general and
    specifically to be found by Tomcat. They are
    installed in:
    C:\Program Files\Java\jdk1.5.0_02
    C:\Program Files\Java\jre1.5.0_02
    C:\Sun\AppServer
    Thanks!Could be.
    I think installing anything in directories whose path has spaces in it is a terrible idea. I'd reinstall the JDK to c:\SDKs or something like that.
    There's no need for a system CLASSPATH - ever. You shouldn't have one. Use -classpath when you run javac.exe and java.exe to set the CLASSPATH. Tomcat has its own class loaders. You should deploy your Web apps in WAR files - they'll have the CLASSPATH set for you that way.
    Your PATH should include the JAVA_HOME\bin.
    set JAVA_HOME=C:\SDKs
    set CATALINA_HOME=c:\Tools\Tomcat, or wherever you installed Tomcat.
    %

  • Tomcat  won't display index.jsp

    Hello, I've been working in a webapp the last couple of weeks, and I am new with tomcat and JSP technology, yesterday I try to display the index.jsp in http://localhost:8180 and it didn't display it .
    I retart tomcat with
    sudo /etc/init.d/tomcat5.5 restartand it give me an OK but it won't show up in my browser, I don't know how to fix it. I was editing index.jsp couple of days ago and I erase the content of the folder "work" in tomcat, but it worked ( display index.jsp ) , but I don't know if it is related, I haven't done much since then . So I am pretty much lost. Can someone help me please??

    The contents of the work folder get recreated if they're deleted so that can't be the problem.
    Is anything else working? Is only the index.jsp not working? Also, the index.jsp seems to be hardcoded, modifying it will not have any effect.
    If nothing is woking, I suggest you consult your logs, under $CATALINA_HOME/logs and go through them to see what's happening. Post the contents here if you think there's something wrong.

  • HT1153 Keyboard won't enter discover mode

    My keyboard will not enter discover mode.

    but it won't pair to my new MBP
    Go to   /Library/Preferences
    Move the com.apple.Bluetooth.plist file to the Trash.
    Restart the MBPro.
    Open System Preferencees > Bluetooth and try to "pair" the keyboard.

  • Tomcat won't compile jsps if they are in any directory other than root

    I'm running a new instance of Tomcat, and can't get a simple jsp file to compile, if it's in any directory other than the root.
    The jsp is:
    <%@ page import="test.Simple" %>
    <%@ page contentType="text/html" language="java" %>
    <html>
    <body><%=Simple.makeText()%>
    </body>
    </html>
    and the Simple class is:
    package test;
    import java.util.Random;
    public class Simple {
    public static String makeText() {
    return String.valueOf(new Random().nextInt());
    When I place the jsp in the root directory, it works fine.
    When I place the jsp in any subfolder (eg: /debug/1b.jsp), I get the following error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    Only a type can be imported. test.Simple resolves to a package
    An error occurred at line: 14 in the jsp file: /1b.jsp
    Generated servlet error:
    Simple cannot be resolved
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    Only a type can be imported. test.Simple resolves to a package
    An error occurred at line: 14 in the jsp file: /1b.jsp
    Generated servlet error:
    Simple cannot be resolved
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Here's the server info:
    Server version: Apache Tomcat/5.5.25
    Server built: Sep 24 2007 11:31:18
    Server number: 5.5.25.0
    OS Name: Linux
    OS Version: 2.6.20.20-071008a
    Architecture: amd64
    JVM Version: 1.5.0_10-b03
    JVM Vendor: Sun Microsystems Inc.
    Using fedora core 6.
    I looked into the Tomcat work directory, and it looked as if the jsp was successfully converted to a java file. I'm not sure where to look, as all the settings are defaults.
    Any help is greatly appreciated. Thanks

    :D :D :D...
    My friend it'd be great idea if you can find google tutorial on TOMCAT/web application basics
    anyways coming back to your problem
    whenever,an application is deployed on tomcat a new folder is being created at the following location %CATILINA_HOME%/webapp/ with respect to application name.
    Therefore try to maintain an architecture like the one below if you programmin any web application.
    %CATILINA_HOME%/webapp/<applicationName>/(place all your .jsp files)
    -----------------%CATILINA_HOME%/webapp/<applicationName>/META_INF/(Place your mainfest files & context specific configuration files)
    -----------------%CATILINA_HOME%/webapp/<applicationName>/WEB_INF/ (Genrally used to save secured files which cannot be access directly and always make sure you prepare a web.xml file associated to the application)
    -----------------%CATILINA_HOME%/webapp/<applicationName>/WEB_INF/lib (place where all your .jar file libraries are being placed)
    -----------------%CATILINA_HOME%/webapp/<applicationName>/WEB_INF/classes (place where all your .class,resource files are being placed as the pacakage structure you have choosed in)
    If this doesnot work even if you ensuring everything's right.Reading through tutorials & speding time on finding resources by yourself would be a great idea.
    I hope there are no hard issue on this. :)
    REGARDS,
    RaHuL

  • Tomcat won't "find" my servlet

    After an afternoon of studying various documentation and downloading stuff, I managed to get the Java SDK and Tomcat running. I've hit a problem though (aside from Tomcat not starting up as described in the documentation - I could not find startup.sh at all, but I found an executable in /usr/bin that seemed to do the job quite nicely). I put a compiled servlet (a hello world thing copied from an O'Reilly book) in the right place, started Tomcat and accessed http://localhost:8080/servlet/HelloWorld . I got this error:
    HTTP Status 404 - /servlet/HelloWorld
    type Status report
    message /servlet/HelloWorld
    description The requested resource (/servlet/HelloWorld) is not available.
    Apache Tomcat/4.1
    I would be grateful if anyone would tell me what I am doing wrong.
    Thanks :)

    I have had similar problems and what I found was pretty annoying feature of Tomcat, that is I was using log4j in my servlet but I didn�t put log4j.jat in {context}\WEB-INF\lib folder. Tomcat didn�t indicate anything related to the missing 3-third party library, instead it was complaining about some EOFException.
    Another thing to look for is making sure that the URL specified in browser matches your web.xml mapping that is:
    http::/localhost/servlet/blah should have corresponding item in web.xml file like this:
    <servlet>
    <servlet-name>Servlet_Blah</servlet-name>
    <display-name>Servlet Blah</display-name>
    <description>Default configuration created for servlet.</description>
    <servlet-class>BlahServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Servlet_Blah</servlet-name>
    <url-pattern>/servlet/blah</url-pattern>
    </servlet-mapping>
    Janusz

  • Tomcat won�t start on Server

    Hi !!!
    I�m working on SUNOS 5.9 and I can�t start tomcat I allways get this after executing startup.sh command:
    Using CATALINA_BASE: /home/atw11vc2/tomcat/apache-tomcat-6.0.14
    Using CATALINA_HOME: /home/atw11vc2/tomcat/apache-tomcat-6.0.14
    Using CATALINA_TMPDIR: /home/atw11vc2/tomcat/apache-tomcat-6.0.14/temp
    Using JRE_HOME: /home/atw11ux8/local/jdk1.5.0_08
    I checked the processes running, there is no tomcat or java process running. Any Ideas?
    thanks infront

    ok, this is not the right place to ask this question.
    Use a special Java / Tomcat forum.
    Are the any other error messages / warnings on your screen when you run startup.sh ?
    Check tomcat's log files catalina.out and localhost_log.<date>.txt for errors and warnings.
    If tomcat isn't running the reason is reported in on of these logs.
    Normally you can find the log files in <TOMCAT_HOME>/logs.

  • BT won't discover anything

    Hello guys, I've been trying since yesterday to pair my iPod Touch 4 32 gb with my Sennheiser MM400 Headsets but so far nothing happens. I try discovering devices and the iPod won't actually discover anything!!!! I try discovering the iPod with my cellphone and it works... The headsets are not a problem since I have already paired them with my cellphone.
    Any solutions please? I bought this iPod so far away, now I am in Venezuela... so I do not what to do since we don't have Apple Stores here. Thanks

    Hello, thanks for answering, I've checked the page but it seems ok, I mean Sennheiser MM 400 should be compatible according to the profiles they support http://www.sennheiser.com/sennheiser/homeen.nsf/root/private_headsets_mobile_music502888 .
    Is there anyone out there having issues with iPod Touch 4G Bluetooth? Thanks !

  • META-INF/context.xml, Tomcat, META-INF/services

    I presently have a Netbeans project laid out like this:
    src
    src\java
    web
    web\META-INF
    web\META-INF\context.xml
    etc. Tomcat finds that META-INF/context.xml OK and does what I expect with it.
    I have recently added something that is loaded by java.util.ServiceLoader, which requires a META-INF/services/x.y.z file containing the name(s) of the classes that implement x.y.z. After deployment, my webapp's ServiceLoader doesn't find it, because in the target it isn't in WEB-INF/classes/META-INF/services/x.y.z. If I put it into src/java/META-INF/services/x.y.z it works correctly, as it then ends up in the right place. However I'm now concerned that either Tomcat won't find the context.xml if I put it in the same place under src, because it would then not be in /META-INF/context.xml but rather /WEB-INF/classes/META-INF/context.xml, which in turn would mean that I would then need two META-INF directories. I'm about to test that conjecture about Tomcat finding it under WEB-INF/classes/META-INF, but I'm wondering whether I'm doing something basically wrong in the first place here.

    You seem to think that you can have only one META-INF directory; this is simply not true. Keep both your META-INF directories and put the files where they are expected. Yay for using overlapping names :/

  • Tomcat 5.0.18 Servlets

    I am new to JSP, installed J2SDK1.4.2_03 and Tomcat 5.0.18. I am able to get the jsp pages to work and also view the sample servlet examples. But I am having a hard time getting my servlets to work. I have
    set the
    ClassPath to C:\Jakarta\Jakarta-tomcat-5.0.18\common\lib\servlet-api.jar
    My directory structure is
    webapps\Myexamples\WEB_INF\CLASSES
    WEB-INF has the web.xml doc, and the Classes and lib folders
    Classes has the class called DontPanic, and the java file DontPanic
    the url I typed is
    http://localhost:8080/Myexamples/servlet/DontPanic
    I get an error message source file not found.
    Please help!!!!!!
    Lakshmi

    ClassPath to
    C:\Jakarta\Jakarta-tomcat-5.0.18\common\lib\servlet-api
    jarThis is worthless at runtime. Tomcat ignores your system CLASSPATH environment variable. It uses its own CLASSPATH at runtime. You must include the servlet-api.jar in your CLASSPATH when you compile. I do it by using the -classpath option. (Actually I use Ant to build Web apps.)
    >
    My directory structure is
    webapps\Myexamples\WEB_INF\CLASSES
    WEB-INF has the web.xml doc, and the Classes and lib
    folders
    Classes has the class called DontPanic, and the java
    file DontPanic
    So your serlvet DontPanic.class file is in webapps/Myexamples/WEB-INF/classes. (Not an underscore in WEB_INF, it's a hyphen WEB-INF.)
    Tomcat won't deal with a class that's not in a package. You should put a package statement at the top of your servlet .java file and make sure that it's compiled into that directory in your WEB-INF/classes.
    I'm assuming that you've got the servlet mapping in the web.xml properly. You should be mapping your servlet class DontPanic to a URL mapping /DontPanic.
    the url I typed is
    http://localhost:8080/Myexamples/servlet/DontPanic
    After you've changed your WEB_INF to WEB-INF, try this URL:
    http://localhost:8080/Myexamples/DontPanicAre there any messages in the Tomcat logs that tell you anything? - MOD

  • Tomcat 5.0 & JavaBean

    I'm getting in trouble with Tomcat & JavaBean.
    1) I've installed Tomcat 5.0 in the following directories:
    "C:\Programmi\Apache Software Foundation\Tomcat 5.0"
    2) I've started Tomcat and I tried it in "http://localhost:8080". Tomcat Web Server works perfectly.
    3) I've created the following simple JavaBean (prova.java). It do nothing. I've compiled it (using JcreatorLE ide) and I copied files in the following directory:
    "C:\Programmi\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\ServiceDiscovery\WEB-INF\classes"
    4) prova.java 's code is very simple:
    public class prova
         public prova()
    5) Under the main Tomcat's directory ("C:\Programmi\Apache Software Foundation\Tomcat 5.0\webapps\ROOT") I've created a new directory ("ServiceDiscovery"). In this directory I've copied the "WEB-INF" directory which was in the Tomcat's main directory. The current directory state is:
    C:\Programmi\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\ServiceDiscovery
    |
    +--- WEB-INF (directory)
    | |
    | +--- classes (directory)
    | | |
    | | +--- org\apache\jsp\index_jsp.class
    | | |
    | | +--- prova.java
    | | |
    | | +--- prova.class
    | |
    | +--- lib (directory)
    | |
    | +--- web.xml
    |
    +--- index.jsp
    5) I've edited the following script at the beginning (first line) of index.jsp:
    "<jsp:useBean id="prova" class="prova" scope="session" />"
    6) When I open Internet Explorer at the URL "http://localhost:8080/ServiceDiscovery", Tomcat server reply with this error message:
    org.apache.jasper.JasperException: /ServiceDiscovery/index.jsp(3,0) The value for the useBean class attribute provami.prova is invalid.
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:376)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1217)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3261)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    I don't understand what's going wrong? Something in my script? Something in my JavaBean? Something in Tomcat configuration?
    Please help me finding a solution!

    You shouldn't install any s'ware to a directory whose name contains spaces. I'd move Tomcat out of those directories if I were you.
    3) I've created the following simple JavaBean
    (prova.java). It do nothing. I've compiled it (using
    JcreatorLE ide) and I copied files in the following
    directory:
    "C:\Programmi\Apache Software Foundation\Tomcat
    5.0\webapps\ROOT\ServiceDiscovery\WEB-INF\classes"This is a bad idea. Create a context for your own Web app by creating a directory under TOMCAT_HOME/webapps and put your stuff under that directory. Using ROOT isn't a good practice, IMO. Learn how to do it properly:
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html
    >
    4) prova.java 's code is very simple:
    public class prova
    public prova()
    }Add a package statement to your JavaBean. Tomcat won't deal with servlets or JavaBeans that aren't in a package. The default package is insufficient.
    >
    5) Under the main Tomcat's directory
    ("C:\Programmi\Apache Software Foundation\Tomcat
    5.0\webapps\ROOT") I've created a new directory
    ("ServiceDiscovery"). In this directory I've copied
    the "WEB-INF" directory which was in the Tomcat's main
    directory. The current directory state is:
    C:\Programmi\Apache Software Foundation\Tomcat
    5.0\webapps\ROOT\ServiceDiscovery
    |
    +--- WEB-INF (directory)
    | |
    | +--- classes (directory)
    | | |
    | | +--- org\apache\jsp\index_jsp.class
    | | |
    | | +--- prova.java
    | | |
    | | +--- prova.class
    | |
    | +--- lib (directory)
    | |
    | +--- web.xml
    |
    +--- index.jsp
    I'd still recommend that each Web app have its own context. Putting your stuff in the Tomcat ROOT context is a bad idea. Better to learn a good habit now.
    5) I've edited the following script at the beginning
    (first line) of index.jsp:
    "<jsp:useBean id="prova" class="prova" scope="session"
    />"
    And how did that object get into session scope?
    6) When I open Internet Explorer at the URL
    "http://localhost:8080/ServiceDiscovery", Tomcat
    server reply with this error message:
    org.apache.jasper.JasperException:
    /ServiceDiscovery/index.jsp(3,0) The value for the
    useBean class attribute provami.prova is invalid.You've got a few problems. Add a package for starters. Reinstall Tomcat to a directory without spaces in its name. Create a new context for your Web app. Then come back if it still doesn't work.

  • Oracle 9i and Tomcat JSP

    hi all,
    i just installed oracle 9i and i'm having some issues with running my existing JSP on tomcat. basically tomcat won't start!!
    the exception on starting tomcat that i get is
    "Address in use: JVM_Bind"
    obviously 9i has played with my java vm somewhere and i can't figure out where. is there somewhere in 9i that i can configure the jvm used (or in tomcat even??) ?? some other solution perhaps.
    if anyone has anything at all to help me out it would be most appreciated. thanks.
    Takis

    Hi we have a similar problem.
    Oracle have a service PaginServer, that use a the port 80.
    We shut down this service and it work.
    i hope it help

  • JSP+RMI = socket leak (with tomcat 5)

    Tried this in the RMI forum, no answer, so let's try here...
    When I use RMI from a JSP servlet, I have a "socket leak" problem. When I create an RMI unicast remote object, the RMI library (of course) opens up a server/listening socket. In a normal application, I can unbind the remote object, but then the next object I create will re-use the same server socket, so the server socket never closes, but only one is ever created, so it's not a big deal.
    Now for the problem: When I use the Tomcat manager to unload my webapp, the socket is still there. Sure, fine. But then when I reload the webapp, instead of re-using the same server socket, a new one is created! Furthermore, if I try to use explicit port numbers to force the server socket to be reused, I get "port already in use" errors. It seems that somehow tomcat won't let RMI recycle its entry points in between webapp restarts. Does anybody know how I can either:
    a) Get RMI to re-use the same ports
    b) Get RMI to completely shut down its ports when the webapp is unloaded (this would be even better)
    Thanks. It's irritating to see 10 open but unused server sockets on my system if I have to restart the webapp.

    Ah, I left out something: I construct the RMI object a servlet context listener in the contextInitialized() call, and I call UnicastRemoteObject.unexportObject() in the contextDestroyed() call. I added log messages, I am definitely correctly unbinding the object. The problem isn't that it is failing to be unbound - the problem is that the RMI system is refusing to reuse the same port after it is unbound. After unbinding, the port is still open, but it is never reused, each time I re-instantiate the remote object, it is making a new server socket and leaving the old one sitting open.
    As for why I'm doing this, it is a bit like a homegrown EJB, but just so small that this was the simplest way. I have a largish non-web based application, then I have a few JSP pages that do database queries to provide information to browsers. The JSP pages are not at all central to the application though, and just show some database info. The JSP system caches some SQL data, and I use RMI to tell JSP when to flush cached data due to database changes. It's all very simple, and it works fantastic, except for the issue that every time I reload the webapp I leave these server sockets hanging open. Even that is just an irritation, I don't reload much except when I'm testing, but it's a big enough irritation that I would really like to fix it.

  • A problem with Tomcat (Can't run tomcat as a service.).

    Hi
    May be you can help me (please).
    I do the following steps, as described in many documents I've found.
    1. Downloaded the jk_nt_service.exe and put it into jdk1.3.1jre\bin\classic
    2. configured wrapper.properties:
    wrapper.tomcat_home=C:\tomcat324 wrapper.java_home=C:\work\jdk1.3.1
    3. Run:
    C:\>jk_nt_service.exe -i tomcat C:\tomcat324conf\wrapper.properties
    C:\>jk_nt_service.exe -s tomcat
    C:\>net start tomcat
    In this step I get the following error:
    A system error has occurred.
    System error 1067 has occurred.
    The process terminated unexpectedly.
    I've got the same error on other computers and using Alexandria's program.. As I understood it's not only my problem, others have it too.
    Thanks in advance.

    Hi,
    First U should check if IIS and Tomcat are running together then Tomcat won't start coz both use the 80 port. u have shut down IIS and use Tomcat and enable Tomcat to start with the services, If shutting down IIS is not a problem.
    If u need both IIS and Tomcat to run together then u have change the server http port u can do it in the following manner
    drive:\Apache Tomcat 4.0\conf directory.
    Edit the sever.xml file
    In the server.xml file u will have to change the port in the following piece
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
    port="8080" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" connectionTimeout="60000"/>
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to -1 -->
    Change the port 8080 to 808x where x is any number between 0 to 9
    Restart the machine and this should work
    Good Luck
    Bye,
    MAX

  • Why cannot run tomcat after installing j2ee

    I use tomcat 4.0, and it was working properly before. after I installed J2ee 1.4, it doesnt work when running startup.bat. I dont know what is going on. Can any body encounter this and tell me how to solve it please. thanx

    It's possible that both Tomcat and the Application Server are configured to use the same port (probably 8080). If the Application Server is running, Tomcat won't be able to bind to port 8080 and will throw an error.
    Check that the Application Server is shut down before starting Tomcat.
    -Ian Evans

Maybe you are looking for