Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » RAServer startup - Fileserver class not found
RAServer startup - Fileserver class not found [message #10674] Sat, 19 March 2005 21:17 Go to next message
Eclipse UserFriend
Originally posted by: jeffperry_2003.yahoo.com

I am having trouble getting RAServer from TPTP version 4.0.0
(TPTP-4.0-200503171458) to work.

The problem seems to be a class not found error for FileServer while
starting RAServer. (Also as a side question - I'm not sure what to do with
the native logging package which is also on that download page - the file
it includes seems to be already includeded in one of the other TPTP
packages - is this extra file a patched newer version perhaps??? If so, it
would be helpful if the docs mentioned this)

After consulting the archives - I see no mention of this problem.
I have checked my setup several times and can't find the cause.
It's probably something simple, but I'd appreciate some advice on how to
get this working.

My setup:

Fedora Core 3

Java sdk 1.4.2_06

Eclipse 3.1M5 I20050219-1500
(downloaded by following the link on the TPTP page)

(w/listed requirements for TPTP installed by downloading from links on
TPTP page and unzipping into the eclipse directory)

LD_LIBRARY_PATH is not being set in my .bashrc file and ...
I added a line to .bashrc to source the following script

# JAVA_HOME needed for JBOSS - fix path so this java found first instead
of gcj
version from gcc installed by FC3
export JAVA_HOME="/usr/java/j2sdk1.4.2_06/jre"
export JAVABIN="$JAVA_HOME/bin"
export PATH="$JAVABIN:$PATH"

# Setup for Eclipse 3.1 RASERVER AgentController
# used by TPTP eclipse profiling tools
export
LD_LIBRARY_PATH=" /usr/java/j2sdk1.4.2_06/jre/lib/i386/server:/usr/java/j2sdk1 .4.2_06/jre/lib/i386 "
# The name RASERVER_HOME is important to the RAS server
# it needs this env var
export RASERVER_HOME="/opt/eclipse3.1-tptp-raserver"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$RASERVER_HOME/lib"
export PATH="$RASERVER_HOME/bin:$PATH"

I did run SetConfig from the RAS bin dir.

When I run RAServer as me (NO NEED TO RUN AS ROOT) I get the following
messages: (in short it can't find Java classes that are in the RAS plugins
directory - I have also included my generated serviceconfig.xml file below)

java.lang.NoClassDefFoundError:
org/eclipse/hyades/internal/execution/file/FileServer

What am I missing?

Thanks in advance for the assistance!

Here is my serviceconfig.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<AgentControllerConfiguration activeConfiguration="default"
loggingDetail="LOW"
loggingLevel="INFORMATION" port="10002" securedPort="10003"
version="4.0.0" filePort="10005" processPolling="true"
jvm="/usr/java/j2sdk1.4.2_06/jre/lib/i386/server/libjvm.so" >
<AgentControllerEnvironment configuration="default">
<Variable name="JAVA_PATH"
value="/usr/java/j2sdk1.4.2_06/jre/bin/java" position="replace"/>
<Variable name="RASERVER_HOME"
value="/opt/eclipse3.1-tptp-raserver" position="replace"/>
<Variable name="PLUGINS_HOME"
value="%RASERVER_HOME%/plugins" position="replace"/>
<Variable name="LD_LIBRARY_PATH"
value="%RASERVER_HOME%/lib" position="prepend"/>
<Variable name="SYS_TEMP_DIR" value="/tmp"
position="replace"/>
<Variable name="LOCAL_AGENT_TEMP_DIR"
value="%SYS_TEMP_DIR%" position="replace"/>
<Variable
name="CLASSPATH_ORG_APACHE_JAKARTA_COMMONS_LOGGING"
value=" %PLUGINS_HOME%/org.apache.jakarta_commons_logging_1.0.3/comm ons-logging.jar "
position="append"/>
<Variable name="CLASSPATH_ORG_ECLIPSE_CORE_RUNTIME"
position="append"
value="%PLUGINS_HOME%/org.eclipse.core.runtime_3.1.0/runtime.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EMF_COMMON"
value=" %PLUGINS_HOME%/org.eclipse.emf.common_2.1.0/runtime/common.j ar "
position="append"/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EMF_ECORE"
value=" %PLUGINS_HOME%/org.eclipse.emf.ecore_2.1.0/runtime/ecore.jar "
position="append"/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EMF_ECORE_XMI"
position="append"
value=" %PLUGINS_HOME%/org.eclipse.emf.ecore.xmi_2.1.0/runtime/ecore .xmi.jar "/>
<Variable
name="CLASSPATH_ORG_ECLIPSE_TPTP_PLATFORM_MODELS" position="append"
value=" %PLUGINS_HOME%/org.eclipse.tptp.platform.models/tptp-models. jar "/>
<Variable name="CLASSPATH_ORG_JUNIT" position="append"
value="%PLUGINS_HOME%/org.junit_3.8.1/junit.jar"/>
</AgentControllerEnvironment>
<Application configuration="default" executable="java.exe"
path="%JAVA_PATH%" location="%SYS_TEMP_DIR%"/>
<Hosts configuration="default">
<Allow host="LOCAL"/>
</Hosts>
<Plugin path="%PLUGINS_HOME%"/>
</AgentControllerConfiguration>
Re: RAServer startup - Fileserver class not found [message #11208 is a reply to message #10674] Mon, 21 March 2005 14:51 Go to previous message
Samson Wai is currently offline Samson WaiFriend
Messages: 46
Registered: July 2009
Member
Hi,

Thanks for reporting this problem. I have confirmed this problem and
captured this bug under bugzilla 88639.

For a temporary workaround, you can do the following before starting up
RAServer

export
CLASSPATH=$CLASSPATH:$RASERVER_HOME/plugins/org.eclipse.hyad es.execution_4.0
..0/hexcore.jar
export
CLASSPATH=$CLASSPATH:$RASERVER_HOME/plugins/org.eclipse.hyad es.execution_4.0
..0/hexl.jar
export
CLASSPATH=$CLASSPATH:$RASERVER_HOME/plugins/org.eclipse.hyad es.execution_4.0
..0/hexr.jar
export
CLASSPATH=$CLASSPATH:$RASERVER_HOME/plugins/org.eclipse.tptp .platform.collec
tion.framework_4.0.0/hcframe.jar

Samson


"Jeff Perry" <jeffperry_2003@yahoo.com> wrote in message
news:255f372e9b25f2f5fa32a468587b613e$1@www.eclipse.org...
> I am having trouble getting RAServer from TPTP version 4.0.0
> (TPTP-4.0-200503171458) to work.
>
> The problem seems to be a class not found error for FileServer while
> starting RAServer. (Also as a side question - I'm not sure what to do with
> the native logging package which is also on that download page - the file
> it includes seems to be already includeded in one of the other TPTP
> packages - is this extra file a patched newer version perhaps??? If so, it
> would be helpful if the docs mentioned this)
>
> After consulting the archives - I see no mention of this problem.
> I have checked my setup several times and can't find the cause.
> It's probably something simple, but I'd appreciate some advice on how to
> get this working.
>
> My setup:
>
> Fedora Core 3
>
> Java sdk 1.4.2_06
>
> Eclipse 3.1M5 I20050219-1500
> (downloaded by following the link on the TPTP page)
>
> (w/listed requirements for TPTP installed by downloading from links on
> TPTP page and unzipping into the eclipse directory)
>
> LD_LIBRARY_PATH is not being set in my .bashrc file and ...
> I added a line to .bashrc to source the following script
>
> # JAVA_HOME needed for JBOSS - fix path so this java found first instead
> of gcj
> version from gcc installed by FC3
> export JAVA_HOME="/usr/java/j2sdk1.4.2_06/jre"
> export JAVABIN="$JAVA_HOME/bin"
> export PATH="$JAVABIN:$PATH"
>
> # Setup for Eclipse 3.1 RASERVER AgentController
> # used by TPTP eclipse profiling tools
> export
>
LD_LIBRARY_PATH="/usr/java/j2sdk1.4.2_06/jre/lib/i386/server:/usr/java/j2sdk
1.4.2_06/jre/lib/i386"
> # The name RASERVER_HOME is important to the RAS server
> # it needs this env var
> export RASERVER_HOME="/opt/eclipse3.1-tptp-raserver"
> export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$RASERVER_HOME/lib"
> export PATH="$RASERVER_HOME/bin:$PATH"
>
> I did run SetConfig from the RAS bin dir.
>
> When I run RAServer as me (NO NEED TO RUN AS ROOT) I get the following
> messages: (in short it can't find Java classes that are in the RAS plugins
> directory - I have also included my generated serviceconfig.xml file
below)
>
> java.lang.NoClassDefFoundError:
> org/eclipse/hyades/internal/execution/file/FileServer
>
> What am I missing?
>
> Thanks in advance for the assistance!
>
> Here is my serviceconfig.xml file:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <AgentControllerConfiguration activeConfiguration="default"
> loggingDetail="LOW"
> loggingLevel="INFORMATION" port="10002" securedPort="10003"
> version="4.0.0" filePort="10005" processPolling="true"
> jvm="/usr/java/j2sdk1.4.2_06/jre/lib/i386/server/libjvm.so" >
> <AgentControllerEnvironment configuration="default">
> <Variable name="JAVA_PATH"
> value="/usr/java/j2sdk1.4.2_06/jre/bin/java" position="replace"/>
> <Variable name="RASERVER_HOME"
> value="/opt/eclipse3.1-tptp-raserver" position="replace"/>
> <Variable name="PLUGINS_HOME"
> value="%RASERVER_HOME%/plugins" position="replace"/>
> <Variable name="LD_LIBRARY_PATH"
> value="%RASERVER_HOME%/lib" position="prepend"/>
> <Variable name="SYS_TEMP_DIR" value="/tmp"
> position="replace"/>
> <Variable name="LOCAL_AGENT_TEMP_DIR"
> value="%SYS_TEMP_DIR%" position="replace"/>
> <Variable
> name="CLASSPATH_ORG_APACHE_JAKARTA_COMMONS_LOGGING"
>
value=" %PLUGINS_HOME%/org.apache.jakarta_commons_logging_1.0.3/comm ons-loggi
ng.jar"
> position="append"/>
> <Variable name="CLASSPATH_ORG_ECLIPSE_CORE_RUNTIME"
> position="append"
> value="%PLUGINS_HOME%/org.eclipse.core.runtime_3.1.0/runtime.jar "/>
> <Variable name="CLASSPATH_ORG_ECLIPSE_EMF_COMMON"
> value=" %PLUGINS_HOME%/org.eclipse.emf.common_2.1.0/runtime/common.j ar "
> position="append"/>
> <Variable name="CLASSPATH_ORG_ECLIPSE_EMF_ECORE"
> value=" %PLUGINS_HOME%/org.eclipse.emf.ecore_2.1.0/runtime/ecore.jar "
> position="append"/>
> <Variable name="CLASSPATH_ORG_ECLIPSE_EMF_ECORE_XMI"
> position="append"
>
value=" %PLUGINS_HOME%/org.eclipse.emf.ecore.xmi_2.1.0/runtime/ecore .xmi.jar "
/>
> <Variable
> name="CLASSPATH_ORG_ECLIPSE_TPTP_PLATFORM_MODELS" position="append"
> value=" %PLUGINS_HOME%/org.eclipse.tptp.platform.models/tptp-models. jar "/>
> <Variable name="CLASSPATH_ORG_JUNIT" position="append"
> value="%PLUGINS_HOME%/org.junit_3.8.1/junit.jar"/>
> </AgentControllerEnvironment>
> <Application configuration="default" executable="java.exe"
> path="%JAVA_PATH%" location="%SYS_TEMP_DIR%"/>
> <Hosts configuration="default">
> <Allow host="LOCAL"/>
> </Hosts>
> <Plugin path="%PLUGINS_HOME%"/>
> </AgentControllerConfiguration>
>
>
>
>
>
>
>
Previous Topic:Branch and line coverage using Hyades
Next Topic:How can I perform logging from within a HyadesTestCase?
Goto Forum:
  


Current Time: Tue Apr 23 14:22:26 GMT 2024

Powered by FUDForum. Page generated in 0.03480 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top