Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » New Agent Controller and Java 5
New Agent Controller and Java 5 [message #44746] Sat, 03 December 2005 17:24 Go to next message
David Read is currently offline David ReadFriend
Messages: 35
Registered: July 2009
Member
Trying out the sample program 'TPTPAgent.java' in org.eclipse.tptp.platform.execution.samples, the console window shows an error:

Connecting to AC..
Connected to localhost at port number 10006
---------------------------------------
Querying Available Agents ...
java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI
at org.eclipse.tptp.platform.execution.util.impl.TPTPXMLParse.s etParser(TPTPXMLParse.java:136)
at org.eclipse.tptp.platform.execution.client.core.impl.AgentCo ntroller.queryRunningAgents(AgentController.java:1084)
at org.eclipse.tptp.platform.execution.client.core.impl.AgentCo ntroller.queryRunningAgents(AgentController.java:1151)
at org.eclipse.tptp.platform.execution.client.core.impl.AgentCo ntroller.queryRunningAgents(AgentController.java:1159)
at org.eclipse.tptp.platform.execution.samples.TPTPAgent.main(T PTPAgent.java:106)

This is due to the XPathAPI being org.apache.xpath.XPathAPI in Java 1.4, but just straight XPathAPI in Java 5. I can get around this by changing the source (in TPTPXMLParse.java) and recompiling the package, but is there a better way?
I've read about the XALAN package on the Web, but which one, and how best to install it. I don't want to go back to Java 1.4 since I use some of the 5 only features in my code. (sorry if this is basic stuff, but Java is not my day job :-)

Thanks for any help.
Re: New Agent Controller and Java 5 [message #45073 is a reply to message #44746] Thu, 08 December 2005 03:17 Go to previous messageGo to next message
Guru Nagarajan is currently offline Guru NagarajanFriend
Messages: 45
Registered: July 2009
Member
Hi David,
You could work around this issue in a couple of ways. I will have
to mail the attachments to you due to the max message posting size.

------------------------------------------------------------ -----------------------------
The two files I am mailing you are
a) ApacheFix.zip - The Plugin that contains the java jars for the
Xerces/Xalan XPath issue.

b) xalan-j_2_7_0-bin-2jars.zip - this contains the jar files for the
issue in context.

Import the plugin org.eclipse.tptp.platform.execution into your eclipse
workspace.

Approach 1:
a) Unzip the plugin Apache.zip into your eclipse/plugins directory.
b) Open your eclipse workspace and open on the imported plugin project
org.eclipse.tptp.platform.execution. Navigate to the plugCliin.xml file
in the project. Click on the dependencies tab, click on the add button.
You will see a list of plugins and you will see the "ApacheFix" in the
list. Click OK.
You should be able to execute the org.eclipse.tptp.platform.execution
plugin samples now.

Approach 2:
a) Unzip the attached xalan-j_2_7_0-bin-2jars.zip directory on your file
system.
b) Right Click on the org.eclipse.tptp.platform.execution project in the
navigator and select properties.
In the properties pop-up navigate to the "Java Build Path" and click on
the libraries path. Click "Add External Jars", navigate to the directory
where you unzipped the xalan-j_2_7_0-bin-2jars.zip file and select all
the jars in that directory.
You should be able to execute the org.eclipse.tptp.platform.execution
samples now.

Thanks,
Guru
David Read wrote:
> Trying out the sample program 'TPTPAgent.java' in
> org.eclipse.tptp.platform.execution.samples, the console window shows an
> error:
>
> Connecting to AC..
> Connected to localhost at port number 10006
> ---------------------------------------
> Querying Available Agents ...
> java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI
> at
> org.eclipse.tptp.platform.execution.util.impl.TPTPXMLParse.s etParser(TPTPXMLParse.java:136)
>
> at
> org.eclipse.tptp.platform.execution.client.core.impl.AgentCo ntroller.queryRunningAgents(AgentController.java:1084)
>
> at
> org.eclipse.tptp.platform.execution.client.core.impl.AgentCo ntroller.queryRunningAgents(AgentController.java:1151)
>
> at
> org.eclipse.tptp.platform.execution.client.core.impl.AgentCo ntroller.queryRunningAgents(AgentController.java:1159)
>
> at
> org.eclipse.tptp.platform.execution.samples.TPTPAgent.main(T PTPAgent.java:106)
>
>
> This is due to the XPathAPI being org.apache.xpath.XPathAPI in Java 1.4,
> but just straight XPathAPI in Java 5. I can get around this by changing
> the source (in TPTPXMLParse.java) and recompiling the package, but is
> there a better way?
> I've read about the XALAN package on the Web, but which one, and how
> best to install it. I don't want to go back to Java 1.4 since I use some
> of the 5 only features in my code. (sorry if this is basic stuff, but
> Java is not my day job :-)
>
> Thanks for any help.
Re: New Agent Controller and Java 5 [message #45140 is a reply to message #45073] Thu, 08 December 2005 12:57 Go to previous message
Guru Nagarajan is currently offline Guru NagarajanFriend
Messages: 45
Registered: July 2009
Member
You could download the xerces/xalan files from
http://apache.mirrors.hoobly.com/xml/xalan-j/
The file to download is xalan-j_2_7_0-bin-2jars.zip - this contains the
jar files for resoloving the Java 5 xalan/xerces XPath refactoring.

Guru Nagarajan wrote:
> Hi David,
> You could work around this issue in a couple of ways. I will have to
> mail the attachments to you due to the max message posting size.
>
> ------------------------------------------------------------ -----------------------------
>
> The two files I am mailing you are
> a) ApacheFix.zip - The Plugin that contains the java jars for the
> Xerces/Xalan XPath issue.
>
> b) xalan-j_2_7_0-bin-2jars.zip - this contains the jar files for the
> issue in context.
>
> Import the plugin org.eclipse.tptp.platform.execution into your eclipse
> workspace.
>
> Approach 1:
> a) Unzip the plugin Apache.zip into your eclipse/plugins directory.
> b) Open your eclipse workspace and open on the imported plugin project
> org.eclipse.tptp.platform.execution. Navigate to the plugCliin.xml file
> in the project. Click on the dependencies tab, click on the add button.
> You will see a list of plugins and you will see the "ApacheFix" in the
> list. Click OK.
> You should be able to execute the org.eclipse.tptp.platform.execution
> plugin samples now.
>
> Approach 2:
> a) Unzip the attached xalan-j_2_7_0-bin-2jars.zip directory on your file
> system.
> b) Right Click on the org.eclipse.tptp.platform.execution project in the
> navigator and select properties.
> In the properties pop-up navigate to the "Java Build Path" and click on
> the libraries path. Click "Add External Jars", navigate to the directory
> where you unzipped the xalan-j_2_7_0-bin-2jars.zip file and select all
> the jars in that directory.
> You should be able to execute the org.eclipse.tptp.platform.execution
> samples now.
>
> Thanks,
> Guru
> David Read wrote:
>> Trying out the sample program 'TPTPAgent.java' in
>> org.eclipse.tptp.platform.execution.samples, the console window shows
>> an error:
>>
>> Connecting to AC..
>> Connected to localhost at port number 10006
>> ---------------------------------------
>> Querying Available Agents ...
>> java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI
>> at
>> org.eclipse.tptp.platform.execution.util.impl.TPTPXMLParse.s etParser(TPTPXMLParse.java:136)
>>
>> at
>> org.eclipse.tptp.platform.execution.client.core.impl.AgentCo ntroller.queryRunningAgents(AgentController.java:1084)
>>
>> at
>> org.eclipse.tptp.platform.execution.client.core.impl.AgentCo ntroller.queryRunningAgents(AgentController.java:1151)
>>
>> at
>> org.eclipse.tptp.platform.execution.client.core.impl.AgentCo ntroller.queryRunningAgents(AgentController.java:1159)
>>
>> at
>> org.eclipse.tptp.platform.execution.samples.TPTPAgent.main(T PTPAgent.java:106)
>>
>>
>> This is due to the XPathAPI being org.apache.xpath.XPathAPI in Java
>> 1.4, but just straight XPathAPI in Java 5. I can get around this by
>> changing the source (in TPTPXMLParse.java) and recompiling the
>> package, but is there a better way?
>> I've read about the XALAN package on the Web, but which one, and how
>> best to install it. I don't want to go back to Java 1.4 since I use
>> some of the 5 only features in my code. (sorry if this is basic stuff,
>> but Java is not my day job :-)
>>
>> Thanks for any help.
Previous Topic:ClassNotFoundException
Next Topic:AGR on Eclipse 3.0.x?
Goto Forum:
  


Current Time: Tue Mar 19 10:02:09 GMT 2024

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

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

Back to the top