You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "tom@hostwebase.com" <to...@hostwebase.com> on 2007/06/12 23:32:19 UTC

Error with ant -v producer

I get rid of the /usr/bin/gij now it using Sun Java compiler but a new errors
is appear.
I am not quite sure how it reported "Detected Java version: 1.4 in: /usr"

*************************************************
When I perfomred these commands they indicated JDK 1.5.0
[root@gabrielle example]# which java
/usr/java/jdk1.5.0/bin/java
[root@gabrielle example]# java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)




**********************************************


[root@gabrielle example]# ant -v producer
Apache Ant version 1.5.2-20 compiled on September 25 2003
Buildfile: build.xml
Detected Java version: 1.4 in: /usr
Detected OS: Linux
parsing buildfile build.xml with URI =
file:/app/activemq42/example/build.xml
Project base dir set to: /app/activemq42/example
Build sequence for target `producer' is [init, compile, producer]
Complete build sequence is [init, compile, producer, war, embedBroker, help,
consumer, clean, requester, topic-publisher, topic-listener]

init:

compile:
    [javac] ProducerTool.java omitted as ProducerTool.class is up to date.
    [javac] CommnadLineSupport.java omitted as CommnadLineSupport.class is
up to date.
    [javac] RequesterTool.java omitted as RequesterTool.class is up to date.
    [javac] EmbeddedBroker.java omitted as EmbeddedBroker.class is up to
date.
    [javac] TopicListener.java omitted as TopicListener.class is up to date.
    [javac] ConsumerTool.java omitted as ConsumerTool.class is up to date.
    [javac] ProducerAndConsumerTool.java omitted as
ProducerAndConsumerTool.class is up to date.
    [javac] TopicPublisher.java omitted as TopicPublisher.class is up to
date.

producer:
     [echo] Running producer against server at $url = tcp://localhost:61616
for subject $subject = TEST.FOO
     [java] Executing 'gij' with arguments:
     [java] '-server'
     [java] '-Xmx100M'
     [java] '-Dactivemq.home=..'
     [java] '-classpath'
     [java]
'/app/activemq42/example/target/classes:/app/activemq42/example/conf:/app/activemq42/lib/activemq-core-4.2-SNAPSHOT-tests.jar:/app/activemq42/lib/activemq-web-4.2-SNAPSHOT.jar:/app/activemq42/lib/geronimo-jms_1.1_spec-1.0.jar:/app/activemq42/lib/commons-logging-1.1.jar:/app/activemq42/lib/geronimo-j2ee-management_1.0_spec-1.0.jar:/app/activemq42/lib/activeio-core-3.1-incubator-SNAPSHOT.jar:/app/activemq42/lib/activeio-core-3.1-incubator-20061211.163855-3-tests.jar:/app/activemq42/lib/activemq-jaas-4.2-SNAPSHOT.jar:/app/activemq42/lib/activemq-core-4.2-SNAPSHOT.jar:/app/activemq42/lib/activemq-console-4.2-SNAPSHOT.jar:/app/activemq42/lib/optional/geronimo-j2ee-jacc_1.0_spec-1.0.jar:/app/activemq42/lib/optional/log4j-1.2.12.jar:/app/activemq42/lib/optional/geronimo-j2ee-connector_1.5_spec-1.0.jar:/app/activemq42/lib/optional/activemq-optional-4.2-SNAPSHOT.jar:/app/activemq42/lib/optional/commons-beanutils-1.6.1.jar:/app/activemq42/lib/optional/activemq-xmpp-4.2-SNAPSHOT.jar:/app/activemq42/lib/optional/xstream-1.1.2.jar:/app/activemq42/lib/optional/spring-2.0.jar:/app/activemq42/lib/optional/commons-pool-1.2.jar:/app/activemq42/lib/optional/commons-httpclient-2.0.1.jar:/app/activemq42/lib/optional/jetty-6.0.1.jar:/app/activemq42/lib/optional/commons-collections-2.1.jar:/app/activemq42/lib/optional/commons-dbcp-1.2.jar:/app/activemq42/lib/optional/xmlpull-1.1.3.4d_b4_min.jar:/app/activemq42/lib/optional/derby-10.1.3.1.jar:/app/activemq42/lib/optional/servlet-api-2.5-6.0.1.jar:/app/activemq42/lib/optional/jetty-util-6.0.1.jar:/app/activemq42/lib/optional/jmdns-1.0-RC2.jar:/app/activemq42/lib/optional/xbean-spring-2.8.jar'
     [java] 'ProducerTool'
     [java] '--url=tcp://localhost:61616'
     [java] '--topic=false'
     [java] '--subject=TEST.FOO'
     [java] '--persistent=false'
     [java] '--message-count=10'
     [java] '--message-size=1000'
     [java] '--time-to-live=0'
     [java] '--sleep-time=0'
     [java] '--transacted=false'
     [java] '--verbose=true'
     [java]
     [java] The ' characters around the executable and arguments are
     [java] not part of the command.
     [java] java.io.IOException: No such file or directory

BUILD SUCCESSFUL
Total time: 1 second
[root@gabrielle example]#

-- 
View this message in context: http://www.nabble.com/Error-with---ant--v-producer-tf3910428s2354.html#a11087669
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Error with ant -v producer

Posted by Bruce Snyder <br...@gmail.com>.
On 6/12/07, tom@hostwebase.com <to...@hostwebase.com> wrote:

OK, I guess we're continuing this on the ActiveMQ users list instead
of the ServiceMix users list ;-).

> I get rid of the /usr/bin/gij now it using Sun Java compiler but a new errors
> is appear.
> I am not quite sure how it reported "Detected Java version: 1.4 in: /usr"
>
> *************************************************
> When I perfomred these commands they indicated JDK 1.5.0
> [root@gabrielle example]# which java
> /usr/java/jdk1.5.0/bin/java
> [root@gabrielle example]# java -version
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)

I know you say that you removed the GNU version of Java from your
system, however, the output below says it's still there in the PATH:

> producer:
>      [echo] Running producer against server at $url = tcp://localhost:61616
> for subject $subject = TEST.FOO
>      [java] Executing 'gij' with arguments:

Notice that Ant says it's executing gij and not java. It seems that
Ant is still picking up gij somewhere on the PATH.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: Error with ant -v producer

Posted by ja...@gmail.com.
Set JAVA_HOME to the Sun JDK

--jason


-----Original Message-----
From: "tom@hostwebase.com" <to...@hostwebase.com>

Date: Tue, 12 Jun 2007 14:32:19 
To:users@activemq.apache.org
Subject: Error with   ant -v producer



I get rid of the /usr/bin/gij now it using Sun Java compiler but a new errors
is appear.
I am not quite sure how it reported "Detected Java version: 1.4 in: /usr"

*************************************************
When I perfomred these commands they indicated JDK 1.5.0
[root@gabrielle example]# which java
/usr/java/jdk1.5.0/bin/java
[root@gabrielle example]# java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)




**********************************************


[root@gabrielle example]# ant -v producer
Apache Ant version 1.5.2-20 compiled on September 25 2003
Buildfile: build.xml
Detected Java version: 1.4 in: /usr
Detected OS: Linux
parsing buildfile build.xml with URI =
file:/app/activemq42/example/build.xml
Project base dir set to: /app/activemq42/example
Build sequence for target `producer' is [init, compile, producer]
Complete build sequence is [init, compile, producer, war, embedBroker, help,
consumer, clean, requester, topic-publisher, topic-listener]

init:

compile:
    [javac] ProducerTool.java omitted as ProducerTool.class is up to date.
    [javac] CommnadLineSupport.java omitted as CommnadLineSupport.class is
up to date.
    [javac] RequesterTool.java omitted as RequesterTool.class is up to date.
    [javac] EmbeddedBroker.java omitted as EmbeddedBroker.class is up to
date.
    [javac] TopicListener.java omitted as TopicListener.class is up to date.
    [javac] ConsumerTool.java omitted as ConsumerTool.class is up to date.
    [javac] ProducerAndConsumerTool.java omitted as
ProducerAndConsumerTool.class is up to date.
    [javac] TopicPublisher.java omitted as TopicPublisher.class is up to
date.

producer:
     [echo] Running producer against server at $url = tcp://localhost:61616
for subject $subject = TEST.FOO
     [java] Executing 'gij' with arguments:
     [java] '-server'
     [java] '-Xmx100M'
     [java] '-Dactivemq.home=..'
     [java] '-classpath'
     [java]
'/app/activemq42/example/target/classes:/app/activemq42/example/conf:/app/activemq42/lib/activemq-core-4.2-SNAPSHOT-tests.jar:/app/activemq42/lib/activemq-web-4.2-SNAPSHOT.jar:/app/activemq42/lib/geronimo-jms_1.1_spec-1.0.jar:/app/activemq42/lib/commons-logging-1.1.jar:/app/activemq42/lib/geronimo-j2ee-management_1.0_spec-1.0.jar:/app/activemq42/lib/activeio-core-3.1-incubator-SNAPSHOT.jar:/app/activemq42/lib/activeio-core-3.1-incubator-20061211.163855-3-tests.jar:/app/activemq42/lib/activemq-jaas-4.2-SNAPSHOT.jar:/app/activemq42/lib/activemq-core-4.2-SNAPSHOT.jar:/app/activemq42/lib/activemq-console-4.2-SNAPSHOT.jar:/app/activemq42/lib/optional/geronimo-j2ee-jacc_1.0_spec-1.0.jar:/app/activemq42/lib/optional/log4j-1.2.12.jar:/app/activemq42/lib/optional/geronimo-j2ee-connector_1.5_spec-1.0.jar:/app/activemq42/lib/optional/activemq-optional-4.2-SNAPSHOT.jar:/app/activemq42/lib/optional/commons-beanutils-1.6.1.jar:/app/activemq42/lib/optional/activemq-xmpp-4.2-SNAPSHOT.jar:/app/activemq42/lib/optional/xstream-1.1.2.jar:/app/activemq42/lib/optional/spring-2.0.jar:/app/activemq42/lib/optional/commons-pool-1.2.jar:/app/activemq42/lib/optional/commons-httpclient-2.0.1.jar:/app/activemq42/lib/optional/jetty-6.0.1.jar:/app/activemq42/lib/optional/commons-collections-2.1.jar:/app/activemq42/lib/optional/commons-dbcp-1.2.jar:/app/activemq42/lib/optional/xmlpull-1.1.3.4d_b4_min.jar:/app/activemq42/lib/optional/derby-10.1.3.1.jar:/app/activemq42/lib/optional/servlet-api-2.5-6.0.1.jar:/app/activemq42/lib/optional/jetty-util-6.0.1.jar:/app/activemq42/lib/optional/jmdns-1.0-RC2.jar:/app/activemq42/lib/optional/xbean-spring-2.8.jar'
     [java] 'ProducerTool'
     [java] '--url=tcp://localhost:61616'
     [java] '--topic=false'
     [java] '--subject=TEST.FOO'
     [java] '--persistent=false'
     [java] '--message-count=10'
     [java] '--message-size=1000'
     [java] '--time-to-live=0'
     [java] '--sleep-time=0'
     [java] '--transacted=false'
     [java] '--verbose=true'
     [java]
     [java] The ' characters around the executable and arguments are
     [java] not part of the command.
     [java] java.io.IOException: No such file or directory

BUILD SUCCESSFUL
Total time: 1 second
[root@gabrielle example]#

-- 
View this message in context: http://www.nabble.com/Error-with---ant--v-producer-tf3910428s2354.html#a11087669
Sent from the ActiveMQ - User mailing list archive at Nabble.com.