GeeCON Prague 2014*
The moose likes JBoss/WildFly and the fly likes Error in ant test command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Error in ant test command" Watch "Error in ant test command" New topic
Author

Error in ant test command

beata jane
Ranch Hand

Joined: Sep 10, 2009
Posts: 43
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\JESUS M REDEEMER>d:

Sir,
I am getting this error while doing ant test command....I am trying a tutorial pdf provided in jbpm-bpel-1.1.1...

D:\>cd "duke's bank"

D:\duke's bank>cd jbpm-bpel-1.1.1

D:\duke's bank\jbpm-bpel-1.1.1>cd examples

D:\duke's bank\jbpm-bpel-1.1.1\examples>ant test
Buildfile: build.xml

test:

test:

detect.wsdl:

get.published.wsdl:
[copy] Copying 5 files to D:\duke's bank\jbpm-bpel-1.1.1\examples\atm\targe
t\resources\web\wsdl

check.mapping:

generate.mapping:

detect.mapping.tool:

wstools:

detect.mapping.tool:

wscompile:

BUILD FAILED
D:\duke's bank\jbpm-bpel-1.1.1\examples\build.xml:92: The following error occurr
ed while executing this line:
D:\duke's bank\jbpm-bpel-1.1.1\examples\build.xml:39: The following error occurr
ed while executing this line:
D:\duke's bank\jbpm-bpel-1.1.1\examples\common\mapping-build.xml:148: The follow
ing error occurred while executing this line:
D:\duke's bank\jbpm-bpel-1.1.1\examples\common\mapping-build.xml:121: unbalanced
quotes in -Duser.dir=D:\duke's bank\jbpm-bpel-1.1.1\examples\atm

Total time: 3 seconds
D:\duke's bank\jbpm-bpel-1.1.1\examples>
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

I see two problems looking at this directory path: D:\duke's bank

First, the single quote is confusing the parser, that is why you are getting this error:
unbalanced quotes in -Duser.dir=D:\duke's bank\jbpm-bpel-1.1.1\examples\atm

Second, the space is also going to cause problems for the same reason - some parser just cannot handle it.

I recommend changing it to c:\dukesbank


JBoss In Action
beata jane
Ranch Hand

Joined: Sep 10, 2009
Posts: 43
I have tried that too by changing the name.But still i am getting the same error sir.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

If you did it correctly, the error should have gone away. There is no guarantee, however, that you will not run into another error. Please post the output you are now seeing, including the ant command you entered.
beata jane
Ranch Hand

Joined: Sep 10, 2009
Posts: 43

D:\dukesbank\jbpm-bpel-1.1.1\examples\hello>ant test
Buildfile: build.xml

detect.wsdl:

get.published.wsdl:

BUILD FAILED
D:\dukesbank\jbpm-bpel-1.1.1\examples\common\mapping-build.xml:138: D:\dukesbank
\jbpm-bpel-1.1.1\examples\hello\dukesbank\jboss-4.2.3.GA\server\default\data\wsd
l\hello.war not found.

Total time: 0 seconds
D:\dukesbank\jbpm-bpel-1.1.1\examples\hello>ant
Buildfile: build.xml

define.register.task:

register.partners:

package.process:

deploy.process:
[deployprocess] deploying process: hello.zip

main:

BUILD SUCCESSFUL
Total time: 12 seconds
D:\dukesbank\jbpm-bpel-1.1.1\examples\hello>ant test
Buildfile: build.xml

detect.wsdl:

get.published.wsdl:

BUILD FAILED
D:\dukesbank\jbpm-bpel-1.1.1\examples\common\mapping-build.xml:138: D:\dukesbank
\jbpm-bpel-1.1.1\examples\hello\dukesbank\jboss-4.2.3.GA\server\default\data\wsd
l\hello.war not found.

Total time: 1 second



This is the error i am getting....please help me to get through this sir.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Do you see that the error is now different, and that it is not the same problem? Details like that are important when debugging a problem.

Looks like the WAR file is not where it was expected. Why if the buildscript looking for the WAR at that particular location? I also wonder why the script is logging for a WAR file within a target named "get.published.wsdl"

If the above does not help, post the get.published.wsdl target and post the values of the pertinent properties. (If the script is not too long, 100 lines or less, just post the whole thing)
beata jane
Ranch Hand

Joined: Sep 10, 2009
Posts: 43





This is the mapping-build.xml file sir...
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Please use the code tag when posting xml. I know that the code tag does not let you embed other tags, such as your color tag, but having the whole source file easy to read is more important than highlighting a specific target.

I'll have to look at the build script later, I'm kind of pressed for time.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

The copy task on lines 138 to 140 tries to copy the file identified by ${jboss.wsdl.dir}, which is set in line 40. However, I do not see ${jboss.wsdl.dir} used anywhere else in the build script.

What target are you passing to ant? The script does not have a "test" target.
 
GeeCON Prague 2014
 
subject: Error in ant test command