J2ee.template ant build failed

Hello,
I am not sure why the following error that ant encountered while compiling with the init setting on java.class.path points to jboss-j2ee.jar file already. Believe the jboss-j2ee.jar file has the javax.jms.ConnectionFactory class included in the jar. Do I need other jar files?
Thanks in advance.
Alan
compile:
[javac] Compiling 1 source file to C:\user\product\JBoss\j2ee.template\ejb\build\class
es
[javac] C:\user\product\JBoss\j2ee.template\ejb\src\main\client\com\mpg\template\clien
t\TestClient.java:88: cannot resolve symbol
[javac] symbol : method createConnection ()
[javac] location: interface javax.jms.ConnectionFactory
[javac] lConnection = lFactory.createConnection();
[javac] ^
init:
[echo] build.compiler = ${build.compiler}
[echo] user.home = C:\Documents and Settings\alan
[echo] java.home = c:\j2sdk1.4.2_03\jre
[echo] ant.home = c:\ant\bin\..
[echo] jboss.home = c:/user/product/jboss/jboss-3.2.3-src/build/output/jboss-3.2.3
[echo] xdoclet.home = c:xdoclet
[echo] junit.home = c:/junit3.8.1
[echo] java.class.path = c:\ant\bin\..\lib\ant-launcher.jar;C:\user\product\JBoss\j2e
e.template\.\;c:\j2sdk1.4.2_03\jre\lib\rt.jar;c:\user\product\jboss\jboss-3.2.3-src\build\
output\jboss-3.2.3\server\default\lib\jboss-j2ee.jar;C:\ant\lib\ant-antlr.jar;C:\ant\lib\a
nt-apache-bsf.jar;C:\ant\lib\ant-apache-resolver.jar;C:\ant\lib\ant-commons-logging.jar;C:
\ant\lib\ant-commons-net.jar;C:\ant\lib\ant-icontract.jar;C:\ant\lib\ant-jai.jar;C:\ant\li
b\ant-jakarta-bcel.jar;C:\ant\lib\ant-jakarta-log4j.jar;C:\ant\lib\ant-jakarta-oro.jar;C:\
ant\lib\ant-jakarta-regexp.jar;C:\ant\lib\ant-javamail.jar;C:\ant\lib\ant-jdepend.jar;C:\a
nt\lib\ant-jmf.jar;C:\ant\lib\ant-jsch.jar;C:\ant\lib\ant-junit.jar;C:\ant\lib\ant-launche
r.jar;C:\ant\lib\ant-netrexx.jar;C:\ant\lib\ant-nodeps.jar;C:\ant\lib\ant-starteam.jar;C:\
ant\lib\ant-stylebook.jar;C:\ant\lib\ant-swing.jar;C:\ant\lib\ant-trax.jar;C:\ant\lib\ant-
vaj.jar;C:\ant\lib\ant-weblogic.jar;C:\ant\lib\ant-xalan1.jar;C:\ant\lib\ant-xalan2.jar;C:
\ant\lib\ant-xslp.jar;C:\ant\lib\ant.jar;C:\ant\lib\xercesImpl.jar;C:\ant\lib\xml-apis.jar
;c:\j2sdk1.4.2_03\lib\tools.jar

Hi,
I've got the same problem, but with the JBOSS 3.0, here is the sample output:
My settings are:
init:
[echo] build.compiler = ${build.compiler}
[echo] user.home = C:\Documents and Settings\Marek
[echo] java.home = c:\j2sdk\jre
[echo] ant.home = c:\ant\bin\\..
[echo] jboss.home = c:/jboss
[echo] xdoclet.home = c:/xdoc
[echo] junit.home = c:/junit
[echo] java.class.path = c:\j2sdk\lib\tools.jar;c:\ant\bin\\..\lib\crimson.jar;c:\ant\bin\\..\lib\jaxp.jar;c:\ant\bin\\..\lib\ant.jar;;C:\xerces\xml-apis.jar;C:\xerces\xercesImpl.jar;C:\xerces\tools\xalan.jar;C:\xerces\xercesSamples.jar;C:\ant\lib;c:\junit;C:\jboss\lib;C:\jboss\client;C:\jboss\server\all\lib;C:\template\j2ee.template
[echo]
And at the end I get the message:
compile:
[javac] Compiling 1 source file to C:\template\j2ee.template\ejb\build\classes
[javac] C:\template\j2ee.template\ejb\src\main\client\com\mpg\template\client\TestClient.java:88: cannot resolve symbol
[javac] symbol : method createConnection ()
[javac] location: interface javax.jms.ConnectionFactory
[javac] lConnection = lFactory.createConnection();
[javac] ^
[javac] C:\template\j2ee.template\ejb\src\main\client\com\mpg\template\client\TestClient.java:90: cannot resolve symbol
[javac] symbol : method createSession (boolean,int)
[javac] location: interface javax.jms.Connection
[javac] Session lJMSSession = lConnection.createSession( false, Session.AUTO_ACKNOWLEDGE );
[javac] ^
[javac] C:\template\j2ee.template\ejb\src\main\client\com\mpg\template\client\TestClient.java:95: cannot resolve symbol
[javac] symbol : method createProducer (javax.jms.Queue)
[javac] location: interface javax.jms.Session
[javac] MessageProducer lProducer = lJMSSession.createProducer( lQueue );
[javac] ^
[javac] C:\template\j2ee.template\ejb\src\main\client\com\mpg\template\client\TestClient.java:98: cannot resolve symbol
[javac] symbol : method send (javax.jms.TextMessage)
[javac] location: interface javax.jms.MessageProducer
[javac] lProducer.send( lMessage );
[javac] ^
[javac] C:\template\j2ee.template\ejb\src\main\client\com\mpg\template\client\TestClient.java:100: cannot resolve symbol
[javac] symbol : method send (javax.jms.TextMessage)
[javac] location: interface javax.jms.MessageProducer
[javac] lProducer.send( lMessage );
[javac] ^
[javac] C:\template\j2ee.template\ejb\src\main\client\com\mpg\template\client\TestClient.java:102: cannot resolve symbol
[javac] symbol : method send (javax.jms.TextMessage)
[javac] location: interface javax.jms.MessageProducer
[javac] lProducer.send( lMessage );
[javac] ^
[javac] 6 errors
BUILD FAILED
C:\template\j2ee.template\ejb\build.xml:213: Compile failed, messages should hav
e been provided.
Total time: 7 seconds
Please tell me what is wrong???
Big thanx for your help
Rabenda

Similar Messages

  • Ant Build Fails on MacOS

    I am trying to build the latest SVN build on a MacOS 10.6 and it fails.  I've steps through the instructions from here:
    http://opensource.adobe.com/wiki/display/flexsdk/Get+Source+Code
    ...but regardless I always get the following output in Terminal:
    BUILD FAILED
    /Applications/Adobe Flash Builder 4/sdks/trunk/build.xml:341: The following error occurred while executing this line:
    /Applications/Adobe Flash Builder 4/sdks/trunk/build.xml:318: Java returned: 1
    Help.

    Also when I execute the 'source setup.sh' command in Terminal, I get the following:
    flexmachine@Flex-Machine:/Applications/Adobe Flash Builder 4/sdks/trunk$ source setup.sh
    setup.sh: Setting default  ANT_HOME=/Users/flexmachine/bin/apache-ant-1.7.0
    setup.sh: Setting default JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
    -bash: [: too many arguments
    Would that last line be an issue for me?

  • JDIC and ANT - BUILD FAILED

    Can anyone help me?
    I am trying to launch lotus notes from my java application. I made some changes in �ServiceManagerStub.java� to launch lotus note. Here is the changes I made.
    URL: https://jdic.dev.java.net/issues/show_bug.cgi?id=408
    Now I am trying to rebuild build.xml using �ANT�.
    I am using DOS prompt for my compilation.
    I am getting following error. Could any one help me?
    This is the command I used: �ant buildall�
    This is the error I got:
    BUILD FAILED:
    C:\..\..\build.xml:153: The following error occurred while executing this line:
    C:\..\..\build.xml:217: Execute failed: java.io.IOException: createprocess: nmake /f jdic.mak �CFG=jdic � win32 Release� error=2
    This is the command I used: �ant buildwin32�
    This is the error I got:
    BUILD FAILED:
    C:\..\..\build.xml:217: Execute failed: java.io.IOException: createprocess: nmake /f jdic.mak �CFG=jdic � win32 Release� error=2
    Thank you very much for your help.
    Sam
    Message was edited by:
    sam22

    Option 1: I tried to find out the folder where
    "nmake" is located. I could not find it. Could you
    tell me how to find out that folder?If you're on Windows, go to My Computer -> Search and give it some time :-)
    Option 2: I understood that I have to uses external
    path for this. But I am not sure how to do that. Is
    there any way I can get the steps that I have to
    follow? If you want to use the PATH environment variable, it differs slightly between Windows versions.
    I suggest, after you found out the path, first you specify the full path right there in your Ant file where you exec it, just to see if that works. Then, if you have a need to make your script a bit more portable, you can refactor so the path is in an Ant property, which you could choose to define in an external file for maximum flexibility.
    For more information about Ant, see http://ant.apache.org/manual/index.html but feel free to come back with a concrete problem.

  • Ant - build failed

    Hi guys, I was using ant to build my servlet project but in vain. My build.xml contains the following taskdefs.
      <taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask" />
      <taskdef name="list" classname="org.apache.catalina.ant.ListTask" />
      <taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask" />
      <taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask" /> I've copied the catalina-ant.jar to the $ANT_HOME/lib folder as instructed. I could actually run ant on the same build.xml file yesterday, but not today unfortunately. Here is the error message:
    build.xml:146: taskdef A class needed by class org.apache.catalina.ant.DeployTask cannot be found: o
    rg/apache/tools/ant/Task
            at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:501)
            at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:214)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
            at org.apache.tools.ant.Task.perform(Task.java:401)
            at org.apache.tools.ant.Target.execute(Target.java:338)
            at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:172)
            at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:126)
            at org.apache.tools.ant.Main.runBuild(Main.java:654)
            at org.apache.tools.ant.Main.startAnt(Main.java:220)
            at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
            at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
    Caused by: java.lang.NoClassDefFoundError: org/apache/tools/ant/Task
            at java.lang.ClassLoader.findBootstrapClass(Native Method)
            at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:709)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:284)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
            at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1218)
            at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:994)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:219)
            at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:471)
            ... 10 more
    --- Nested Exception ---
    java.lang.NoClassDefFoundError: org/apache/tools/ant/Task
            at java.lang.ClassLoader.findBootstrapClass(Native Method)
            at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:709)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:284)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
            at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1218)
            at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:994)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:219)
            at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:471)
            at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:214)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
            at org.apache.tools.ant.Task.perform(Task.java:401)
            at org.apache.tools.ant.Target.execute(Target.java:338)
            at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:172)
            at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:126)
            at org.apache.tools.ant.Main.runBuild(Main.java:654)
            at org.apache.tools.ant.Main.startAnt(Main.java:220)
            at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
            at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)Any help will be appreciated. =)

    I'm quite sure that everything was set properly. I put the catalina-ant.jar in $JAVA_HOME/jre/lib/ext and that caused the problem. It's fine now after I removed the jar package.
    Thanks for your response. Cheers. =)

  • Asant build: BUILD FAILED

    Hi All,
    I'm trying the helloservice example from the J2EE Tutorial. When I build it with asant build, I have the message bellow:
    generate-wsdl:
    prepare:
    [echo] Creating the required directories....
    set-wscompile:
    run-wscompile:
    [echo] Running wscompile:
    [echo] /bin/wscompile.bat -define -mapping build/mapping.xml -d build -nd build -classpath build config-interface.xml
    BUILD FAILED
    file:D/Javaj2sdk/j2eetutorial14/examples/jaxrpc/common/targets.xml:64: Execute failed: java.io.IOException: CreateProcess: \bin\wscompile.bat -define -mapping build/mapping.xml -d build -nd build -classpath build config-interface.xml error=3
    Can someone please help me?
    Thank you..:)

    Hello Every One actually i got error when i m giving asant build..................
    please give me a solution
    Buildfile: build.xml
    j2ee-home-test:
    BUILD FAILED
    F:\j2eetutorial14\examples\common\targets.xml:10: The j2ee.home property is not
    properly set in <INSTALL>/j2eetutorial14/examples/common/build.properties.
    Set the j2ee.home property to the location of your Application Server installati
    on.
    On Windows, you must escape any backslashes in the j2ee.home property with anoth
    er backslash or use forward slashes as a path separator. So, if your Application
    Server installation is C:\Sun\AppServer, you must set j2ee.home as follows:
    j2ee.home = F:\\Sun\\AppServer
    or
    j2ee.home=F:/Sun/AppServer
    j2ee.home is currently set to:
    Total time: 2 seconds

  • Running ant build scripts from cmd fails on Windows Server

    Hi all!
    I'm trying to build and package ME on a Windows Server calling the ant build script targets from cmd. This works fine on a Windows XP machine. On a Windows Server machine however the ant internal calls to nwcetool.bat are failing because -files are not found in DEPLOYARCHIVES. And these files are really not there although they should have been created by nwcetool.
    Does anyone have a clue why calling ant build script in cmd on a Windows XP machine will work but fails on Window Server?
    Thanks a lot!

    And this is part 2 :
    package.sca.impl:
       delete Deleting directory C:\SAP\SAPME\SDK\build\results\server\package.sca
        mkdir Created dir: C:\SAP\SAPME\SDK\build\results\server\package.sca
        mkdir Created dir: C:\SAP\SAPME\SDK\build\results\server\package.sca\ear
        mkdir Created dir: C:\SAP\SAPME\SDK\build\results\server\package.sca\sca\BUILDARCHIVES
        mkdir Created dir: C:\SAP\SAPME\SDK\build\results\server\package.sca\sca\DEPLOYARCHIVES
       delete Deleting directory C:\SAP\SAPME\SDK\build\results\server\create.application.xml
        mkdir Created dir: C:\SAP\SAPME\SDK\build\results\server\create.application.xml
         echo 2011-04-07 09:33:45 Creating application descriptor.
         xslt Processing C:\SAP\SAPME\SDK\extension\META-INF\application.xml to C:\SAP\SAPME\SDK\build\results\server\create.application.xml\application.xml
         xslt Loading stylesheet C:\SAP\SAPME\SDK\build\xslt\create-application-xml.xslt
         xslt ejbModule=
         xslt webModule=salt-webservice
         copy Copying 1 file to C:\SAP\SAPME\SDK\extension\META-INF
       delete Deleting directory C:\SAP\SAPME\SDK\build\results\server\merge.application.xml
        mkdir Created dir: C:\SAP\SAPME\SDK\build\results\server\merge.application.xml
         echo 2011-04-07 09:33:45 Merging application descriptor "C:\SAP\SAPME\SDK\extension\META-INF/application.xml" with "C:\SAP\SAPME\SDK\build\results\server\master\resources\xml/application.xml".
         xslt Processing C:\SAP\SAPME\SDK\build\results\server\master\resources\xml\application.xml to C:\SAP\SAPME\SDK\build\results\server\merge.application.xml\merged.xml
         xslt Loading stylesheet C:\SAP\SAPME\SDK\build\xslt\jee-application-merge.xslt
         xslt jee-application-merge: file to merge is C:\SAP\SAPME\SDK\extension\META-INF/application.xml
         xslt jee-application-merge: checking for module conflicts...
         xslt jee-application-merge: Base EJBs=me.activity.ejb-5.2.5.3-Base.jar m
    e.alarm.ejb-5.2.5.3-Base.jar me.appconfig.ejb-5.2.5.3-Base.jar me.backgroundproc
    ess.ejb-5.2.5.3-Base.jar me.browse.ejb-5.2.5.3-Base.jar me.common.frame.ejb-5.2.
    5.3-Base.jar me.container.ejb-5.2.5.3-Base.jar me.correctiveaction.ejb-5.2.5.3-B
    ase.jar me.customdata.ejb-5.2.5.3-Base.jar me.datacollection.ejb-5.2.5.3-Base.ja
    r me.dbsequence.ejb-5.2.5.3-Base.jar me.defaultvalue.ejb-5.2.5.3-Base.jar me.dem
    and.ejb-5.2.5.3-Base.jar me.integration.xml.ejb-5.2.5.3-Base.jar me.inventory.ej
    b-5.2.5.3-Base.jar me.nonconformance.ejb-5.2.5.3-Base.jar me.productdefinition.e
    jb-5.2.5.3-Base.jar me.production.ejb-5.2.5.3-Base.jar me.status.ejb-5.2.5.3-Bas
    e.jar me.numbering.ejb-5.2.5.3-Base.jar me.diagnostics.ejb-5.2.5.3-Base.jar me.d
    ocument.ejb-5.2.5.3-Base.jar me.httpserver.ejb-5.2.5.3-Base.jar me.integration.c
    nc.ejb-5.2.5.3-Base.jar me.integration.collaboration.ejb-5.2.5.3-Base.jar me.int
    egration.sap.ejb-5.2.5.3-Base.jar me.labor.ejb-5.2.5.3-Base.jar me.user.ejb-5.2.
    5.3-Base.jar me.ods.ejb-5.2.5.3-Base.jar me.plant.ejb-5.2.5.3-Base.jar me.produc
    tiondate.ejb-5.2.5.3-Base.jar me.reasoncode.ejb-5.2.5.3-Base.jar me.reporting.ej
    b-5.2.5.3-Base.jar me.rtw.ejb-5.2.5.3-Base.jar me.script.ejb-5.2.5.3-Base.jar me
    .security.ejb-5.2.5.3-Base.jar me.solutionverification.ejb-5.2.5.3-Base.jar me.t
    imegranularity.ejb-5.2.5.3-Base.jar me.tooling.ejb-5.2.5.3-Base.jar
         xslt jee-application-merge: SSP EJBs=
         copy Copying 1 file to C:\SAP\SAPME\SDK\build\results\server\sda\META-INF
         copy Copying 163 files to C:\SAP\SAPME\SDK\build\results\server\package.sca\ear
          jar Building jar: C:\SAP\SAPME\SDK\build\results\server\package.sca\sca\BUILDARCHIVES\me.ear
         echo 2011-04-07 09:33:45 nwce.tool=C:\SAP\SAPME\SDK\build\tools\ceclt\nwcetool\nwcetool.bat, nwce.tool.lib=C:\SAP\SAPME\SDK\build\tools\ceclt\lib, CECLT JDK=C:Program Files (x86)Javajdk1.5.0_22
         echo 2011-04-07 09:33:45 Executing CECLT with the following arguments:
    -c "createsda -n me/ear -v sap.com -l local -type J2EE -counter 5.2.5.3.330 -scn
    ME -scv sap.com -deps sap.com:me/security/loginmodule BUILDARCHIVES\me.ear DEPLOYARCHIVES\me.web-ext.sda-5.2.5.3-Base" -e
         exec The filename, directory name, or volume label syntax is incorrect.
         exec Result: 1
    BUILD FAILED
    C:\SAP\SAPME\SDK\build\script\build.dev.sobsap2.xml:1665: The following error occurred while executing this line:
    C:\SAP\SAPME\SDK\build\script\build.dev.sobsap2.xml:1723: Warning: Could not find file C:\SAP\SAPME\SDK\build\results\server\package.sca\sca\DEPLOYARCHIVES\me.web-ext.sda-5.2.5.3-Base.ear to copy.

  • Jwstutorial13 ant install build fail

    Hello again. I am still working on CH3 of the jwstutorial 13 on windowsxp home edition
    the build properties file is as follows:
    tutorial.home=C:/jwstutorial13
    tutorial.install=${tutorial.home}/jwstutorial13
    username=myusername
    password=mypassword
    host=localhost
    port=8080
    secure.port=8443
    url=http://${host}:${port}/manager
    ant build was successful
    ant install failed:
    file:C:/jwstutorial13/exmaples/common/targets.xml:15: java.io.IOException:Server returned
    HTTP response code: 401 for URL:http://localhost:8080/manager/install?path=%2Fgs&war=file%3AC%A2Fjwstutorial13%2Fjwstutorial13%jwstutorial13%2Fexamples%2Fgs%2Fbuild
    I checked out targets.xml at line 15 which appears to refer to the context and war files.
    I went through the tutorial and modified the build file. In the set up, i put all the required files in the path.
    i have gone through previous complaints about this in this forum and there have been many suggestions, but none of them have been specific to line 15 of the the targets.xml which appears to be concerned with the context and war files.
    any help with this would be greatly appreciated.
    thanks.

    also,
    in the jwsdp_log i also see this:
    2003-12-19 16:51:07 createObjectName with StandardEngine[Catalina]
    2003-12-19 16:51:07 preRegister with Catalina:type=Logger
    2003-12-19 16:51:07 UserDatabaseRealm[Catalina]: Exception looking up UserDatabase under key UserDatabase
    javax.naming.NamingException: Element type "user" must be followed by either attribute specifications, ">" or "/>".
         at org.apache.naming.NamingContext.lookup(NamingContext.java:849)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:197)
         at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:302)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1119)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:502)
         at org.apache.catalina.core.StandardService.start(StandardService.java:519)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2311)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:328)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    2003-12-19 17:04:13 createObjectName with StandardEngine[Catalina]
    2003-12-19 17:04:13 preRegister with Catalina:type=Logger
    2003-12-19 17:04:13 UserDatabaseRealm[Catalina]: Exception looking up UserDatabase under key UserDatabase
    javax.naming.NamingException: Element type "user" must be followed by either attribute specifications, ">" or "/>".
         at org.apache.naming.NamingContext.lookup(NamingContext.java:849)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:197)
         at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:302)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1119)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:502)
         at org.apache.catalina.core.StandardService.start(StandardService.java:519)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2311)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:328)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    2003-12-19 17:12:04 createObjectName with StandardEngine[Catalina]
    2003-12-19 17:12:04 preRegister with Catalina:type=Logger
    2003-12-19 17:12:04 UserDatabaseRealm[Catalina]: Exception looking up UserDatabase under key UserDatabase
    javax.naming.NamingException: Element type "user" must be followed by either attribute specifications, ">" or "/>".
         at org.apache.naming.NamingContext.lookup(NamingContext.java:849)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:197)
         at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:302)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1119)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:502)
         at org.apache.catalina.core.StandardService.start(StandardService.java:519)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2311)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:328)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    at c:\jwstutorial13\examples\common\targets.xml i see this:
    Only one top level element is allowed in an XML document. Error processing resource 'file:///C:/jwstutorial13/examples/common/targets.xml'. Line 2, Position 4
    <taskdef name="install" classname="org.apache.catalina.ant.InstallTask"/>
    ---^
    the source code of targets.xml:
    <taskdef name="list" classname="org.apache.catalina.ant.ListTask"/>     
    <taskdef name="install" classname="org.apache.catalina.ant.InstallTask"/>
    <taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask"/>
    <taskdef name="remove" classname="org.apache.catalina.ant.RemoveTask"/>     
    <taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/>     
    <taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask"/>     
    <target name="list" description="List web applications" >
    <list url="${url}" username="${username}" password="${password}" />
    </target>
    <target name="install" description="Install web application"
    depends="build">
    <install url="${url}" username="${username}" password="${password}"
    path="/${context.path}" war="file:${build}"/>
    </target>
    <target name="reload" description="Reload web application"
    depends="build">
    <reload url="${url}" username="${username}" password="${password}"
    path="/${context.path}"/>
    </target>
    <target name="remove" description="Remove web application">
    <remove url="${url}" username="${username}" password="${password}"
    path="/${context.path}"/>
    </target>
    <target name="package"
    description="Packages the WAR file">
    <echo message="Packaging the WAR...."/>
    <delete file="dist/${war.file}" />
    <jar jarfile="dist/${war.file}" >
    <fileset dir="${build}" />
    </jar>
    </target>
    <target name="deploy" description="Deploy a Web application">
    <deploy url="${url}" username="${username}" password="${password}"
    path="/${context.path}" war="file:${example.path}/dist/${war.file}"
    />
    </target>
    <target name="undeploy" description="Undeploy web application">
    <undeploy url="${url}" username="${username}" password="${password}"
    path="/${context.path}"/>
    </target>
    Thank you very much for your help in this.
    cyuno

  • ANT Build script failing while generating junit style reports

    Hi,
    Actually I got an ANT build script which does the following:
    1) compiles AS code and generates swc
    2) generate AS docs
    3) compiles flex unit reports
    4) Generate wrappers
    the last part is getting the xml style reporting.
    here is the ant script for that part:
    <target name="executeTestRunner" description="executes the test runner app">
                        <echo>Running Test Runner SWF</echo>
                        <flexunit swf="${Test.dir}/${TestRunner.name}.swf"
                                  toDir="${FlexUnitReport.dir}"
                                  haltonfailure="false"
                                  verbose="true"
                                  localTrusted="true"/>
                        <echo>Ran Test Runner SWF</echo>
                        <echo>Generate Readable Tests</echo>
                        <junitreport todir="${FlexUnitReport.dir}">
                                  <fileset dir="${FlexUnitReport.dir}">
                                            <include name="Test-*.xml"/>
                                  </fileset>
                                  <report format="frames" todir="${FlexUnitReport.dir}/html"/>
                        </junitreport>
                        <echo>Generated Readable Tests</echo>
              </target>
    I got this error after running:
    flexunit] haltonfailure: [false]
    [flexunit] headless: [false]
    [flexunit] display: [99]
    [flexunit] localTrusted: [true]
    [flexunit] player: [flash]
    [flexunit] command: [C:\Program Files\Adobe\Adobe Flash Builder for Force.com\sdks\4.5.1.21328\runtimes\player\10.2\win\FlashPlayerDebugg er.exe]
    [flexunit] port: [1024]
    [flexunit] swf: [C:\Users\user\Documents\workspace\project\bin-debug\projectTestRunne r.swf]
    [flexunit] timeout: [60000ms]
    [flexunit] toDir: [C:\Users\user\Documents\workspace\project\report]
    [flexunit] Setting up server process ...
    [flexunit] Starting server ...
    [flexunit] Opening server socket on port [1024].
    [flexunit] Waiting for client connection ...
    [flexunit] Stopping server ...
    [flexunit] End of test data reached, sending acknowledgement to player ...
    [flexunit] Closing client connection ...
    [flexunit] Closing server on port [1024] ...
    BUILD FAILED
    I added CIlistener part in mxml also.
    import org.flexunit.listeners.CIListener;
    core.addListener(new CIListener());
    still getting the error.
    Any one can help on this.. The intent is to get the headless reports for flex application same as we do phantom/jasmine thing in javascript.
    Thank a lot
    Mayank

    Hi,
    Actually I got an ANT build script which does the following:
    1) compiles AS code and generates swc
    2) generate AS docs
    3) compiles flex unit reports
    4) Generate wrappers
    the last part is getting the xml style reporting.
    here is the ant script for that part:
    <target name="executeTestRunner" description="executes the test runner app">
                        <echo>Running Test Runner SWF</echo>
                        <flexunit swf="${Test.dir}/${TestRunner.name}.swf"
                                  toDir="${FlexUnitReport.dir}"
                                  haltonfailure="false"
                                  verbose="true"
                                  localTrusted="true"/>
                        <echo>Ran Test Runner SWF</echo>
                        <echo>Generate Readable Tests</echo>
                        <junitreport todir="${FlexUnitReport.dir}">
                                  <fileset dir="${FlexUnitReport.dir}">
                                            <include name="Test-*.xml"/>
                                  </fileset>
                                  <report format="frames" todir="${FlexUnitReport.dir}/html"/>
                        </junitreport>
                        <echo>Generated Readable Tests</echo>
              </target>
    I got this error after running:
    flexunit] haltonfailure: [false]
    [flexunit] headless: [false]
    [flexunit] display: [99]
    [flexunit] localTrusted: [true]
    [flexunit] player: [flash]
    [flexunit] command: [C:\Program Files\Adobe\Adobe Flash Builder for Force.com\sdks\4.5.1.21328\runtimes\player\10.2\win\FlashPlayerDebugg er.exe]
    [flexunit] port: [1024]
    [flexunit] swf: [C:\Users\user\Documents\workspace\project\bin-debug\projectTestRunne r.swf]
    [flexunit] timeout: [60000ms]
    [flexunit] toDir: [C:\Users\user\Documents\workspace\project\report]
    [flexunit] Setting up server process ...
    [flexunit] Starting server ...
    [flexunit] Opening server socket on port [1024].
    [flexunit] Waiting for client connection ...
    [flexunit] Stopping server ...
    [flexunit] End of test data reached, sending acknowledgement to player ...
    [flexunit] Closing client connection ...
    [flexunit] Closing server on port [1024] ...
    BUILD FAILED
    I added CIlistener part in mxml also.
    import org.flexunit.listeners.CIListener;
    core.addListener(new CIListener());
    still getting the error.
    Any one can help on this.. The intent is to get the headless reports for flex application same as we do phantom/jasmine thing in javascript.
    Thank a lot
    Mayank

  • FlexUnit fails when doing ant-build

    Hello,
      I am trying to build a flex project (ActionScript/ robotleg), via ant-build. I am facing the below given error trace. But that works perfectly when I do a quick build.
    Not sure why it is not working in default build and working in quick build alone? Need some helping hands to fix this issue...
    [flexunit] ReferenceError: Error #1065: Variable com.aa.fs.extensions.connectivitymanager.vos::NetworkInfo is not defined.
    [flexunit] at _TestRunnerApp_FlexInit$/init()
    [flexunit] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.y\frameworks\projects\frame work\src\mx\managers\SystemManager.as:2815]
    [flexunit] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.y\framewo rks\projects\framework\src\mx\managers\SystemManager.as:2723]
    [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
    [flexunit] at flash.events::EventDispatcher/dispatchEvent()
    [flexunit] at mx.preloaders::Preloader/timerHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\p reloaders\Preloader.as:542]
    [flexunit] at flash.utils::Timer/_timerDispatch()
    [flexunit] at flash.utils::Timer/tick()
    [flexunit]
    [flexunit] Stopping server ...
    [flexunit] End of test data reached, sending acknowledgement to player ...
    [flexunit] Closing client connection ...
    [flexunit] Closing server on port [1024] ...
    BUILD FAILED
    C:\<<Project-Path>>\build.xml:30: The following error occurred while executing this line:
    C:\<<Project-Path>>\build.xml:275: java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report

    Hi Rajat,
    Thanks a lot. Indeed i found the error in task view.
    It is referring to a window in my webdynpro application.
    "window has no InterfaceView".
    Indeed the interface view is not there and there is no option for me to create the interface view.
    So what i did is to delete the window so that i can create a new one and the interface view will thus be generated. But when i tried to delete the window, a null pointer exception window is pop out.
    I remember when i created this window the other time, there was an exception.
    So the question is how to create the interface view ?
    Thanks
    Regards,
    Daniel

  • Java EE5 Tutorial -  'ant create-tables' BUILD FAILED

    Hi,
    Appologies, this is quite a begineers question, hopefully it's an easy one to answer. I've searched for the last few hours regarding this issue,
    trying things and searched the forums here at sun with no similar issue. As you can see below, I cannot create the tables for the bookstore1 application using 'ant'.
    I am getting a FileNotFoundException however the delete.sql and tutorial.sql files are at this location C:\javaee\javaeetutorial5\examples\common\sql\javadb\
    I have also made sure that the files have read and write access. I know their could be some permissions issues using vista if I installed at C:/ProgramFiles, so everything is in C:/
    Another thing I have tried is using the ant command directly even though the PATH is in my enviroment variables, just incase another version was conflicting, as I read about people having such issues.
    "C:\Sun\AppServer\lib\ant\bin\ant create-tables" => This gave the same error as below. Im not sure what other information may help you help me here, so just ask.
    Annoying thing is, this example worked fine when I set up the environment on my work laptop (which I have no access to now) earlier, I didn't have this issue.
    Thanks for your help.
    /Paul.
    c:\javaee\javaeetutorial5\examples\web\bookstore1>ant create-tables
    Buildfile: build.xml
    -pre-init:
    init:
    check:
    tools:
    start-db:
         [exec] Database already started on host localhost, port 1527.
         [exec] Command start-database executed successfully.
    delete-tables:
          [sql] Executing file: C:\javaee\javaeetutorial5\examples\web\bookstore1\=C:\javaee\javaeetutorial5\examples\common\sql\javadb\delete.sql
    BUILD FAILED
    C:\javaee\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.FileNotFoundException: C:\javaee\javaeetutorial5\examples\web\bookstore1\=C
    :\javaee\javaeetutorial5\examples\common\sql\javadb\delete.sql (The filename, directory name, or volume label syntax is incorrect)
    Total time: 21 seconds
    c:\javaee\javaeetutorial5\examples\web\bookstore1>

    Hi,
    This is due to the path problem that u specified in build.properties file for javaee.tutorial.home= variable. Use / instead of \. Problem will solved.
    Thanks
    Amalka

  • Build failed in hello2 for J2EE tutorial

    Hi guys, i faced with a build error when building hello2 example. Can someone pls advice, my hello1 is working perfectly fine. I am wondering if there is something wrong with the contents of the build.xml file. The error is as follows ...
    C:\j2eetutorial14\examples\web\hello2>asant build
    Buildfile: build.xml
    init:
    prepare:
    copy:
    build:
    [javac] Compiling 2 source files to C:\j2eetutorial14\examples\web\hello2\bu
    ild
    BUILD FAILED
    file:C:/j2eetutorial14/examples/web/hello2/build.xml:53: C:\Sun\AppServer \lib n
    ot found.
    Total time: 3 seconds

    hi, thanks for your advice. however, i think its not the build.properties file in examples/common as all the values there are by default and I have been following the tutorial closely... i think its due to the build.xml file in examples/hello2/build.xml as the error pointed to line 53 of that file... n line 53 is as follows:
    <target name="build" depends="copy" line 51
    description="Compile app Java files" > line 52
    <javac srcdir="src" destdir="${build}"> line 53
         <include name="**/*.java" /> line 54
         <classpath refid="classpath"/> line 55
    </javac>
    </target>
    can soneone who manage to do it from chapter 3 (pg 103) pls help?
    thanks.

  • EjbModule Build failed ...

    Hello all,
    I am new to CAF developing, and I am experiencing this problem: When I create new CAF DC and when I add only one entity service (only adding no other customization) a try to build this occurs through building:
    0.3.2006 18:37:30 /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: test3/ejbmodule: Build failed for sk.globesy/test3/ejbmodule(MyComponents) in variant "default": JDO enhancer failed because of internal Error.
    Build log -
    Development Component Build (2006-03-30 18:37:28)
      Component name: test3/ejbmodule
      Component vendor: sk.globesy
      SC compartment: MyComponents
      Configuration: LocalDevelopment
      Location: local
      Source code location: koskarm@gn10
      DC root folder: C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\DCs\sk.globesy\test3\ejbmodule\_comp\
      DC type: J2EE
      DC subtype: EJBModule
      Host: gn10
    DC Model check:
              [dcmake] All used DCs are available locally
              [dcmake] validating dependency to build plugin "sap.com/tc/bi/bp/ejbmodule"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/ejb20"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/jdbc20"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/jms"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/ddic/metamodel/content"
              [dcmake] validating dependency to  public part "CAFRuntimeAPI" of DC "sap.com/caf/runtime/impl"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/bi/mmr/core"
              [dcmake] validating dependency to  public part "compilation" of DC "sap.com/caf/metamodel"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.security.api.sda"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/logging"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.exception"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.jdo"
              [dcmake] validating dependency to  public part "compilation" of DC "sap.com/bi/mmr/cwm_1.0_source"
              [dcmake] validating dependency to  public part "jmi" of DC "sap.com/bi/mmr/jmi"
              [dcmake] validating dependency to  public part "ClientApi" of DC "sap.com/caf/km.proxyjava"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/bi/mmr/db"
              [dcmake] validating dependency to  public part "ClientAPI" of DC "sap.com/caf/runtime/security"
              [dcmake] validating dependency to  public part "ClientAPI" of DC "sap.com/caf/core/services"
              [dcmake] validating dependency to used DC "sap.com/caf/runtime/connectivity/base"
              [dcmake] validating dependency to used DC "sap.com/caf/runtime/connectivity"
              [dcmake] validating dependency to used DC "sap.com/applocking"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.engine.client.lib"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/kernel.sda"
              [dcmake] DC model check OK
    Start build plugin:
              [dcmake] using build plugin: sap.com/tc/bi/bp/ejbmodule
              [dcmake] starting build plugin from : C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\ejbmodule\_comp\gen\default\public\ejb\
    Build Plugin 'EJB Module Plugin', Version 6.40 SP 15  (630_VAL_REL, built on 2005-11-25 00:23:07 CET)
      development component: test3/ejbmodule (sk.globesy)
                       type: J2EE, subtype: EJBModule
         software component: MyComponents (sap.com)
                   location: local
            source location: koskarm@gn10
              build variant: default
          plugin start time: 2006-03-30 18:37:28 GMT+01:00 (CEST)
                    Java VM: Java HotSpot(TM) Client VM, 1.5.0_01-b08 (Sun Microsystems Inc.)
    General options:
    convert *.xlf to *.properties: yes
    include sources for debugging: yes
    Reading BuildInfrastructure extension from DC tc/bi/javatech (sap.com)
    Reading BuildInfrastructure extension from DC tc/bi/util (sap.com)
    Added technology 'sap.com/tc/bi/core'
    Added technology 'sap.com/tc/bi/javatech'
    Plugin initialized in 0.031 seconds
    Preparing data context..
    No 'default' JDK defined, will use running VM.
    Data context prepared in 0.015 seconds
    Executing macro file..
      Using macro file:     C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\ejbmodule\_comp\gen\default\public\ejb\macros\build.vm
      Creating output file: C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\DCs\sk.globesy\test3\ejbmodule\_comp\gen\default\logs\build.xml
    Macro file executed in 0.047 seconds
    Starting Ant..
      Using build file:     C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\DCs\sk.globesy\test3\ejbmodule\_comp\gen\default\logs\build.xml
      Using build target:   build
      Generation folder:    C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\t\EE76BAB34EE55D9582B939C3638F656A
    Ant build started at 2006-03-30 18:37:28 GMT+01:00 (CEST)
    Using Ant version 1.5.4
    prepare:
    compile:
         [javac] Compiling 7 source files to C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\t\EE76BAB34EE55D9582B939C3638F656A\classes
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
         [timer] Java compiler finished in 1.547 seconds
          [echo] Calling JDOEnhance task
    [jdo.enhance] Using classfile: C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\t\EE76BAB34EE55D9582B939C3638F656A\classes/globesy\sk\test3\besrv\testa\TestA.class
    [jdo.enhance] Using metadata : C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\DCs\sk.globesy\test3\ejbmodule\_comp\/ejbModule/globesy\sk\test3\besrv\testa\TestA.jdo
    [jdo.enhance] Using dst      : C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\t\EE76BAB34EE55D9582B939C3638F656A\classes
    Error while enhancing: JDO ENHANCER: At least one error occurred while enhancing input class for Transparent Persistence; detailed message(s): I/O error while reading input stream or input stream does not denote a valid Java class.
    com.sap.jdo.enhancer.EnhancerUserException: JDO ENHANCER: At least one error occurred while enhancing input class for Transparent Persistence; detailed message(s): I/O error while reading input stream or input stream does not denote a valid Java class.
         at com.sap.jdo.enhancer.filter.Enhancer.enhanceClassFile(Enhancer.java:238)
         at com.sap.jdo.enhancer.Main.enhanceClassFile(Main.java:516)
         at com.sap.jdo.enhancer.Main.enhanceInputFiles(Main.java:474)
         at com.sap.jdo.enhancer.Main.process(Main.java:139)
         at com.sap.jdo.anttasks.JDOEnhance.run(JDOEnhance.java:99)
         at com.sap.jdo.anttasks.JDOEnhance.execute(JDOEnhance.java:82)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
         at org.apache.tools.ant.Task.perform(Task.java:341)
         at org.apache.tools.ant.Target.execute(Target.java:309)
         at org.apache.tools.ant.Target.performTasks(Target.java:336)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
         at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:115)
         at com.sap.tc.buildplugin.AbstractAntBuildAction.execute(AbstractAntBuildAction.java:65)
         at com.sap.tc.buildplugin.AbstractPlugin.handleBuildStepSequence(AbstractPlugin.java:217)
         at com.sap.tc.buildplugin.AbstractPlugin.performBuild(AbstractPlugin.java:193)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.tc.buildtool.PluginCommunicator.maybeInvoke(PluginCommunicator.java:114)
         at com.sap.tc.buildtool.PluginCommunicatorV2.communicate(PluginCommunicatorV2.java:42)
         at com.sap.tc.buildtool.PluginHandlerImpl.handlePluginCommunication(PluginHandlerImpl.java:345)
         at com.sap.tc.buildtool.PluginHandlerImpl.execute(PluginHandlerImpl.java:175)
         at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1726)
         at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:5548)
         at com.sap.caf.designer.actions.DcBuildAction.buildDCsForDevConfig(DcBuildAction.java:768)
         at com.sap.caf.designer.actions.DcBuildAction.access$300(DcBuildAction.java:84)
         at com.sap.caf.designer.actions.DcBuildAction$1.run(DcBuildAction.java:500)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    aborted with errors.
    Ant build finished with ERRORS
    file:C:/Documents and Settings/koskarm/.dtc/LocalDevelopment/DCs/sk.globesy/test3/ejbmodule/_comp/gen/default/logs/build.xml:308: JDO enhancer failed because of internal Error.
    Ant build finished at 2006-03-30 18:37:30 GMT+01:00 (CEST), Duration: 1.75 seconds
    Build finished with ERROR
    Cleaning up.
    Total build plug-in runtime: 2.109 seconds
    My coleague have installed fresh installation of NWDS SPS15 and the same example on his installation work fine. All building proccesses are successfully executed. I tried it several times, everytime same result. I tried to use fresh workspace, tried to delete whole content in ./dtc.
    I compared every file with coleague installation. But no success. I am running out of ideas what should I do with it.
    If anyone was facing similar problem or have any idea. I will be glad to read it.
    Thanks
    Best regards Miroslav Koskar

    Hi,
    I have similar error:
    Can anybody help me?
    Regards.
    [jdo.enhance] WARNING: Caused by: com.sap.jdo.enhancer.util.UserException: The byte code of the class file has version 1.6. This is not supported by the JDO enhancer. Please compile with the option -target 1.5.
    [jdo.enhance] WARNING: at com.sap.jdo.enhancer.classfile.ClassFile.assertSupportedVersion(ClassFile.java:101)
    [jdo.enhance] WARNING: at com.sap.jdo.enhancer.classfile.ClassFile.<init>(ClassFile.java:364)
    [jdo.enhance] WARNING: at com.sap.jdo.enhancer.filter.Enhancer.enhanceClassFile1(Enhancer.java:144)
    [jdo.enhance] WARNING: at com.sap.jdo.enhancer.filter.Enhancer.enhanceClassFile(Enhancer.java:192)
    [jdo.enhance] WARNING: ... 45 more
    [jdo.enhance] aborted with errors.
    Ant runtime 1.07 seconds
    Ant build finished with ERRORS
    JDO enhancer failed because of unknown Error: 1
    Build stopped due to an error: JDO enhancer failed because of unknown Error: 1
    Build plugin finished at 2013-03-14 12:59:22 GMT+01:00 (CET)
    Total build plugin runtime: 1.34 seconds
    Build finished with ERROR

  • EJB Module build failed ...

    Hi All,
    I am trying to build an Entity Service in CAF. But it is unable to create the EJB Module.
    Error:
    JDO enhancer failed because of internal Error.
    Error: Build stopped due to an error: JDO enhancer failed because of internal Error.
    Can any one tell wht the exact problem is and how to rectify it.
    Thanks,
    Chaitanya.

    Development Component Build (2008-06-10 19:04:46)
      Component name: sample/ejbmodule
      Component vendor: sap.com
      SC compartment: MyComponents
      Configuration: LocalDevelopment
      Location: local
      Source code location: szp7rn@w2szp7rn01
      DC root folder: D:\Documents and Settings\szp7rn.GEMSCONSULT\.dtc\LocalDevelopment\DCs\sap.com\sample\ejbmodule\_comp\
      DC type: J2EE
      DC subtype: EJBModule
      Host: w2szp7rn01
    DC Model check:
       All used DCs are available locally
       validating dependency to build plugin "sap.com/tc/bi/bp/ejbmodule"
       validating dependency to  public part "default" of DC "sap.com/ejb20"
       validating dependency to  public part "default" of DC "sap.com/jdbc20"
       validating dependency to  public part "default" of DC "sap.com/jms"
       validating dependency to  public part "default" of DC "sap.com/tc/ddic/metamodel/content"
       validating dependency to  public part "CAFRuntimeAPI" of DC "sap.com/caf/runtime/impl"
       validating dependency to  public part "compilation" of DC "sap.com/caf/runtime/api"
       validating dependency to  public part "default" of DC "sap.com/bi/mmr/core"
       validating dependency to  public part "compilation" of DC "sap.com/caf/metamodel"
       validating dependency to  public part "default" of DC "sap.com/com.sap.security.api.sda"
       validating dependency to  public part "default" of DC "sap.com/tc/logging"
       validating dependency to  public part "default" of DC "sap.com/com.sap.exception"
       validating dependency to  public part "default" of DC "sap.com/com.sap.jdo"
       validating dependency to  public part "compilation" of DC "sap.com/bi/mmr/cwm_1.0_source"
       validating dependency to  public part "jmi" of DC "sap.com/bi/mmr/jmi"
       validating dependency to  public part "ClientApi" of DC "sap.com/caf/km.proxyjava"
       validating dependency to  public part "default" of DC "sap.com/bi/mmr/db"
       validating dependency to  public part "ClientAPI" of DC "sap.com/caf/runtime/security"
       validating dependency to  public part "ClientAPI" of DC "sap.com/caf/core/services"
       validating dependency to used DC "sap.com/caf/runtime/connectivity/base"
       validating dependency to used DC "sap.com/caf/runtime/connectivity"
       validating dependency to used DC "sap.com/applocking"
       validating dependency to  public part "default" of DC "sap.com/com.sap.engine.client.lib"
       validating dependency to  public part "default" of DC "sap.com/jta"
       DC model check OK
    Start build plugin:
       using build plugin: sap.com/tc/bi/bp/ejbmodule
       starting build plugin from : C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\ejbmodule\_comp\gen\default\public\ejb\
    Build Plugin 'EJBModulePlugin', Version 7.00 SP 9 (NW04S_09_REL, built on 2006-10-25 22:26:50 CEST)
       development component:  sample/ejbmodule (sap.com)
          software component:  MyComponents (demo.sap.com)
                    location:  local
                        type:  J2EE, subtype EJBModule
               build variant:  default
             source location:  szp7rn@w2szp7rn01
           plugin start time:  2008-06-10 19:04:46 GMT+05:30 (IST)
                     Java VM:  Java HotSpot(TM) Client VM, 1.5.0_12-b04 (Sun Microsystems Inc.)
    General options:
      convert *.xlf to *.properties: yes
      include sources for debugging: yes
    Source folder src exists but is empty.
    Plugin initialized in 0.063 seconds
    Preparing data context..
    No 'default' JDK defined, will use running VM.
    Data context prepared in 0.031 seconds
    Executing macro file..
      Using macro file:     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\ejbmodule\_comp\gen\default\public\ejb\macros\build.vm
      Creating output file: D:\Documents and Settings\szp7rn.GEMSCONSULT\.dtc\LocalDevelopment\DCs\sap.com\sample\ejbmodule\_comp\gen\default\logs\build.xml
    Macro file executed in 0.172 seconds
    Starting Ant..
      Using build file:     D:\Documents and Settings\szp7rn.GEMSCONSULT\.dtc\LocalDevelopment\DCs\sap.com\sample\ejbmodule\_comp\gen\default\logs\build.xml
      Using build target:   build
      Generation folder:    D:\Documents and Settings\szp7rn.GEMSCONSULT\.dtc\LocalDevelopment\t\81C8304DFA221C7AF5F2C84019FF3C43
      Using Ant version:    1.6.2
    compile:
          [echo] Starting Java compiler
          [echo] Settings:
          [echo]   debug:       on
          [echo]   optimize:    off
          [echo]   deprecation: off
          [echo]   verbose:     default
          [echo]   encoding:    UTF8
          [echo]   source:      default
          [echo]   target:      default
          [echo]   source path: D:\Documents and Settings\szp7rn.GEMSCONSULT\.dtc\LocalDevelopment\DCs\sap.com\sample\ejbmodule\_comp\ejbModule
          [echo]   class path:
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\tc\logging\_comp\gen\default\public\default\lib\java\logging.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\tc\logging\_comp\gen\default\public\default\lib\java\logging.perf.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP_JTECHS\DCs\sap.com\tc\ddic\metamodel\content\_comp\gen\default\public\default\lib\java\SapMetamodelDictionaryContent.zip
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP_JTECHS\DCs\sap.com\com.sap.jdo\_comp\gen\default\public\default\lib\java\jdo.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP_JTECHS\DCs\sap.com\com.sap.jdo\_comp\gen\default\public\default\lib\java\sapjdoapi.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\BI_UDI\DCs\sap.com\bi\mmr\jmi\_comp\gen\default\public\jmi\lib\java\sap.combimmrjmijmi.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\BI_UDI\DCs\sap.com\bi\mmr\core\_comp\gen\default\public\default\lib\java\sap.combimmrcoredefault.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\CAF\DCs\sap.com\caf\km.proxyjava\_comp\gen\default\public\ClientApi\lib\java\sap.comcafkm.proxyjava~ClientApi.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\applocking\_comp\gen\default\public\default\lib\java\applocking.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\applocking\_comp\gen\default\public\default\lib\java\frame.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\applocking\_comp\gen\default\public\default\lib\java\jdbc.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\CAF\DCs\sap.com\caf\metamodel\_comp\gen\default\public\compilation\lib\java\sap.comcafmetamodel.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\CAF\DCs\sap.com\caf\metamodel\_comp\gen\default\public\compilation\lib\java\sap.comcafmetamodel_JMI.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\CAF\DCs\sap.com\caf\metamodel\_comp\gen\default\public\compilation\lib\java\sap.comcafmetamodel_JMI_src.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\com.sap.engine.client.lib\_comp\gen\default\public\default\lib\java\sapj2eeclient.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\CAF\DCs\sap.com\caf\runtime\connectivity\base\_comp\gen\default\public\com.sap.caf.mp.base\lib\java\sap.comcafruntimeconnectivitybase~com.sap.caf.mp.base.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\CAF\DCs\sap.com\caf\runtime\security\_comp\gen\default\public\ClientAPI\lib\java\sap.comcafruntimesecurityClientAPI.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\CAF\DCs\sap.com\caf\runtime\api\_comp\gen\default\public\compilation\lib\java\sap.comcafruntimeapicompilation.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\jdbc20\_comp\gen\default\public\default\lib\java\jdbc.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\BI_UDI\DCs\sap.com\bi\mmr\cwm_1.0_source\_comp\gen\default\public\compilation\lib\java\sap.combimmr~cwm_1.0_source.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\BI_UDI\DCs\sap.com\bi\mmr\cwm_1.0_source\_comp\gen\default\public\compilation\lib\java\sap.combimmr~cwm_1.0_source_JMI.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\BI_UDI\DCs\sap.com\bi\mmr\cwm_1.0_source\_comp\gen\default\public\compilation\lib\java\sap.combimmr~cwm_1.0_source_JMI_src.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\CAF\DCs\sap.com\caf\runtime\impl\_comp\gen\default\public\CAFRuntimeAPI\lib\java\sap.comcafruntimeimplCAFRuntimeAPI.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\ejb20\_comp\gen\default\public\default\lib\java\ejb20.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\jms\_comp\gen\default\public\default\lib\java\jms.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\com.sap.security.api.sda\_comp\gen\default\public\default\lib\java\com.sap.security.api.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\com.sap.security.api.sda\_comp\gen\default\public\default\lib\java\com.sap.security.api.perm.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\jta\_comp\gen\default\public\default\lib\java\jta.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\CAF\DCs\sap.com\caf\core\services\_comp\gen\default\public\ClientAPI\lib\java\sap.comcafcoreservicesClientAPI.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\com.sap.exception\_comp\gen\default\public\default\lib\java\exception.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\CAF\DCs\sap.com\caf\runtime\connectivity\_comp\gen\default\public\com.sap.caf.mp.core.api\lib\java\sap.comcafruntimeconnectivitycom.sap.caf.mp.core.api.jar
          [echo]     C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\BI_UDI\DCs\sap.com\bi\mmr\db\_comp\gen\default\public\default\lib\java\sap.combimmrdbdefault.jar
          [echo]   output dir:  D:\Documents and Settings\szp7rn.GEMSCONSULT\.dtc\LocalDevelopment\t\81C8304DFA221C7AF5F2C84019FF3C43\classes
         [javac] Compiling 9 source files to D:\Documents and Settings\szp7rn.GEMSCONSULT\.dtc\LocalDevelopment\t\81C8304DFA221C7AF5F2C84019FF3C43\classes
         [javac] Note: Some input files use unchecked or unsafe operations.
         [javac] Note: Recompile with -Xlint:unchecked for details.
         [timer] Java compilation finished in 1.672 seconds
          [echo] Starting JDO enhancer
    [jdo.enhance] Using classfile: D:\Documents and Settings\szp7rn.GEMSCONSULT\.dtc\LocalDevelopment\t\81C8304DFA221C7AF5F2C84019FF3C43\classes\com\sap\sample\besrv\test\testJDO.class
    [jdo.enhance] Using metadata : D:\Documents and Settings\szp7rn.GEMSCONSULT\.dtc\LocalDevelopment\DCs\sap.com\sample\ejbmodule\_comp\ejbModule\com\sap\sample\besrv\test\testJDO.jdo
    [jdo.enhance] Using dst      : D:\Documents and Settings\szp7rn.GEMSCONSULT\.dtc\LocalDevelopment\t\81C8304DFA221C7AF5F2C84019FF3C43\classes
    [jdo.enhance] Error while enhancing: JDO ENHANCER: At least one error occurred while enhancing input class for Transparent Persistence; detailed message(s): I/O error while reading input stream or input stream does not denote a valid Java class.
    [jdo.enhance] ERROR: com.sap.jdo.enhancer.EnhancerUserException: JDO ENHANCER: At least one error occurred while enhancing input class for Transparent Persistence; detailed message(s): I/O error while reading input stream or input stream does not denote a valid Java class.
    [jdo.enhance] ERROR:      at com.sap.jdo.enhancer.filter.Enhancer.enhanceClassFile(Enhancer.java:238)
    [jdo.enhance] ERROR:      at com.sap.jdo.enhancer.Main.enhanceClassFile(Main.java:514)
    [jdo.enhance] ERROR:      at com.sap.jdo.enhancer.Main.enhanceInputFiles(Main.java:474)
    [jdo.enhance] ERROR:      at com.sap.jdo.enhancer.Main.process(Main.java:137)
    [jdo.enhance] ERROR:      at com.sap.jdo.anttasks.JDOEnhance.run(JDOEnhance.java:99)
    [jdo.enhance] ERROR:      at com.sap.jdo.anttasks.JDOEnhance.execute(JDOEnhance.java:82)
    [jdo.enhance] ERROR:      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [jdo.enhance] ERROR:      at org.apache.tools.ant.Task.perform(Task.java:364)
    [jdo.enhance] ERROR:      at org.apache.tools.ant.Target.execute(Target.java:341)
    [jdo.enhance] ERROR:      at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [jdo.enhance] ERROR:      at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    [jdo.enhance] ERROR:      at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:111)
    [jdo.enhance] ERROR:      at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:62)
    [jdo.enhance] ERROR:      at com.sap.tc.buildplugin.AbstractPlugin.handleBuildStepSequence(AbstractPlugin.java:222)
    [jdo.enhance] ERROR:      at com.sap.tc.buildplugin.AbstractPlugin.performBuild(AbstractPlugin.java:199)
    [jdo.enhance] ERROR:      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [jdo.enhance] ERROR:      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [jdo.enhance] ERROR:      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [jdo.enhance] ERROR:      at java.lang.reflect.Method.invoke(Method.java:585)
    [jdo.enhance] ERROR:      at com.sap.tc.buildtool.PluginCommunicator.maybeInvoke(PluginCommunicator.java:114)
    [jdo.enhance] ERROR:      at com.sap.tc.buildtool.PluginCommunicatorV2.communicate(PluginCommunicatorV2.java:42)
    [jdo.enhance] ERROR:      at com.sap.tc.buildtool.PluginHandlerImpl.handlePluginCommunication(PluginHandlerImpl.java:354)
    [jdo.enhance] ERROR:      at com.sap.tc.buildtool.PluginHandlerImpl.execute(PluginHandlerImpl.java:176)
    [jdo.enhance] ERROR:      at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723)
    [jdo.enhance] ERROR:      at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:5615)
    [jdo.enhance] ERROR:      at com.sap.caf.designer.actions.DcBuildAction.buildDCsForDevConfig(DcBuildAction.java:764)
    [jdo.enhance] ERROR:      at com.sap.caf.designer.actions.DcBuildAction.access$300(DcBuildAction.java:78)
    [jdo.enhance] ERROR:      at com.sap.caf.designer.actions.DcBuildAction$1.run(DcBuildAction.java:499)
    [jdo.enhance] ERROR:      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    [jdo.enhance] aborted with errors.
    Ant runtime 2.187 seconds
    Ant build finished with ERRORS
    JDO enhancer failed because of internal Error.
    Error: Build stopped due to an error: JDO enhancer failed because of internal Error.
    Build plugin finished at 2008-06-10 19:04:48 GMT+05:30 (IST)
    Total build plugin runtime: 2.531 seconds
    Build finished with ERROR

  • BUILD FAILED: problem with junit

    Hi, I'm taking the CDJ-310A - Developing Applications for the J2EE Platform course and have run into a problem when issuing a call to asant. When I run asant test the message it gives is "Ant could not find the task or a class this task relies upon.".The errors I get refer to the junit package.
    I've check the CLASSPATH and it seams ok:
    D:\labs\FJ310\bankproject>javap junit.framework.TestCase
    Compiled from "TestCase.java"
    public abstract class junit.framework.TestCase extends junit.framework.Assert im
    plements junit.framework.Test{
    public junit.framework.TestCase();
    public junit.framework.TestCase(java.lang.String);
    public int countTestCases();
    protected junit.framework.TestResult createResult();
    public junit.framework.TestResult run();
    public void run(junit.framework.TestResult);
    public void runBare() throws java.lang.Throwable;
    protected void runTest() throws java.lang.Throwable;
    protected void setUp() throws java.lang.Exception;
    protected void tearDown() throws java.lang.Exception;
    public java.lang.String toString();
    public java.lang.String getName();
    public void setName(java.lang.String);
    D:\labs\FJ310\bankproject>javap junit.textui.TestRunner
    Compiled from "TestRunner.java"
    public class junit.textui.TestRunner extends junit.runner.BaseTestRunner{
    public static final int SUCCESS_EXIT;
    public static final int FAILURE_EXIT;
    public static final int EXCEPTION_EXIT;
    public junit.textui.TestRunner();
    public junit.textui.TestRunner(java.io.PrintStream);
    public junit.textui.TestRunner(junit.textui.ResultPrinter);
    public static void run(java.lang.Class);
    public static junit.framework.TestResult run(junit.framework.Test);
    public static void runAndWait(junit.framework.Test);
    public void testFailed(int, junit.framework.Test, java.lang.Throwable);
    public void testStarted(java.lang.String);
    public void testEnded(java.lang.String);
    protected junit.framework.TestResult createTestResult();
    public junit.framework.TestResult doRun(junit.framework.Test);
    public junit.framework.TestResult doRun(junit.framework.Test, boolean);
    protected void pause(boolean);
    public static void main(java.lang.String[]);
    public junit.framework.TestResult start(java.lang.String[]) throws jav
    a.lang.Exception;
    protected junit.framework.TestResult runSingleMethod(java.lang.String, java.
    lang.String, boolean) throws java.lang.Exception;
    protected void runFailed(java.lang.String);
    public void setPrinter(junit.textui.ResultPrinter);
    But still these errors still are produced:
    D:\labs\FJ310\bankproject>asant clean
    Buildfile: build.xml
    clean:
    [delete] Deleting directory D:\labs\FJ310\bankproject\build
    [delete] Deleting directory D:\labs\FJ310\bankproject\jar
    BUILD SUCCESSFUL
    Total time: 0 seconds
    D:\labs\FJ310\bankproject>asant
    Buildfile: build.xml
    prepare:
    [mkdir] Created dir: D:\labs\FJ310\bankproject\build
    [mkdir] Created dir: D:\labs\FJ310\bankproject\jar
    compile:
    [javac] Compiling 6 source files to D:\labs\FJ310\bankproject\build
    [javac] D:\labs\FJ310\bankproject\src\bank\BankMgrTest.java:9: package junit
    .framework does not exist
    [javac] import junit.framework.*;
    [javac] ^
    [javac] D:\labs\FJ310\bankproject\src\bank\BankMgrTest.java:11: cannot find
    symbol
    [javac] symbol: class TestCase
    [javac] public class BankMgrTest extends TestCase {
    [javac] ^
    [javac] D:\labs\FJ310\bankproject\src\bank\BankMgrTest.java:15: cannot find
    symbol
    [javac] symbol : class Test
    [javac] location: class bank.BankMgrTest
    [javac] public static Test suite() {
    [javac] ^
    [javac] D:\labs\FJ310\bankproject\src\bank\BankMgrTest.java:16: cannot find
    symbol
    [javac] symbol : class TestSuite
    [javac] location: class bank.BankMgrTest
    [javac] return new TestSuite(BankMgrTest.class);
    [javac] ^
    [javac] D:\labs\FJ310\bankproject\src\bank\BankMgrTest.java:20: package juni
    t.textui does not exist
    [javac] junit.textui.TestRunner.run(suite());
    [javac] ^
    [javac] D:\labs\FJ310\bankproject\src\bank\BankMgrTest.java:39: cannot find
    symbol
    [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
    [javac] location: class bank.BankMgrTest
    [javac] assertEquals("Fred", data.getFirstname());
    [javac] ^
    [javac] D:\labs\FJ310\bankproject\src\bank\BankMgrTest.java:40: cannot find
    symbol
    [javac] symbol : method assertEquals(java.lang.String,java.lang.String)
    [javac] location: class bank.BankMgrTest
    [javac] assertEquals("Flintstone", data.getLastname());
    [javac] ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 7 errors
    BUILD FAILED
    D:\labs\FJ310\bankproject\build.xml:14: Compile failed; see the compiler error o
    utput for details.
    Total time: 4 seconds
    Any help solving these errors would be highly appreciated. I'm stuck right now. Thanks!

    i have this problem too. and i added in CLASSPATH the path for junit.jar file. but still does not work
    my build.xml file :
    <project name="bankproject" default="deploy" basedir=".">
      <property environment="env"/>
      <property name="src.dir"     value="${basedir}/src"/>
      <property name="build.dir"   value="${basedir}/build"/>
      <property name="jar.dir"     value="${basedir}/jar"/>
      <target name="prepare">
        <mkdir dir="${build.dir}"/>
        <mkdir dir="${jar.dir}"/>
      </target>
      <target name="compile" depends="prepare" >
        <javac destdir="${build.dir}">
          <src path="${src.dir}"/>
        </javac>
      </target>
      <target name="package-bankmgr" depends="compile">
        <delete file="${jar.dir}/BankEJBModule.jar"/>
        <copy file="dd/bank-ejb-jar.xml" tofile="${build.dir}/ejb-jar.xml" overwrite="true"/>
        <copy file="dd/bank-sun-ejb-jar.xml" tofile="${build.dir}/sun-ejb-jar.xml" overwrite="true"/>
        <jar jarfile="${jar.dir}/BankEJBModule.jar">
          <metainf dir="${build.dir}" includes="ejb-jar.xml,sun-ejb-jar.xml" />
          <fileset dir="${build.dir}">
            <include name="bank/**" />
            <exclude name="bank/BankMgrTest.class" />
            <exclude name="bank/CustomerTest.class" />
          </fileset>
        </jar>
      </target>
      <target name="package-ejbs" depends="package-bankmgr" />
      <target name="package-client" depends="compile">
        <delete file="${jar.dir}/ClientModule.jar"/>
        <copy file="dd/bank-application-client.xml" tofile="${build.dir}/application-client.xml" overwrite="true"/>
        <copy file="dd/bank-sun-application-client.xml" tofile="${build.dir}/sun-application-client.xml" overwrite="true"/>
        <jar jarfile="${jar.dir}/ClientModule.jar">
          <manifest>
             <attribute name="Main-Class" value="bank.MessageClient" />
         </manifest>
          <metainf dir="${build.dir}" includes="application-client.xml,sun-application-client.xml" />
          <fileset dir="${build.dir}">
            <include name="bank/MessageClient.class" />
          </fileset>
        </jar>
      </target>
      <target name="assemble-app" depends="package-ejbs,package-client">
        <delete file="${jar.dir}/BankApplication.ear"/>
        <copy file="dd/bank-application.xml" tofile="${build.dir}/application.xml" overwrite="true"/>
        <ear destfile="${jar.dir}/BankApplication.ear" appxml="${build.dir}/application.xml">
          <fileset dir="${jar.dir}">
              <include name="BankEJBModule.jar"/>
              <include name="ClientModule.jar"/>
          </fileset>
        </ear>
      </target>
      <property name="j2ee.home"   value="${env.J2EE_HOME}" />
      <property name="admin.user"  value="admin" />
      <property name="admin.pass"  value="password" />
      <property name="appname"     value="BankApplication"/>
      <property name="ear.file"    value="${jar.dir}/${appname}.ear" />
      <target name="setAsadmin" >
         <condition property="asadmin" value="asadmin.bat">
            <os family="windows"/>
         </condition>
         <condition property="asadmin" value="asadmin">
            <not>
               <os family="windows"/>
            </not>
         </condition>
      </target>
      <target name="deploy" depends="assemble-app,setAsadmin">
        <echo message="Deploying ${ear.file}."/>
        <exec dir="." executable="${j2ee.home}/bin/${asadmin}">
            <arg line=" deploy"/>
            <arg line=" --user ${admin.user}"/>
            <arg line=" --password ${admin.pass}"/>
            <arg line=" --force=true"/>
            <arg line=" --name ${appname}"/>
         <arg line=" --retrieve=." />
            <arg line=" ${ear.file}"/>
         </exec>  
      </target>
      <target name="get-stubs" depends="setAsadmin">
        <echo message="Retrieving stubs JAR file for ${appname}."/>
        <exec dir="." executable="${j2ee.home}/bin/${asadmin}">
            <arg line=" get-client-stubs"/>
            <arg line=" --user ${admin.user}"/>
            <arg line=" --password ${admin.pass}"/>
            <arg line=" --appname ${appname}"/>
            <arg line=" ."/>
         </exec>  
      </target>
      <target name="undeploy" depends="setAsadmin">
        <echo message="Undeploying ${appname}."/>
        <exec dir="." executable="${j2ee.home}/bin/${asadmin}">
            <arg line=" undeploy"/>
            <arg line=" --user ${admin.user}"/>
            <arg line=" --password ${admin.pass}"/>
            <arg line=" ${appname}"/>
         </exec>  
      </target>
      <target name="test">
        <junit printsummary="on" haltonfailure="no" filtertrace="off">
          <classpath>
            <pathelement location="${build.dir}"/>
            <pathelement path="${java.class.path}"/>
            <pathelement path="BankApplicationClient.jar" />
          </classpath>
         <formatter type="plain" usefile="no"/>
          <test name="bank.BankMgrTest"/>
        </junit>
      </target>
      <target name="clean">
        <delete dir="${build.dir}" />
        <delete dir="${jar.dir} "/>
      </target>
    </project>

  • Deployment failed. Building failed using sun java application server

    Hi
    am using netbean 6 ,glassfish v2 and sun java application server 9
    When am try to run my jsp file am getting Deployment error report with further error given below.
    Deployment error:
    The Sun Java System Application Server could not start.
    More information about the cause is in the Server log file.
    Possible reasons include:
    - IDE timeout: refresh the server node to see if it's running now.
    - Port conflicts. (use netstat -a to detect possible port numbers already used by the operating system.)
    - Incorrect server configuration (domain.xml to be corrected manually)
    - Corrupted Deployed Applications preventing the server to start.(This can be seen in the server.log file. In this case, domain.xml needs to be modified).
    - Invalid installation location.
    See the server log for details.
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:163)
    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
    Caused by: org.netbeans.modules.j2ee.deployment.impl.ServerException: The Sun Java System Application Server could not start.
    More information about the cause is in the Server log file.
    Possible reasons include:
    - IDE timeout: refresh the server node to see if it's running now.
    - Port conflicts. (use netstat -a to detect possible port numbers already used by the operating system.)
    - Incorrect server configuration (domain.xml to be corrected manually)
    - Corrupted Deployed Applications preventing the server to start.(This can be seen in the server.log file. In this case, domain.xml needs to be modified).
    - Invalid installation location.
    at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._start(ServerInstance.java:1270)
    at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1224)
    at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1035)
    at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:912)
    at org.netbeans.modules.j2ee.deployment.impl.TargetServer.startTargets(TargetServer.java:417)
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:140)
    ... 16 more
    BUILD FAILED (total time: 44 seconds)

    Hi,
    I've found that if you remove the j2ee-application element related to the enterprise app you are trying to deploy from Sun\AppServer\domains\domain1\config\domain.xml, and also remove your enterprise j2ee-app directory from Sun\AppServer\domains\domain1\applications\j2ee-apps\, it works.
    This is not a permanent solution. I get the same error again, when I try to redeploy the application for the third time. Hope someone can help soon!
    Thanks.

Maybe you are looking for

  • Axis securing seemingly public web services

    Hi, Their may be an obvious answer to this question, but I've done some searching and come up blank so far. I am wondering if you can restrict which domains are allowed to access the web services on your axis web application (I am running axis on tom

  • All Changes To Images Lost

    Hello, I am very disappointed, as I spent a considerable time working on retouching an image this morning. I was finishing up the work with the burn tool and wanted to compare the image using the history palette. When I clicked the top thumbnail, the

  • Java application (tomcat) and Oracle RAC 10gR2

    Hi, I have an Oracle RAC 10gR2 (10.2.0.3) on Suse Linux Enterprise Server (3 nodes). I have several application running on tomcat 5.X and tomcat 6.X with java 1.5 and java 1.6. Sometimes, because of hardware fail, network problems,... one of the node

  • How do I clean up my "Recent Catalogs" list?

    I have catalogs listed that don't exist, don't open in LR3, etc. ... it's a mess. I want to remove specific items, or clean it all up and start over. How do I edit/clean this list??

  • PROBLEMS CAPTURING, DROP FRAMES ON 4.5

    I DO NOT KNOW WHAT TO DO SINCE I HAVE UPDATED TO THE LATEST VERSION I HAVE BEEN HAVING PROBLEMS CAPTURING.