FATAL ERROR in native method: No transports initialized

7 views
Skip to first unread message

Mike Slinn

unread,
Jun 14, 2005, 1:37:51 AM6/14/05
to
I'm having trouble debugging a servlet running under Tomcat. I copied
the command and ran it at a comand line prompt (under Linux) so I could
see the problem better:

/opt/JBuilder2005/jdk1.4/bin/java -classpath
"/opt/JBuilder2005/thirdparty/jakarta-tomcat-5.0.27/bin/bootstrap.jar:/home/mslinn/work/zamples/projects/JspExplorer/build/classes:/opt/JBuilder2005/thirdparty/junit3.8/junit.jar:/opt/JBuilder2005/lib/unittest.jar:/opt/JBuilder2005/thirdparty/jakarta-tomcat-5.0.27/common/lib/servlet-api.jar:/opt/JBuilder2005/thirdparty/jakarta-tomcat-5.0.27/common/lib/jsp-api.jar:/opt/JBuilder2005/lib/saaj.jar:/opt/JBuilder2005/lib/jaxrpc.jar:/opt/JBuilder2005/lib/axis.jar:/opt/JBuilder2005/lib/axis-ant.jar:/opt/JBuilder2005/lib/wsdl4j.jar:/opt/JBuilder2005/lib/commons-logging.jar:/opt/JBuilder2005/lib/commons-discovery.jar:/home/mslinn/work/zamples/projects/JspExplorer/build/lib/ojdbc14.jar:/home/mslinn/work/zamples/home/www/zamples.com/www/staging/webapps/JspExplorer/WEB-INF/lib/commons-httpclient-3.0-alpha1.jar:/home/mslinn/work/zamples/home/www/zamples.com/www/staging/webapps/JspExplorer/WEB-INF/lib/commons-codec-1.2.jar:/home/mslinn/work/zamples/home/www/zamples.com/www/staging/webapps/J
spExplorer/WEB-INF/lib/commons-logging.jar:/home/mslinn/work/zamples/home/www/zamples.com/www/staging/webapps/JspExplorer/WEB-INF/lib/commons-logging-api.jar:/home/mslinn/work/zamples/home/www/zamples.com/www/staging/webapps/JspExplorer/WEB-INF/lib/cos.jar:/opt/JBuilder2005/jdk1.4/lib/tools.jar"
"-Dcatalina.home=/opt/JBuilder2005/thirdparty/jakarta-tomcat-5.0.27"
-Dje.etc=home/www/zamples.com/www/staging/jeEtc
-Dje.sessions=home/www/zamples.com/www/staging/webapps/jeSessions/
-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=poi:1162,suspend=y
org.apache.catalina.startup.Bootstrap -config
/home/mslinn/work/zamples/Tomcat/conf/server8080.xml start -f
projects/JspExplorer/server.xml
Error [111] in connect() call!
err:: Connection refused
Socket transport failed to init.
Transport dt_socket failed to initialize, rc = -1.
FATAL ERROR in native method: No transports initialized

I'm not intending to remotely debug, so I'm not sure why the transport
error is appearing. I'm using the JspExplorer run configuration (Tomcat
5.0 server):

Here is the jpx file:

<?xml version="1.0" encoding="UTF-8"?>
<!--JBuilder XML Project-->
<project>
<property category="debug.0" name="SmartStepSkipStaticInitializers"
value="0"/>
<property category="debug.0" name="SmartStepSkipSynthetics" value="0"/>
<property category="debug.1" name="RemoteDebug" value="1"/>
<property category="debug.1" name="RemoteDebugLaunch" value="0"/>
<property category="debug.1" name="RemoteTransportAddress" value="4112"/>
<property category="debug.1" name="SmartStepSkipStaticInitializers"
value="0"/>
<property category="debug.1" name="SmartStepSkipSynthetics" value="0"/>
<property category="debug.10" name="SmartStepSkipStaticInitializers"
value="0"/>
<property category="debug.3" name="RemoteDebug" value="1"/>
<property category="debug.3" name="RemoteDebugLaunch" value="0"/>
<property category="debug.3" name="RemoteTransportAddress" value="4000"/>
<property category="debug.4" name="RemoteDebug" value="1"/>
<property category="debug.4" name="RemoteDebugLaunch" value="0"/>
<property category="debug.4" name="RemoteTransportAddress" value="4002"/>
<property category="debug.5" name="RemoteDebug" value="1"/>
<property category="debug.5" name="RemoteDebugLaunch" value="0"/>
<property category="debug.5" name="RemoteTransportAddress" value="4003"/>
<property category="debug.6" name="RemoteDebug" value="1"/>
<property category="debug.6" name="RemoteDebugLaunch" value="0"/>
<property category="debug.6" name="RemoteTransportAddress" value="4102"/>
<property category="generalFormatting" name="baseCodeStyle"
value="java/Java Standard.codestyle"/>
<property category="generalFormatting2" name="blockIndent" value="4"/>
<property category="generalFormatting2" name="overrideBasicFormatting"
value="1"/>
<property category="generalFormatting2" name="tabSize" value="4"/>
<property category="java.sapient" name="ACE" value="false"/>
<property category="java.sapient" name="AFLV" value="true"/>
<property category="java.sapient" name="AFP" value="false"/>
<property category="java.sapient" name="ASMDCN" value="true"/>
<property category="java.sapient" name="ASMO" value="true"/>
<property category="java.sapient" name="BSMC" value="true"/>
<property category="java.sapient" name="BTJC" value="true"/>
<property category="java.sapient" name="CA" value="false"/>
<property category="java.sapient" name="CEV" value="false"/>
<property category="java.sapient" name="CFPV" value="false"/>
<property category="java.sapient" name="CIUCFL" value="true"/>
<property category="java.sapient" name="CQS" value="false"/>
<property category="java.sapient" name="CSR" value="true"/>
<property category="java.sapient" name="CVSBF" value="true"/>
<property category="java.sapient" name="EIAV" value="false"/>
<property category="java.sapient" name="EJB_CL" value="false"/>
<property category="java.sapient" name="EJB_CONSOLE" value="false"/>
<property category="java.sapient" name="EJB_ENTITY" value="false"/>
<property category="java.sapient" name="EJB_FDESCR" value="false"/>
<property category="java.sapient" name="EJB_FILES" value="false"/>
<property category="java.sapient" name="EJB_HOME" value="false"/>
<property category="java.sapient" name="EJB_IO" value="false"/>
<property category="java.sapient" name="EJB_JDBC" value="false"/>
<property category="java.sapient" name="EJB_MESSAGE" value="false"/>
<property category="java.sapient" name="EJB_NAMES" value="false"/>
<property category="java.sapient" name="EJB_NATIVE" value="false"/>
<property category="java.sapient" name="EJB_OBJECT" value="false"/>
<property category="java.sapient" name="EJB_REFL" value="false"/>
<property category="java.sapient" name="EJB_SEC" value="false"/>
<property category="java.sapient" name="EJB_SECOBJ" value="false"/>
<property category="java.sapient" name="EJB_SESSION" value="false"/>
<property category="java.sapient" name="EJB_SFACT" value="false"/>
<property category="java.sapient" name="EJB_SOCKET" value="false"/>
<property category="java.sapient" name="EJB_SUBST" value="false"/>
<property category="java.sapient" name="EJB_THREADS" value="false"/>
<property category="java.sapient" name="EOBA" value="true"/>
<property category="java.sapient" name="EVC" value="true"/>
<property category="java.sapient" name="HIF" value="true"/>
<property category="java.sapient" name="HISM" value="true"/>
<property category="java.sapient" name="HN" value="true"/>
<property category="java.sapient" name="ICSBF" value="false"/>
<property category="java.sapient" name="IFM" value="true"/>
<property category="java.sapient" name="ILC" value="false"/>
<property category="java.sapient" name="IMCM" value="true"/>
<property category="java.sapient" name="IMMD" value="true"/>
<property category="java.sapient" name="LF" value="false"/>
<property category="java.sapient" name="LMC" value="true"/>
<property category="java.sapient" name="LNU" value="true"/>
<property category="java.sapient" name="MCP" value="true"/>
<property category="java.sapient" name="MCS" value="true"/>
<property category="java.sapient" name="MLOWP" value="false"/>
<property category="java.sapient" name="MNU" value="true"/>
<property category="java.sapient" name="MSOL" value="true"/>
<property category="java.sapient" name="MVDSN" value="false"/>
<property category="java.sapient" name="NC" value="true"/>
<property category="java.sapient" name="NCLS" value="true"/>
<property category="java.sapient" name="NFSF" value="false"/>
<property category="java.sapient" name="NLC" value="false"/>
<property category="java.sapient" name="NOIS" value="false"/>
<property category="java.sapient" name="ODCM" value="false"/>
<property category="java.sapient" name="OHCE" value="true"/>
<property category="java.sapient" name="OIM" value="true"/>
<property category="java.sapient" name="ONAMAM" value="true"/>
<property category="java.sapient" name="ONE" value="true"/>
<property category="java.sapient" name="OPM" value="true"/>
<property category="java.sapient" name="OSNBU" value="false"/>
<property category="java.sapient" name="OWS" value="false"/>
<property category="java.sapient" name="PCO" value="true"/>
<property category="java.sapient" name="PDBB" value="false"/>
<property category="java.sapient" name="PFC" value="true"/>
<property category="java.sapient" name="PIFS" value="false"/>
<property category="java.sapient" name="PJDC" value="true"/>
<property category="java.sapient" name="PMSNT" value="false"/>
<property category="java.sapient" name="PN" value="false"/>
<property category="java.sapient" name="PPA" value="false"/>
<property category="java.sapient" name="PPCF" value="true"/>
<property category="java.sapient" name="PSIB" value="true"/>
<property category="java.sapient" name="RIP" value="false"/>
<property category="java.sapient" name="SBC" value="true"/>
<property category="java.sapient" name="SEB" value="false"/>
<property category="java.sapient" name="SL" value="false"/>
<property category="java.sapient" name="SSSIDC" value="false"/>
<property category="java.sapient" name="SU" value="true"/>
<property category="java.sapient" name="TMSSC" value="true"/>
<property category="java.sapient" name="UAAO" value="true"/>
<property category="java.sapient" name="UC" value="true"/>
<property category="java.sapient" name="UCVN" value="false"/>
<property category="java.sapient" name="UE" value="true"/>
<property category="java.sapient" name="UL" value="true"/>
<property category="java.sapient" name="ULVFP" value="true"/>
<property category="java.sapient" name="UMM" value="true"/>
<property category="java.sapient" name="URSP" value="true"/>
<property category="java.sapient" name="enable" value="1"/>
<property category="javaFormatting" name="EventStyle" value="0"/>
<property category="javaFormatting" name="alignMultilineAssign"
value="1"/>
<property category="javaFormatting" name="alwaysClasses" value="1"/>
<property category="javaFormatting" name="arrayInitDataOnNewLine"
value="0"/>
<property category="javaFormatting" name="blankLinesAfterClass"
value="2"/>
<property category="javaFormatting" name="blankLinesAfterImports"
value="2"/>
<property category="javaFormatting" name="blankLinesAfterMethod"
value="2"/>
<property category="javaFormatting" name="blankLinesAfterPackage"
value="2"/>
<property category="javaFormatting" name="catchOnNewLine" value="0"/>
<property category="javaFormatting" name="elseOnNewLine" value="0"/>
<property category="javaFormatting" name="extendsOnNewLine" value="0"/>
<property category="javaFormatting" name="finallyOnNewLine" value="0"/>
<property category="javaFormatting" name="implementsOnNewLine" value="0"/>
<property category="javaFormatting" name="multipleStatementsOwnLine"
value="0"/>
<property category="javaFormatting" name="packagePrefixGroups"
value="com.mslinn;com.zamples;com;BLANK_LINE;org;BLANK_LINE;java;javax;BLANK_LINE;java.awt;javax.swing;BLANK_LINE;(*)"/>
<property category="javaFormatting" name="preservedBlankLinesInDecl"
value="2"/>
<property category="javaFormatting" name="spaceAfterTypecast" value="0"/>
<property category="javaFormatting" name="spaceBeforeLparen" value="0"/>
<property category="javaFormatting" name="whileOnNewLine" value="0"/>
<property category="javaFormatting" name="wrapAtColumn" value="130"/>
<property category="javadoc" name="custom.tags.1" value="todo;a;To Do:"/>
<property category="optimize.0" name="OptimizableType"
value="intuitive.ide.borland.jb10.ProfilerBootstrap"/>
<property category="optimize.0" name="oicc.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.0" name="oipr.FilterFile"
value="/home/mslinn/work/zamples/ide/JspExplorer.jpr.oif"/>
<property category="optimize.0" name="oira.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.1" name="OptimizableType"
value="intuitive.ide.borland.jb10.ProfilerBootstrap"/>
<property category="optimize.1" name="oicc.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.1" name="oipr.FilterFile"
value="/home/mslinn/work/zamples/ide/JspExplorer.jpr.oif"/>
<property category="optimize.1" name="oira.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.10" name="OptimizableType"
value="intuitive.ide.borland.jb10.ProfilerBootstrap"/>
<property category="optimize.10" name="oicc.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.10" name="oipr.FilterFile"
value="/home/mslinn/work/zamples/ide/JspExplorer.jpr.oif"/>
<property category="optimize.10" name="oira.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.2" name="OptimizableType"
value="intuitive.ide.borland.jb10.ProfilerBootstrap"/>
<property category="optimize.2" name="oicc.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.2" name="oipr.FilterFile"
value="/home/mslinn/work/zamples/ide/JspExplorer.oif"/>
<property category="optimize.2" name="oipr.VMCannotExit" value="1"/>
<property category="optimize.2" name="oira.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.3" name="OptimizableType"
value="intuitive.ide.borland.jb10.ProfilerBootstrap"/>
<property category="optimize.3" name="oicc.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.3" name="oipr.FilterFile"
value="/home/mslinn/work/zamples/ide/JspExplorer.jpr.oif"/>
<property category="optimize.3" name="oira.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.4" name="OptimizableType"
value="intuitive.ide.borland.jb10.ProfilerBootstrap"/>
<property category="optimize.4" name="oicc.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.4" name="oipr.FilterFile"
value="/home/mslinn/work/zamples/ide/JspExplorer.jpr.oif"/>
<property category="optimize.4" name="oira.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.5" name="OptimizableType"
value="intuitive.ide.borland.jb10.ProfilerBootstrap"/>
<property category="optimize.5" name="oicc.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.5" name="oipr.FilterFile"
value="/home/mslinn/work/zamples/ide/JspExplorer.jpr.oif"/>
<property category="optimize.5" name="oira.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.7" name="OptimizableType"
value="intuitive.ide.borland.jb10.ProfilerBootstrap"/>
<property category="optimize.7" name="oicc.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.7" name="oipr.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.7" name="oira.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.8" name="OptimizableType"
value="intuitive.ide.borland.jb10.ProfilerBootstrap"/>
<property category="optimize.8" name="oicc.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.8" name="oipr.FilterFile"
value="/home/mslinn/work/zamples/ide/JspExplorer.jpr.oif"/>
<property category="optimize.8" name="oira.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.9" name="OptimizableType"
value="intuitive.ide.borland.jb10.ProfilerBootstrap"/>
<property category="optimize.9" name="oicc.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="optimize.9" name="oipr.FilterFile"
value="/home/mslinn/work/zamples/ide/JspExplorer.jpr.oif"/>
<property category="optimize.9" name="oira.FilterFile"
value="/home/mslinn/work/zamples/JspExplorer/JspExplorer.oif"/>
<property category="personality" name="personality"
value="com.borland.jbuilder.personality.EJBPersonality
com.borland.jbuilder.personality.CorbaPersonality
com.borland.jbuilder.personality.VisualDesignerPersonality
com.borland.jbuilder.personality.J2MEPersonality "/>
<property category="runtime" name="ConfigurationCount" value="10"/>
<property category="runtime" name="DefaultConfiguration" value="7"/>
<property category="runtime.0" name="BuildTargetOnRun"
value="com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;make"/>
<property category="runtime.0" name="ConfigurationName" value="Admin"/>
<property category="runtime.0" name="RunnableType"
value="com.borland.jbuilder.runtime.ApplicationRunner"/>
<property category="runtime.0" name="application.class"
value="com.mslinn.JspExplorer.Admin.Admin"/>
<property category="runtime.0" name="application.vmparameters"
value="-Dje.etc=/home/mslinn/work/zamples/home/www/zamples.com/www/staging/jeEtc/"/>
<property category="runtime.1" name="BuildTargetOnRun"
value="com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;make"/>
<property category="runtime.1" name="ConfigurationName" value="Admin
Debug (Attach)"/>
<property category="runtime.1" name="RunnableType"
value="com.borland.jbuilder.runtime.ApplicationRunner"/>
<property category="runtime.1" name="application.class"
value="com.mslinn.JspExplorer.Admin.Admin"/>
<property category="runtime.1" name="custom.init_required" value="0"/>
<property category="runtime.1" name="custom.required.1" value="JUnit"/>
<property category="runtime.1" name="custom.required.2" value="Tomcat
5.0 Servlet"/>
<property category="runtime.1" name="custom.required.3" value="Axis"/>
<property category="runtime.1" name="custom.required.4" value="Oracle"/>
<property category="runtime.1" name="custom.required.5"
value="HttpClient"/>
<property category="runtime.1" name="custom.required.6"
value="O'Reilly Servlets"/>
<property category="runtime.1" name="enable.tcpmonitor" value="0"/>
<property category="runtime.1" name="enable.wsimonitor" value="0"/>
<property category="runtime.1" name="tcpmonitor.listenport" value=""/>
<property category="runtime.1" name="tcpmonitor.targethost" value=""/>
<property category="runtime.1" name="tcpmonitor.targetport" value=""/>
<property category="runtime.1" name="wsimonitor.listenport" value=""/>
<property category="runtime.1" name="wsimonitor.logfile" value=""/>
<property category="runtime.1" name="wsimonitor.targethost" value=""/>
<property category="runtime.1" name="wsimonitor.targetport" value=""/>
<property category="runtime.10" name="BuildTargetOnRun"
value="com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;make"/>
<property category="runtime.10" name="ConfigurationName" value="JDBC"/>
<property category="runtime.10" name="RunnableType"
value="com.borland.jbuilder.runtime.ApplicationRunner"/>
<property category="runtime.10" name="application.parameters"
value="com.mysql.jdbc.Driver "/>
<property category="runtime.10" name="application.vmparameters"
value="-Dje.etc=/var/home/mslinn/zamples/home/www/zamples.com/www/staging/jeEtc/"/>
<property category="runtime.2" name="BuildTargetOnRun"
value="com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;make"/>
<property category="runtime.2" name="ConfigurationName" value="AllTests"/>
<property category="runtime.2" name="RunnableType"
value="com.borland.jbuilder.runtime.TestRunner"/>
<property category="runtime.2" name="test.class"
value="com.mslinn.JspExplorer.AllTests"/>
<property category="runtime.2" name="test.harness"
value="com.borland.jbuilder.unittest.JBTestRunner"/>
<property category="runtime.2" name="test.vmparameters"
value="-Dje.etc=/var/home/www/zamples.com/www/staging/jeEtc
-Dje.sessions=/var/home/www/zamples.com/www/staging/webapps/jeSessions/"/>
<property category="runtime.3" name="BuildTargetOnRun"
value="com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;make"/>
<property category="runtime.3" name="ConfigurationName" value="Debug -
Attach to Localhost:(4000)"/>
<property category="runtime.3" name="RunnableType"
value="com.borland.jbuilder.runtime.ApplicationRunner"/>
<property category="runtime.4" name="BuildTargetOnRun"
value="com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;make"/>
<property category="runtime.4" name="ConfigurationName" value="Debug -
Attach to local JES (4002)"/>
<property category="runtime.4" name="RunnableType"
value="com.borland.jbuilder.runtime.ApplicationRunner"/>
<property category="runtime.5" name="BuildTargetOnRun"
value="com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;make"/>
<property category="runtime.5" name="ConfigurationName" value="Attach
to local ZWS (4003)"/>
<property category="runtime.5" name="RunnableType"
value="com.borland.jbuilder.runtime.ApplicationRunner"/>
<property category="runtime.6" name="BuildTargetOnRun"
value="com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;make"/>
<property category="runtime.6" name="ConfigurationName" value="Attach
to JES on Asylum (4102 fwd to 4002)"/>
<property category="runtime.6" name="RunnableType"
value="com.borland.jbuilder.runtime.ApplicationRunner"/>
<property category="runtime.7" name="BuildTargetOnRun"
value="com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;make"/>
<property category="runtime.7" name="ConfigurationName"
value="JspExplorer"/>
<property category="runtime.7" name="RunnableType"
value="com.borland.jbuilder.runtime.ServerRunner"/>
<property category="runtime.7"
name="appserver.addProjectClassPathOnRun" value="1"/>
<property category="runtime.7" name="appserver.parameters" value="-f
projects/JspExplorer/server.xml"/>
<property category="runtime.7" name="appserver.servername" value=""/>
<property category="runtime.7" name="appserver.vmparameters"
value="-Dje.etc=home/www/zamples.com/www/staging/jeEtc
-Dje.sessions=home/www/zamples.com/www/staging/webapps/jeSessions/"/>
<property category="runtime.7" name="custom.init_required" value="0"/>
<property category="runtime.7" name="custom.override_required" value="1"/>
<property category="runtime.7" name="custom.required.1" value="JUnit"/>
<property category="runtime.7" name="custom.required.2" value="Tomcat
5.0 Servlet"/>
<property category="runtime.7" name="custom.required.3" value="Axis"/>
<property category="runtime.7" name="custom.required.4" value="Oracle"/>
<property category="runtime.7" name="custom.required.5"
value="HttpClient"/>
<property category="runtime.7" name="custom.required.6"
value="O'Reilly Servlets"/>
<property category="runtime.7" name="custom.required.7" value="Java
Tools"/>
<property category="runtime.7" name="enable.tcpmonitor" value="0"/>
<property category="runtime.7" name="enable.wsimonitor" value="0"/>
<property category="runtime.7" name="enabled.services"
value="jsp;naming"/>
<property category="runtime.7" name="server.addProjectLibrariesOnRun"
value="1"/>
<property category="runtime.7" name="server.addProjectOutputPathOnRun"
value="1"/>
<property category="runtime.7" name="server.arguments" value="-f
projects/JspExplorer/server.xml"/>
<property category="runtime.7" name="server.instance.name" value=""/>
<property category="runtime.7" name="server.name" value="Tomcat 5.0"/>
<property category="runtime.7" name="server.vmparameters"
value="-Dje.etc=home/www/zamples.com/www/staging/jeEtc
-Dje.sessions=home/www/zamples.com/www/staging/webapps/jeSessions/"/>
<property category="runtime.7" name="tcpmonitor.listenport" value=""/>
<property category="runtime.7" name="tcpmonitor.targethost" value=""/>
<property category="runtime.7" name="tcpmonitor.targetport" value=""/>
<property category="runtime.7" name="wsimonitor.listenport" value=""/>
<property category="runtime.7" name="wsimonitor.logfile" value=""/>
<property category="runtime.7" name="wsimonitor.targethost" value=""/>
<property category="runtime.7" name="wsimonitor.targetport" value=""/>
<property category="runtime.8" name="BuildTargetOnRun"
value="com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;make"/>
<property category="runtime.8" name="ConfigurationName"
value="Standalone"/>
<property category="runtime.8" name="RunnableType"
value="com.borland.jbuilder.runtime.ServerRunner"/>
<property category="runtime.8" name="appserver.parameters" value=""/>
<property category="runtime.8" name="appserver.servername" value=""/>
<property category="runtime.8" name="appserver.vmparameters"
value="-Dje.etc=/var/home/www/zamples.com/www/staging/jeEtc/"/>
<property category="runtime.8" name="enabled.services"
value="jsp;naming"/>
<property category="runtime.8" name="server.arguments" value=""/>
<property category="runtime.8" name="server.disableServerClassTracing"
value="0"/>
<property category="runtime.8" name="server.instance.name" value=""/>
<property category="runtime.8" name="server.name" value="Tomcat 5.0"/>
<property category="runtime.8" name="server.vmparameters"
value="-Dje.etc=/var/home/www/zamples.com/www/staging/jeEtc/"/>
<property category="runtime.9" name="BuildTargetOnRun"
value="com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;make"/>
<property category="runtime.9" name="ConfigurationName" value="TestJVM"/>
<property category="runtime.9" name="RunnableType"
value="com.borland.jbuilder.runtime.ApplicationRunner"/>
<property category="runtime.9" name="application.class"
value="com.mslinn.JspExplorer.KB.TestJVM"/>
<property category="runtime.9" name="application.parameters"
value="10000000 1 10 10 10 10 1000"/>
<property category="runtime.9" name="application.vmparameters"
value="-Xms250m -Xmx250m -server
-Dje.etc=home/www/zamples.com/www/staging/jeEtc/"/>
<property category="serverservices" name="disabled.services"
value="jdatastore;sqlj"/>
<property category="serverservices" name="single.server.name"
value="Tomcat 5.0"/>
<property category="sys" name="AuthorLabel" value="@author"/>
<property category="sys" name="Autocancel" value="1"/>
<property category="sys" name="Autorefresh" value="1"/>
<property category="sys" name="BackupPath" value="../ide/bak"/>
<property category="sys" name="CheckStable" value="1"/>
<property category="sys" name="Company" value=""/>
<property category="sys" name="CompanyLabel" value="Company:"/>
<property category="sys" name="Copyright" value="Copyright (c) 2005
Zamples, Inc."/>
<property category="sys" name="CopyrightLabel" value="Copyright:"/>
<property category="sys" name="DefaultPath" value="../src"/>
<property category="sys" name="Description" value=""/>
<property category="sys" name="DescriptionLabel" value="Description:"/>
<property category="sys" name="DocPath"
value="doc;../projects/JspExplorer/build/docs"/>
<property category="sys" name="ExcludeClassEnabled" value="0"/>
<property category="sys" name="IncludeTestPath" value="1"/>
<property category="sys" name="IncrementalCompilation" value="1"/>
<property category="sys" name="InstanceVisibility" value="2"/>
<property category="sys" name="JDK" value="java version 1.4.2_04-b05"/>
<property category="sys" name="JvmVersion" value="1.4"/>
<property category="sys" name="LastTag" value="0"/>
<property category="sys" name="Libraries" value="JUnit;Tomcat 5.0
Servlet;Axis;Oracle;HttpClient;O'Reilly Servlets"/>
<property category="sys" name="MakeStable" value="0"/>
<property category="sys" name="OutPath"
value="../projects/JspExplorer/build/classes"/>
<property category="sys" name="SourcePath" value="../src;../test"/>
<property category="sys" name="SourceVersion" value="1.4"/>
<property category="sys" name="TestPath" value="../test"/>
<property category="sys" name="Title" value=""/>
<property category="sys" name="TitleLabel" value="Title:"/>
<property category="sys" name="Version" value="1.0"/>
<property category="sys" name="VersionLabel" value="@version"/>
<property category="sys" name="WorkingDirectory" value="../"/>
<property category="sys" name="max.package.levels" value="6"/>
<property category="team" name="ignorePath.0" value="../Tomcat"/>
</project>


Here is the jpx.local file:

build.menu.1[0]=com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;make
build.menu.2[0]=com.borland.jbuilder.build.ProjectBuilder$ProjectBuildAction;rebuild
content.layout.xml.[0]=<project-layout><tab_container
selected_index="-1"/></project-layout>
debug.NoTracingClasses.1[0]=23 com.borland.datastore.*1 1 -1
debug.NoTracingClasses.10[0]=7 javax.*1 1 -1
debug.NoTracingClasses.11[0]=5 sun.*1 1 -1
debug.NoTracingClasses.12[0]=23 com.borland.appclient.*1 1 -1
debug.NoTracingClasses.13[0]=21 com.borland.console.*1 1 -1
debug.NoTracingClasses.14[0]=17 com.borland.ejb.*1 1 -1
debug.NoTracingClasses.15[0]=24 com.borland.enterprise.*1 1 -1
debug.NoTracingClasses.16[0]=18 com.borland.jafa.*1 1 -1
debug.NoTracingClasses.17[0]=17 com.borland.jss.*1 1 -1
debug.NoTracingClasses.18[0]=24 com.borland.management.*1 1 -1
debug.NoTracingClasses.19[0]=23 com.borland.primetime.*1 1 -1
debug.NoTracingClasses.2[0]=21 com.borland.dbswing.*1 1 -1
debug.NoTracingClasses.20[0]=22 com.borland.security.*1 1 -1
debug.NoTracingClasses.21[0]=18 com.borland.util.*1 1 -1
debug.NoTracingClasses.22[0]=17 com.borland.xml.*1 1 -1
debug.NoTracingClasses.23[0]=13 com.inprise.*1 1 -1
debug.NoTracingClasses.24[0]=15 com.visigenic.*1 1 -1
debug.NoTracingClasses.25[0]=9 org.omg.*1 1 -1
debug.NoTracingClasses.3[0]=16 com.borland.dx.*1 1 -1
debug.NoTracingClasses.4[0]=16 com.borland.jb.*1 1 -1
debug.NoTracingClasses.5[0]=18 com.borland.jbcl.*1 1 -1
debug.NoTracingClasses.6[0]=30 com.borland.jbuilder.runtime.*1 1 -1
debug.NoTracingClasses.7[0]=17 com.borland.sql.*1 1 -1
debug.NoTracingClasses.8[0]=9 com.sun.*1 1 -1
debug.NoTracingClasses.9[0]=6 java.*1 1 -1
import.optimize.legacyPropertiesRead[0]=1
packagebrowser.lastClassName[0]=com.mslinn.JspExplorer.KB.TestJVM
packages.excluded.1[0]=com.mslinn.JdPatch.*
packages.excluded.2[0]=com.mslinn.Walk.*
sys.Author[0]=<a href=mailto:msl...@mslinn.com>Mike Slinn</a>
sys.DefaultPackage[0]=jspexplorer
sys.ReopenHistory.1[0]=/home/mslinn/work/zamples/test/com/mslinn/TestComputedBean.java
sys.ReopenHistory.2[0]=/home/mslinn/work/zamples/src/com/zamples/server/db/OracleDataSource.java
sys.ReopenHistory.3[0]=/home/mslinn/work/zamples/src/com/mslinn/MsBean.java
sys.ReopenHistory.4[0]=/home/mslinn/work/zamples/test/com/mslinn/ServletUtil/MockHttpServletRequest.java
sys.ReopenHistory.5[0]=/home/mslinn/work/zamples/src/com/mslinn/ComputedBean.java
team.lastScanned[0]=1118725332586


Any ideas?

Mike

Lori M Olson [TeamB]

unread,
Jun 14, 2005, 11:45:09 AM6/14/05
to
Mike Slinn wrote:
> I'm having trouble debugging a servlet running under Tomcat. I copied
> the command and ran it at a comand line prompt (under Linux) so I could
> see the problem better:
>
> /opt/JBuilder2005/jdk1.4/bin/java -classpath
> "/opt/JBuilder2005/thirdparty/jakarta-tomcat-5.0.27/bin/bootstrap.jar:/home/mslinn/work/zamples/projects/JspExplorer/build/classes:/opt/JBuilder2005/thirdparty/junit3.8/junit.jar:/opt/JBuilder2005/lib/unittest.jar:/opt/JBuilder2005/thirdparty/jakarta-tomcat-5.0.27/common/lib/servlet-api.jar:/opt/JBuilder2005/thirdparty/jakarta-tomcat-5.0.27/common/lib/jsp-api.jar:/opt/JBuilder2005/lib/saaj.jar:/opt/JBuilder2005/lib/jaxrpc.jar:/opt/JBuilder2005/lib/axis.jar:/opt/JBuilder2005/lib/axis-ant.jar:/opt/JBuilder2005/lib/wsdl4j.jar:/opt/JBuilder2005/lib/commons-logging.jar:/opt/JBuilder2005/lib/commons-discovery.jar:/home/mslinn/work/zamples/projects/JspExplorer/build/lib/ojdbc14.jar:/home/mslinn/work/zamples/home/www/zamples.com/www/staging/webapps/JspExplorer/WEB-INF/lib/commons-httpclient-3.0-alpha1.jar:/home/mslinn/work/zamples/home/www/zamples.com/www/staging/webapps/JspExplorer/WEB-INF/lib/commons-codec-1.2.jar:/home/mslinn/work/zamples/home/www/zamples.com/www/staging/webapps
/J
> spExplorer/WEB-INF/lib/commons-logging.jar:/home/mslinn/work/zamples/home/www/zamples.com/www/staging/webapps/JspExplorer/WEB-INF/lib/commons-logging-api.jar:/home/mslinn/work/zamples/home/www/zamples.com/www/staging/webapps/JspExplorer/WEB-INF/lib/cos.jar:/opt/JBuilder2005/jdk1.4/lib/tools.jar"
> "-Dcatalina.home=/opt/JBuilder2005/thirdparty/jakarta-tomcat-5.0.27"
> -Dje.etc=home/www/zamples.com/www/staging/jeEtc
> -Dje.sessions=home/www/zamples.com/www/staging/webapps/jeSessions/
> -Xdebug -Xnoagent -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,address=poi:1162,suspend=y
> org.apache.catalina.startup.Bootstrap -config
> /home/mslinn/work/zamples/Tomcat/conf/server8080.xml start -f
> projects/JspExplorer/server.xml
> Error [111] in connect() call!
> err:: Connection refused
> Socket transport failed to init.
> Transport dt_socket failed to initialize, rc = -1.
> FATAL ERROR in native method: No transports initialized
>
>
> Any ideas?
>
> Mike

When looking at these things, you need to look at the first error, not
the last. The first error is "Connection refused".

Now, remote or local, when you are debugging server-side stuff it is
going to make a socket connection to the debugging port, which is
specified here as "1162". The "Connection refused" is telling you that
it could not make a connection on port 1162.

This is almost always a firewall issue. Your machine must be configured
to accept connections on the debugging port. You can change to a
different port (one which is not being blocked) or you can alter your
firewall settings for port 1162.

--

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html

Mike Slinn

unread,
Jun 14, 2005, 1:56:50 PM6/14/05
to
Hmm, the machine is not running a firewall, and the port is non-privileged
(>1024), which is important for *nix. I think the problem is that no
process is actually listening, because I ran the command at the command line
prompt. Duh.

Anyway, I did that because Tomcat 5 wouldn't run under the debugger and
there was not error message. Seems I created a new problem instead. How
can I determine what the original problem is? The status messages
transition from "server launched" to "process finished" very quickly.

TIA,

Mike


"Lori M Olson [TeamB]" <javad...@techie.com> wrote in message
news:42ae...@newsgroups.borland.com...


> Mike Slinn wrote:
>> I'm having trouble debugging a servlet running under Tomcat. I copied
>> the command and ran it at a comand line prompt (under Linux) so I could
>> see the problem better:
>>

Lori M Olson [TeamB]

unread,
Jun 14, 2005, 5:03:24 PM6/14/05
to
Mike Slinn wrote:
> Hmm, the machine is not running a firewall, and the port is non-privileged
> (>1024), which is important for *nix. I think the problem is that no
> process is actually listening, because I ran the command at the command line
> prompt. Duh.
>
> Anyway, I did that because Tomcat 5 wouldn't run under the debugger and
> there was not error message. Seems I created a new problem instead. How
> can I determine what the original problem is? The status messages
> transition from "server launched" to "process finished" very quickly.
>
> TIA,
>
> Mike
>

-Xrunjdwp:transport=dt_socket,address=poi:1162,suspend=y

This line says to initialize debugging protocol, listening on port 1162,
and WAIT for a debugger to attach before proceeding.

Kevin Dean [TeamB]

unread,
Jun 14, 2005, 9:42:00 PM6/14/05
to
Mike Slinn wrote:

> Hmm, the machine is not running a firewall, and the port is
> non-privileged (>1024), which is important for *nix. I think the
> problem is that no process is actually listening, because I ran the
> command at the command line prompt. Duh.
>
> Anyway, I did that because Tomcat 5 wouldn't run under the debugger
> and there was not error message. Seems I created a new problem
> instead. How can I determine what the original problem is? The
> status messages transition from "server launched" to "process
> finished" very quickly.

I don't think it's the debugger, as JBuilder is pretty good about
choosing ports that aren't in use. What it might be is that you have
something else listening on either port 8080 (Tomcat's HTTP port) or
8081 (Tomcat's control port). Before starting Tomcat, check for
anything listening on port 808X.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html

Reply all
Reply to author
Forward
0 new messages