Error when build J2EE example - web

I use ANT 1.4.1 in C:\ANT directory and set up all environment variables ANT_HOME, JAVA_HOME etc
When I do a build on the "web example as following:
ant web
I got the following error:
BUILD FAILED
java.lang.NullPointerException
at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:
253)
at org.apache.tools.ant.taskdefs.Property.execute(Property.java:183)
at org.apache.tools.ant.Task.perform(Task.java:217)
at org.apache.tools.ant.Target.execute(Target.java:184)
at org.apache.tools.ant.Target.performTasks(Target.java:202)
at org.apache.tools.ant.Project.executeTarget(Project.java:601)
at org.apache.tools.ant.Project.executeTargets(Project.java:560)
at org.apache.tools.ant.Main.runBuild(Main.java:454)
at org.apache.tools.ant.Main.start(Main.java:153)
at org.apache.tools.ant.Main.main(Main.java:176)
Any suggestion. Appreciate your help
Tom

Are you running ant in the <j2eetutorial_home>\examples directory> ?J2eetutorial_home refers to the directory where the tutorial is installed. I don't think this is the problem, but I thought i might check.

Similar Messages

  • Error when building csv example

    We built and installed Berkeley DB db-4.5.20.NC under RedHat Linux 7.3 with no issues. When we attempt to build the examples_c/csv example, we get the following:
    cc -I. -I/usr/local/BerkeleyDB.4.4/include -g -W -Wall -Wpointer-arith -Wmissing-prototypes -c -o db.o db.c
    db.c: In function `csv_env_open':
    db.c:91: incompatible type for argument 4 of indirect function call
    db.c:91: too many arguments to function
    db.c: In function `csv_secondary_open':
    db.c:197: incompatible type for argument 4 of indirect function call
    db.c:197: too many arguments to function
    db.c:202: warning: passing arg 3 of pointer to function from incompatible pointer type
    db.c:202: warning: passing arg 4 of pointer to function makes integer from pointer without a cast
    db.c:202: too many arguments to function
    make: *** [db.o] Error 1
    We have searched the forum and online with no luck. Any tips/suggestions would be appreciated.
    Thanks,

    It appears that the csv example is referencing the DB 4.4 libraries in the Makefile in the 4.5.20 tarball.That is correct, we will update the paths and include the update in the next release.
    It is likely that you will need to update these paths anyway, unless they have installed Berkeley DB in the default location.
    If you have run "make install", and left the default install root, it should be enough to change the lines in the Makefile to:
    DB_INCLUDE=/usr/local/BerkeleyDB.4.5/include
    DB_LIBRARY=/usr/local/BerkeleyDB.4.5/lib
    If you have not run "make install", but are just building locally to test, the best alternative paths are probably:
    DB_INCLUDE=../../build_unix
    DB_LIBRARY=../../build_unix/.libs
    Thanks for pointing this out to us.
    Regards,
    Alex

  • Which files  should include in path when building J2EE project?

    Hi,
    I'm new to J2EE. Trying some examples on Servlet. But I've the error messages stating that it can't locate the javax.servlet.* classes like the ones below:
    <code>
    import javax.servlet.http.HttpServlet;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    </code>
    Could anybody pls tell me which file (of J2EE SDK) I should include in my path when building J2EE projects?
    thanks,
    jackling

    You need to have $J2EE_HOME/lib/j2ee.jar in your CLASSPATH when compiling your servlet

  • Error When building ess/tra/tre and ess/tra/tre/trs DC's

    I had customized the ess/tra/tre and ess/tra/tre/trs DC's and had them working, but I do not know what I did or what happened that am now getting the following errors when building, can anyone help tell what the problem could be?
    Error                                     
    -     The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.xss.tra.model.openccmodel.OVSOpenCostcenterModel. Fix the classpath then try rebuilding this project.               
    -     HDI_HNS15.02_Desstratresap.com                              
    Error                                     
    -     This compilation unit indirectly references the missing type com.sap.xss.tra.model.openccmodel.OVSOpenCostcenterModel (typically some required class file is referencing a type outside the classpath)        
    -      InternalVcTreReview.java          
    -      HDI_HNS15.02_Desstratresap.com/gen_wdp/packages/com/sap/xss/tra/tre/vc/review/wdp      
    -     line 0

    For anyone who might need to know, I managed to fix this by adding tra to the required projects on the build path. On the Navigator View, right click -> Properties -> Java Build Path -> Projects tab -> check dependant project.

  • FireFox keep saying "unexpected error" when trying to print web pages.

    FireFox keep saying "unexpected error" when trying to print web pages. The print preview works OK, but when you try to print that "unexpected error" jumps up.
    Please email me on what to do to get FireFox to work.
    I don't see anything in the FAQ that might help me.

    Hi,
    Please also try this setting: Windows start menu or Control Panel > '''Devices and Printers''', right-click the printer > '''Printer properties''' > '''Advanced''', and select '''Start printing after the last page is spooled'''. In this case you can also close Firefox after spooling is over (usually much faster than direct printing), and printing will continue.
    Also as a general case, if you have security software (antivirus, firewall etc.) installed, you can try deleting all existing instances of Firefox and its related processes/files in all the different configuration modules/areas of the security software like process monitoring, sub/spawned process control, virtualization, HIPS etc., in addition to the security software's main configuration panel. Instead create new fully allowed/trusted rules for Firefox + its related processes in all the different modules/panels - a genuine/original Firefox installer as well as all the installed EXEs (Application) and DLLs (Application extension) are digitally signed by Mozilla Corporation (right-click > Properties > Digital Signatures). Even otherwise, some security software may also ask again when Firefox and/or its sub processes are started, and you may be able to allow/trust at that time. Please see [https://support.mozilla.org/en-US/kb/Firewalls this].
    [http://kb.mozillazine.org/Firewalls AV/Firewalls Configuration]

  • Icon path restricted error when building release version for ipad3

    Hi,
    i get the following error when building the release build ipa file for ipad 3: "The path icon.png is restricted. If you were trying to package Icon.png you should correct the case."  In debug mode everything works. My icon is under assets folder and added in the app-xml with:
    <icon>
    <image72x72>assets/icon_72.png</image72x72>
    </icon>
    Did I missed something in configuration? Seems to be that the problem is known but cant find a solution for it. If i try to packegae per command line despite the fact building works I could not install the app. When I change the icon tag to use no icon everything works fine. Any ideas?
    Greetz and thanks in advance!

    I solved it. When you export the release build you can choose package contents to be compiled in the ipa. When I tried to add an icon at first I named it icon.png, which seems to be a reserved name. The configuration to include this icon.png was still saved though i deleted it. Wired... After unchecking the ceckbox for icon.png not to be compiled in the ipa, the release build was build.

  • Unsupported Version error when trying to run Web Services Tutorial example

    Hi there,
    I'm trying to run the first example from the Java Web Services Tutorial and get the following error when I type 'asant build' in my Command Window.
    Buildfile: build.xml
    BUILD FAILED
    java.lang.UnsupportedClassVersionError: com/sun/tools/ws/ant/WsImport (Unsupport
    ed major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at org.apache.tools.ant.loader.AntClassLoader2.defineClassFromData(AntCl
    assLoader2.java:76)
    When I do a java -version I see my version is Java 1.5, and I'm not sure why the build is still trying to use Java 1.4. I do not want to delete the 1.4 from my machine as it is used for something else.
    C:\jwstutorial20\examples\jaxws\helloservice>java -version
    java version "1.5.0_09"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)
    Could you please help me with this problem?
    Thanks in advance.
    Azeem.

    Hi Azeem.
    Check out values specified for JAVA_HOME, PATH and CLASSPATH under environment variable. Was facing the same problem. Changed the values to point to jdk1.5 and it is working now.
    BTW.
    You don't have to uninstall jdk1.4.
    Cheers!!!

  • Error when building Azure project

    A few days ago I started to see an error when compiling my Azure Project (cloud service with web and worker roles). I've been working with this Azure project for almost 3 years without seeing this before. When I attempt to build my Azure Project, 9 times
    out of 10 it fails with this error:
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Windows Azure Tools\2.2\Microsoft.WindowsAzure.targets(1371,5): error : Could not find file '<SourceCode>\SomeProject\bin\Debug\ServiceDefinition.csdef'.
    Here's another when I attempt to build again:
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Windows Azure Tools\2.2\Microsoft.WindowsAzure.targets(985,5): error : Could not find a part of the path 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\csx\Debug\ServiceDefinition.csdef'.
    Sometimes the error refers to ServiceDefinition, sometimes to ServiceConfiguration. The problem is that it is looking for the two files in places where it's not supposed to be. I have a single Azure Project in my solution, and a single service definition
    in my solution, but when building the error message says it can't find the service definition/config in some other Project in the solution. For example, it may try to find the service definition in some unit testing C# Project instead of in the Azure Project.
    Some isolation:
    Building same source code works fine for my colleauges.
    I've set up a new computer with Windows 8, VS2013, VS2013 Update 1, Azure SDK 2.2. Still same error.
    I've turned off multi-core builds. Still same error.
    I've seen another post on SO with a similar issue, but then it was related to publish settings files in his solution which were missing.

    Hi,
    Did your colleague build the same solution or create a new solution with the existing code? If they have exactly the same solution as you have, then please check if the environment of your machine (both old and new) is different from theirs. For instance,
    please check Azure version, VS extension, etc. If they created a new solution with the existing code, you can try to do that yourself to see whether it works.
    Best Regards,
    Ming Xu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Building J2EE examples with Ant 1.3 on WinXP

    I just installed J2EE 1.3.1 and set all environment variables according to J2EE/Ant documentation. I am trying to build the examples with Ant 1.3 and just before it tries to compile the first example, I get a "NTVDM.EXE Error while setting up environment" error window. This occurs every time I try this examples build. After I close this error window, the compiles fail mostly because the javax.ejb package classes cannot be found.
    Have I overlooked something here? Can anyone shed some insight on this problem?
    -Ryan

    Didn't think I'd be replying to so many of my own messages :-) ..., but anyway the problem with the NTVDM.EXE error message does not go away. I found that it's happens when Ant reads the system environment in the "property" task in build.xml under examples directory:
    <property environment="myenv" />
    <!--
    references to ${myenv.J2EE_HOME} and so on
    -->
    So I replaced occurences of ${myenv.<J2EE_HOME>} with the literal value, in my case, "C:\j2sdkee1.3.1" and now it works. Hope this helps.
    Cheers,
    Lakshmi.

  • Getting build error when building HelloService

    I have installed the Sun application server (at D:\Sun\Appserver) and the J2EE tutorial (at C:\j2eetutorial14).
    1. Checked on the PATH variable and D:\Sun\AppServer\bin was automatically added during app server install.
    2. asadmin help at the command prompt shows the asadmin help topics just fine which tells me that the path is fine.
    3. Started the sun app server and it started fine
    4. Modified the C:\j2eetutorial14\examples\common\build.properties file to reflect the correct j2ee.home and j2ee.tutorial.home as follows:
    j2ee.home=D:\\Sun\\AppServer
    j2ee.tutorial.home=C:\\j2eetutorial14
    5. asant listprops shows the right values for the above two properties
    C:\j2eetutorial14\examples\jaxrpc\helloservice>asant listprops
    Buildfile: build.xml
    listprops:
    [echo] Path information
    [echo] j2ee.home = D:\Sun\AppServer
    [echo] j2ee.tutorial.home = C:\j2eetutorial14
    [echo] env.Path = C:\Program Files\Java\jdk1.5.0_02\bin;D:\Sun\AppServer\bin;d:\oracle\ora9i\bin;C:\Program Files\Documentum\DFCRE41\bin;C:\WINNT\system
    2;C:\WINNT;C:\WINNT\System32\Wbem;C:\ant\bin;D:\Sun\AppServer\bin;
    [echo] env.PATH = ${env.PATH}
    [echo] Classpath information
    [echo] classpath = ${env.CLASSPATH}
    [echo] Admin information
    [echo] admin.password = sunshine
    [echo] admin.password.file = C:\j2eetutorial14 /examples/common/admin-pass
    ord.txt
    [echo] admin.host = localhost
    [echo] admin.user = admin
    [echo] admin.port = 4848
    [echo] https.port = 8181
    [echo] Domain information
    [echo] domain.resources = "domain.resources"
    [echo] domain.resources.port = 8080
    [echo] Database information
    [echo] db.root = D:\Sun\AppServer /pointbase
    [echo] db.driver = com.pointbase.jdbc.jdbcUniversalDriver
    [echo] db.host = localhost
    [echo] db.port = 9092
    [echo] db.sid = sun-appserv-samples
    [echo] db.url = jdbc:pointbase:server://localhost:9092/sun-appserv-samples
    [echo] db.user = pbpublic
    [echo] db.pwd = pbpublic
    6. And yet when I do a asant build I get a build error pointing to j2ee.home in the build.properties file
    C:\j2eetutorial14\examples\jaxrpc\helloservice>asant build
    Buildfile: build.xml
    j2ee-home-test:
    BUILD FAILED
    C:\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 = C:\\Sun\\AppServer
    or
    j2ee.home=C:/Sun/AppServer
    j2ee.home is currently set to: D:\Sun\AppServer
    Seems like everything is set to what it needs to be set. But the build still fails.
    What could I be doing wrong? Could anyone shed some light on this please?

    David,
    I can’t say for certain what’s going on here but I do have a few suggestions before you “recreate the installer for legacy code reasons.” First, I would delete everything from the Build Directory. This may be where the recursive issues are coming from. Lastly, in the My Installer Properties window, I would look at the Source Files and make sure everything is there and check for any broke links.
    Charlie M. CLD

  • Database connection error when running report from web application

    Hi all,
    When I open a report in Reports Builder , and enter the database connection parameters, everything works fine. When I run my web application from JDeveloper (9.0.5.1), and I tried to run a report, I get this error:
    Rep-501 : Unable to connect to the specified database.
    I have ran tnsping, and it works fine. My tnsnames.ora file looks like this :
    GPGWL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
    (CONNECT_DATA =
    (SERVICE_NAME = GPGWL)
    )

    Please ask this question in Jdeveloper forum.

  • EVDRE encountered an error when retrieving data from web server

    Hi
    When I am trying to open Data Input=>Build a schedule using a dynamic template in BPC version for SAP netweaver, I am getting the below error "EVDRE encountered an error retrieving data from the Web Server". 
    I am not able to open any template, every time I am getting the same message. I have tried again after reprocessing all the dimension.
    Even I have tried in appset APSHELL also, there also I am getting the same error
    Request you to help me to resolve the above error which will allow me to proceed further.
    Thanks in Advance.
    Venkat

    Hi,
    Beside Nilanjan's solution, this error could also occur when the expansion is running more rows than the Excel limit allows (65'000 rows and 256 cols for Excel 2003)...
    Even when you're using suppress field to reduce the number of rows, the first sequence is to retrieve the complete dataset before performing any suppression. And this could of course exceed the limit sometimes.
    Hope this helps.
    Kind Regards,
    Patrick

  • I get a "vi is not executable" error when building an application.

    I have an ongoing project that has worked fine in the past when building an application. I have recently added some report generation toolkit vis(Excel) and get an error for some of the ni vis and some of my own that call lower level excel vis. The error is that he vi is not executable, however they run fine in the development environment. I do not get this error if I save all vi's into one llb with save with options command and then build. However, when I try to run the app, this error re-appears. Also, do I have to add the dynamically loaded vi's that are part of the toolkit in my build script? Could this be the cause of the problem? If so, what's the best way to find all of them? Any suggestions?

    You have hit in on the nail! You do need to add the dynamically loaded VIs when you are creating an executable from your VI. You need to add _wordsub.lib and _exclsub.lib as dynamically loaded VIs into your executable. Try this and let us know if you have any more problems with it.
    J.R. Allen

  • Why do I get 'ResolveManifestFiles task failed' error when building a WPF app that references WinRT API?

    0
    down vote
    favorite
    I am working on a WPF app that I want to create for Windows 8. I followed steps mentioned in
    Hansleman's blog to make some manual modifications using WinRT functions in a WPF app. Everything worked well, until I tried to publish the app. When I clicked on publishing the app I got error "The 'ResolveManifestFiles' task failed unexpectedly.
    System.ArgumentException: Value does not fall within the expected range."
    Afterwards, it will produce the same error when attempting a simple solution build.
    Even if you create a simple WPF project and add the references mentioned in blog to access WinRT functions and publish, this issue can be reproduced.
    I think it would be common scenario to call WinRT functions from WPF and someone should have done it. Is anyone aware what should be done to fix this issue?

    I am having the same problems and came across this article while researching a workaround. 
    It is surprising more people aren’t talking about this.
    Here are the steps to reproduce the problem; Using Visual Studio Express 2012 (x64) create a new VB Windows Forms Application. 
    Unload the project and edit the [ProjName].vbproj in the solution explorer. 
    Add <TargetPlatformVersion>8.0</TargetPlatformVersion> to the <PropertyGroup>. 
    Save and reload the project.  In Add Resource/Reference Manager add the Windows.minmd found under Windows/Core. 
    This WinRT/Desktop solution will run as expected.  Now try to Publish this solution. 
    It will FAIL with the following ERROR; “The ResolveManifestFiles task failed unexpectedly, Value does not fall within the expected range.” 
    Attempting to build or run the solution again now will fail with the same Error. 
    The only way to build the project now is to remove the “Enable ClickOnce security settings” option under the project properties Security settings. 
    Occasionally using this trick, the solution will build but not run. 
    When that happens jiggle around with Debug/Release Solution Configurations and the Any CPU/x64 Solution Platforms then rebuild and try the run again. 
    This fussing around will get you through development however any attempt to publish with restore the ClickOnce security setting and create the previous Error.
    The first question here is how do you publish a WinRT app for the desktop with VS2012 Express. 
    Then secondly, if that is not possible can we publish this Express solution with a 3rd party deployment tool like InstallShield Limited Edition or the WIX Toolset. 
    Neither however seems functional in a VS Express environment. 
    Then thirdly, are there ways to access hardware sensor devices from a desktop solution without resorting to the WinRT API.
    Any ideas or new research directions would be greatly appreciated.

  • Error when opening Find Examples under the Help menu

    Today when I tried opening the Find Examples under the Help menu in LabVIEW 6.1, it would not open correctly. The Find Examples window appears and then an error window appears on top of it with the following description -
    "Error 1 occurred at open or create file (function 1)."
    Then ther is a list of possible reasons.
    I have had this version of LabVIEW installed for over 6 months and had no problems until today. I tried running the installation program for LabVIEW and repairing LabVIEW but had no success.
    What should I do next? Is there a file/s I can delete and then install manually?
    Thanks,
    Rodney

    I've never actually heard of this error ocurring with the Examples Finder before. If it continues, I would probably just reinstall LabVIEW. That should clear up the problem.
    J.R. Allen

Maybe you are looking for

  • How can I delete my photos in streaming from iCloud?

    How can I delete my photos in streaming from iCloud? Thank you.

  • Java Challenges

    Hi All: This is the error message I receive when running a test on my Java install, has anyone experienced this and if so what is the procedure to fix. Runing Windows XP Professional Service Pack 2 (build 2600) With all of the updates Using Fire Fox

  • My iPod touch sleep/wake button is jammed.

    Does anyone know any way to get my sleep/wake button fixed for cheap? I don't even inderstand why it's jammed. I have been gental with it, such. I'm really expecting any good support as Apple is horrible with that. (From past expierences) But I just

  • Managed System Dump Error

    Dear All, I am in the configuration phase of SOLMAN 7.1 SP3 of MANAGED SYSTEM. SELECT SYSTEM FOR CONFIGURATION CONNECT SYSTEM(ABAP ONLY) As i have completed the 3 steps while i am going to 4th step as ENTER SYSTEM PARAMETERS I am getting error as: Er

  • I have picture files that I do not know how to print them out ?

    The printer is the HP Photo Smart 7510 and the email with photo's attached was sent to the printer email address. The printout say view photos  Download all. the question is how do you do that? This question was solved. View Solution.