WSDC, build path, and a dirty wsanttasks.jar

I'm attempting to use some customized Ant tasks for starting/stopping applications in Websphere Development Studio Client 5.1. I added the following line to my build.xml file...<taskdef name="wsStopApplication" classname="com.ibm.websphere.ant.tasks.StopApplication"/>...assuming that such a class might already be supported in the WS environment. Silly me - WS told me it couldn't find that class. So, I dug around and found the wsanttasks.jar buried deep in the bowels of the WS install directory. I dutifully added this JAR to the Ant properties, but got the same result. I added the JAR to the project build path, but still no custom-task love.
I've checked and re-checked the spelling. I've rebuilt the project. I've shut down and restarted WDSC. The project seems to not even recognize that it has access to the wsanttasks.jar. I was able to compile a class outside WDSC using a class from this JAR.
I'm open to suggestions as to what I might be missing.
Thanks,
&#167;

google search:
http://p2p.wrox.com/topic.asp?TOPIC_ID=4606
I had the same problem, so I can help you on that.
You need to include 2 jar files into a class path for the wsadmin.
1) in C:\Program Files\WebSphere\AppServer\bin there is a file called setupCmdLine.bat
2) edit it and chenge the line
SET WAS_CLASSPATH=%WAS_HOME%/properties;%WAS_HOME%/lib/bootstrap.jar;%WAS_HOME%/lib/j2ee.jar;%WAS_HOME%/lib/lmproxy.jar;C:/Program Files/WebSphere/AppServer/java/jre/lib/ext/mail.jar;C:/Program Files/WebSphere/AppServer/java/jre/lib/ext/log.jar
so that includes the MAIL.JAR and LOG.JAR.
Dunno if this is same as your problem or not.

Similar Messages

  • Query Builder - Path and Object name for instance ..

    Hello,
    how to get the Object Name of an Instance "InstanceX" and the Path of the Object with query Builder ..
    Thanks

    Hi Leo,
    It is my understanding that Query Builder, QAAWS and Live Office are Java based, and therefore only work with Tomcat and not WACS. Unless something has changed, you will have to uninstall and reinstall BO with Tomcat in order to use those tools.
    Thanks

  • Java build path as appose to j2ee depenencies ?

    if i understand right j2ee depen. basicly means one is in another's build path and has to be deployed under the same war ?
    another thing , if i placed one java application in a j2ee project build path why do i have put the same jar in both of 'em ? wil it be deployed twice ?

    after copy&paste the missing entries from a .classpath-file of a local project to my NWDI-based projects .classpath file, the build errors are gone.
    but how to do that automatically?
    and still errors occur in the develop-config perspective:
    <i>ERROR: failed to resolve reference "sap.com/tc/..." for DC "....":Cannot find compartment of used component: sap.com:tc/wdp/metamodel/content</i>
    kr, achim

  • The project was not built since its build path is incomplete

    Hi, Recently I port my project fro bea 8.1 to 10.2 & I am ubale to find following packages... workspace studio alos not able to find teh librraies contabing those files.
    The project was not built since its build path is incomplete. Cannot find the class file for weblogic.management.ManagementException. Fix the build path then try building this project
    The project was not built since its build path is incomplete. Cannot find the class file for weblogic.security.service.ResourceBase. Fix the build path then try building this project
    com.bea.p13n.mbeans.MailServiceMBean
    -KASH

    It seems this occurs since the required jar files for building the files is not available in the IDE build path.
    The build classpath is the path which is used to find classes that are referenced by your source code. During compilation, this path is used to search for classes outside of your project. As you know th build classpath can be specified for each project. In the project properties, it is referred to as the "Java Build Path Adding a JAR file to the build path : You can add a JAR file stored either in the workbench or anywhere in your file system to the build class path. To add a JAR to your build class path follow these steps: 1>>Select the project, and from its pop-up menu, select Properties. In the Properties dialog,select the Java Build Path page. 2>>Click the Libraries tab. You can now either add a JAR file which is contained in your workspace or which is somewhere else: to add a JAR file which is inside your workspace click the Add JARs button to add an external JAR file click the Add External JARs button.

  • Cycle was detected in the build path of project

    Hi
    I was trying to create a Test application for MDB.
    Here from the webContent I call the service locator in the EJB folder and get the bean object. Using the object I need to put a message in the MQ.
    The onMessage method<present under EJB folder> picks up the message<which is a key> and then it has to refer the value in the Map which is under the ../WebContent/Javasource/..
    But when I try to complile the project it is giving a error stating that A cycle was detected in the build path of project: MDBTestEJB.
    How do I solve this ?? Please help ?

    The fix for this - regardless of IDE - is to use a
    bit of common sense, and good old-fashioned logic
    (remember that?). You've obviously got (at least) 2
    things that are dependent on each other, which - if
    you remember the Chicken and Egg problem* - can't
    possibly work. Work it out for yourself, you're
    writing software, after all. If A needs B to do some
    work but can't because B needs A first, you've got
    problems
    * sensible "it was the egg. Something
    not-quite-like-a-chicken-but-close mated with
    something-else-not-quite-like-a-chicken, and produced
    an egg that eventually hatched into a chicken"
    notwithstandingOK georgemc, I allowed you to motivate me to look for a better fix. I think I came up with a solution but I'd like to see if you, or anyone else, agrees with it.
    First let me say that I'm using a persistence layer, which I've never done before, and with cardinality annotations different classes need to reference each other cyclically.
    My problem was that I had class A in project 1 that depended on class B in project 2, but class B (project 2) also depended on class A (project 1). This meant that I had project 2 on the project 1 build path and vice versa; which is why I was getting the error.
    After your post I started to think about it and it seems that my original solution didn't do a very good job of utilizing the extensibility that Java's OO gives us. My new solution is to remove any reference of class A that is in class B and also remove project 1 from the project 2 build path. Then extend class B into class ChildOf_B in project 1 and insert the references to class A in the new child class. I of course keep project 2 on the project 1 build path.
    I've since told eclipse to throw an error for build path cycles instead of a warning and I no longer have any problems.

  • Wipes out classes and jars in Java Build Path

    Hello!
    All the jar and class files under Library tab gets cleared when I repair my DC project. But when I repair normal projects it does not wipe out  the jars or classes in the Library. Can someone please help me?
    Thanks
    Raj

    Hi Raj,
    The Java build path of a DC-project is based on the definitions in de DC-dependecies (shown in .dcdef file).
    Everytime you repair or build the  DC the build path will be updated into the .project file based on the .dcdef file.
    See the online documentaion for how to add libraries to the DC dependecies.
    Hope this helps.
    Regrads,
    Alain.

  • WAS v.6.0: EAR reinstall by means of ANT and wsanttasks.jar

    Hi folks!
    I used to compile and reinstall my ear (with EJBs) with the useful tasks in wsanttasks.jar launched by an ant build file.
    With WAS version 5 everything was fine.
    I am now trying WAS version 6 and when I launch tasks like startServer,stopServer,installApplication,unstallApplication,wsAdmin,startApplication,stopApplication I always get the answer
    null\bin\setupCmdLine.bat (impossible to find the specified path)
    I checked and double-checked my build file Root and WebsphereRoot ... but I came at the conclusion that since in the new WAS version they changed paths (there is now an added profile directory) they did not update the wsanttasks.jar
    Am I wrong?
    I put this message in this forum because it is the best. Thanks to anybody who will reply

    I'm no WAS expert, but there are two things I've learned (using versions 3.5 to 5.1 over the years):
    1) WebSphere is the nastiest software I've ever seen and the platform is pretty much unusable in my opinion.
    2) Any time you try to backdoor WebSphere and use your own build/deploy tools (like using ANT vs. using WebSphere's build/deploy tools) you are asking for trouble.

  • How do I add a jar file into the build path of the compiler?

    Hey,
    I'm trying to import a jar file into the build path of the compilation process, but it does not find the packages or the classes that are in it.
    I think I don't add it right...
              ArrayList<String> options=new ArrayList<String>();
              options.add("-d");
              options.add(targetDirectory);
              options.add("-classpath");
              for(String str:includeDirectory)
                   options.add(str);
              if (!compiler.getTask(writer, fileManager, diagnostics, options, classes, compilationUnits).call());
                    ....and I've tried this way:
         public void setTargetDirectory(String targetDirectory) {
              this.targetDirectory = "-d " + targetDirectory;
         private void compile(Iterable<? extends JavaFileObject> compilationUnits) throws Exception {
              ArrayList<String> options = new ArrayList<String>();
              options.add(targetDirectory);
              String classPath="-cp ";// tried this also with "-classpath"
              for (String str : includeDirectory)
                   classPath+=str+":";
              options.add(classPath);
         if (!compiler.getTask(writer, fileManager, diagnostics, options, classes, compilationUnits).call())
              // throw new Exception("Compilation Error");
         }Thanks in advance,
    Adam.
    Edited by: Adam-Z. on Feb 24, 2010 5:41 AM
    Edited by: Adam-Z. on Feb 24, 2010 5:42 AM

    Thank you for your reply,
    Q: Are there .class files in that directory in that jar file? (the compiler doesn't ( can't )) look for directories, it can just look for specific files , and scan to get a list of all files matching certain criteria. So if there are no class files, it will say the package doesn't exist, even if there is a directory, possibly containing other files.yes there are class files in the jar, the tree structure:
    j2MeDataChunkGenerator_Plugin\(lots of class files)
    META-INF\manifest.mf
    and thats it.
    , your code will only work on windows because other platforms use a different path separator. You should use java.io.File.pathSeparator not explicit ';" when building your classpath. (this is unrelated to your problem, but you should correct it)will do, thanks.
    Q: Is that error in your post formatted by your own diagnostics? (we could possibly help you better if we didn't have to guess!!)I would not post my own error code, this text is generated by the compiler diagnostic.
    {code}
         System.err.println(" Error details: " + diagnostic.getMessage(null));
    {code}
    Q: Is line 3 of ImageCroper_Editor.java (sic) an import statement? (we could possibly help you better if we didn't have to guess!!)it is an import error... didn't the error message stated that it is an import problem? wired, I'm sure before it did. anyway it is an import error.
    Also you don't show us what the variable includeDirectory is in terms of type, and contents, that might be helpful. (we could possibly help you better if we didn't have to guess!!)It has only one String object: "D:\%Important Documents\WorkSpaces\PacMan\ApplicationManager\Plug-in\Data Chunk Designer.jar"
    the last file on the classpath list.
    Q: Have you proven this? that i did post, in this long line of text.
    Q: Is the compiler finding other classes (in other packages) in that same jar file?No. all the class files are in the jar, they all have entries that start with "j2MeDataChunkGenerator_Plugin\*.class", and since I get 47 errors I guess it does not load any other class.
    thank you for you comments, the problem with having these errors, is that I can't even get a piece of information where this error is coming from, only that it is an import loading error package not found, what does that mean? that the jar was not loaded in compilation(no error about this), that the jar is corrupted(no error about this), that the path is incorrect(it is correct I made sure), that there is no such package in the jar(There is), that the compiler does not load the package(does it even do that?), really I can't even guess why this happens, I've been at this on and of all day today, really annoying.
    Thanks,
    Adam.

  • Adapter module:: JAR file in the build path of EJB project

    Hi Experts,
    I have created one adapter module, for this I have created one EJB project and also associated one EAR project to that.
    I have completed my coding and changes in the xml files.
    I have followed this -
    http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417500)ID1494558950DB01504425675464955468End?rid=/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa&overridelayout=true
    while creating the module.
    but after finishing this , I can not see the ejb.jar file corresponding to the ejb project, I can see the class file generated in the build path.
    but I can not see the ejb.jar in the EJB project after build.
    When I checked the EAR project I found under Deployment descriptor there is a folder called module and there is  a jar file named as -
    EJB<my ejb project name>.jar
    when I am about to deploy this EAR  in the server it is showing  me to choose the file from EAR project and this EAR project contain the EJB Project .
    Request you to please let me know is everything ok with my project ? or please let me know how can I see the  ejb.jar  file corresponding to the ejb project below the build path.
    Thanks
    Vinny

    Hi Experts,
    I have created one adapter module, for this I have created one EJB project and also associated one EAR project to that.
    I have completed my coding and changes in the xml files.
    I have followed this -
    http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417500)ID1494558950DB01504425675464955468End?rid=/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa&overridelayout=true
    while creating the module.
    but after finishing this , I can not see the ejb.jar file corresponding to the ejb project, I can see the class file generated in the build path.
    but I can not see the ejb.jar in the EJB project after build.
    When I checked the EAR project I found under Deployment descriptor there is a folder called module and there is  a jar file named as -
    EJB<my ejb project name>.jar
    when I am about to deploy this EAR  in the server it is showing  me to choose the file from EAR project and this EAR project contain the EJB Project .
    Request you to please let me know is everything ok with my project ? or please let me know how can I see the  ejb.jar  file corresponding to the ejb project below the build path.
    Thanks
    Vinny

  • Signed applet : problem signing jar files that are in build path

    Hello,
    I have a problem while trying to create an ftp applet.
    I use org.apache.commons.net.ftp and i build path for commons-net-1.1.4.jar and then i build my classes.
    When i create a jar file with my classes and after signing it, it works under eclipse but not on a web page.
    I had signed commons-net-1.1.4.jar before to build the path in eclipse but commons-net-1.1.4.jar is not in my jar file.
    What is the way to sign applet correctly even if some jar ressources are in eclipse build path.
    Thank you

    You were right!!!
    I'm not sure what to write down in the formsweb.cfg (configuration file) , following the instructions on the on-line help of Developer Forms 10g , in step 9..
    The step 9 says...
    Because in this release the JACOB code is in an external Jar file and not incorporated into frmwebutil.jar, it needs to be downloaded. To do this, change the WebUtilArchive setting to read: webUtilArchive=/forms/webutil/frmwebutil.jar,/forms/webutil/jacob.jar
    The doudt is pointed to the fact that the frmwebutil.jar isn't in the ORACLE_HOME\forms\webutil path but it is ORACLE_HOME\forms\java path.
    Also , these paths referenced in webUtilArchive are physical paths in a Unix system or they are logical paths in a url?
    Simon

  • Eclipse compile and build path

    Hi I'm using Eclipse to build a web application.
    Java 5, Mac OS X Leopard, Eclipse j2ee build 3.3.
    In my web application I've defined a servlet FooServlet that only handles requests where the url is http://localhost:8080/foo. No other servlet is mapped to this url in the deployment descriptor. The problem I'm having is that FooServlet is not on the build path, but the application runs as though it is. That is, I should be seeing a 404 error when I make a get request for this url and instead I am seeing a page produced by this servlet. I've checked the properties menu of the project and inspected the various areas of the build path, variables, external jars, libraries, etc. It's not there. I've checked the shared and common lib folders of Tomcat. Not there.
    It's voodoo. I'm stumped on this one and I really appreciate any help. Thanks in advance.

    where your web application is deployed? i.e. from where tomcat takes your web.xml, classes, jars, html's and jsp's?

  • [svn:bz-trunk] 21002: Clean up build. xml and remove unnecessary delete task in the jar target.

    Revision: 21002
    Revision: 21002
    Author:   [email protected]
    Date:     2011-03-31 09:47:04 -0700 (Thu, 31 Mar 2011)
    Log Message:
    Clean up build.xml and remove unnecessary delete task in the jar target. 
    Checkin tests passed.
    Modified Paths:
        blazeds/trunk/modules/core/build.xml
        blazeds/trunk/modules/proxy/build.xml
        blazeds/trunk/modules/remoting/build.xml

    Well obviously it is an Ant build.
    It looks to just compile/build a web application into a war so you can deploy it where you want to.
    You don't need to edit it every time you are making a new page. It should work for any generic struts web application laid out in the fashion it expects.
    Cheers,
    evnafets

  • Share project configuration with team and Build Path?

    Question 1:
    Is it possible to share the Flex Builder project settings (Flex Build Path, etc.) with other users?  It would be nice to be able to do this so all developers on a team do not have to follow a step-by-step procedure for setting up a project.  For example in a Java Project you can simply check-in the project and classpath files and new developers don't have to spend anytime setting up their ide.  I took a look at what flex is doing and it appears it saves this information (at least some of it) in the plugins directory.  I can't find exactly where but it seems very odd.
    Question 2:
    When setting the Flex build path is there a way to set-up a SWC Folder that recursively adds SWC's in sub-directories?  We pull in Flex libs from artifactory which places them into an un-flattened structure.  Since all the libs are in sub-dirs they are not found.  We have to manually add each lib individually?
    Any ideas on either of these questions?  Thank you.

    Re: Question 1.
    Do you mean check into SVN or similar? Anyway, it seems Flash builder is saving some configuration about build paths etc. in the .actionScriptProperties file, which is found in the root folder of a project. Another option might be to export the project as a Flash Builder project by right-clicking it in the package explorer and choosing Export?
    Re: Question 2.
    Afaik the IDE doesn't support recursively going through a folder to find all swc:s. You could probably solve this using an ANT script. E.g. the following script recursively copies all files with .swc extension from the libraries (AS3) folder to the libs folder of a project.
    <project name="swcTest" default="copy.swc" basedir=".">
        <property name="swc.src" value="${basedir}/../../libraries (AS3)/" />
        <property name="swc.dest" value="${basedir}/libs/" />
        <target name="copy.swc" description="Recursively copies swc files from source to target folder">
            <echo message="${swc.src}" />
            <echo message="${swc.dest}" />
            <copy todir="${swc.dest}" failonerror="true" flatten="true">
              <fileset dir="${swc.src}"
                       includes="**/*.swc"
              />
            </copy>
        </target>
    </project>

  • A .txt in jar,and dont kown the jar's absolute path,how to read it

    I have help.txt and HelpReader class in a jar,and dont kown the jar's absolute path,how to let
    HelpReader class can find help.txt and read it??
    thanks

    Make sure the jar is in your program's classpath. Then use something likeInputStream help = this.getClass().getResourceAsStream("/help.txt");to read the file. Exactly what you would use depends on where in the jar file the help.txt file is located.

  • Java 5.0 does not recognize wrapped Class-Path in Manifest.MF of .jar file?

    Java: build 1.5.0_05-b05
    Ant: 1.6.2
    I use Ant <jar> task to create a standalone application in a .jar file. I have a very long "Class-Path" in the Manifest.MF file. The long Class-Path is wrapped at every 70th character by the <jar> task. I cannot run "java -jar <the jar file>", because Java runtime cannot find classes.
    I found the following Q&A from ANT's FAQ page,
    Q: Whenever I use the Ant jar or manifest related tasks, long lines in my manifest are wrapped at 70 characters and the resulting jar does not work in my application server. Why does Ant do this?
    A: Ant implements the Java Jar file specification. Please refer to the notes section where it discusses the maximum allowable length of a line and the concept of continuation characters.
    If a jar file produced by Ant does not work in your appserver, and that failure is due to the wrapped manifest, then you need to consult your appserver provider, as it is a bug in their appserver. Far more likely, however, is a problem in your specification of your classpath. It is not Ant's wrapping of your classpath that is the problem.
    Do not raise a bug about this issue until you have checked to ensure that the problem is not due to your classpath specification.
    Any idea?

    "will be searched ALSO."...
    From: http://java.sun.com/docs/books/tutorial/ext/basics/load.html
    Understanding Extension Class Loading
    The extension framework makes use of the new class-loading mechanism in the JavaTM 1.2 platform. When the runtime environment needs to load a new class for an application, it looks for the class in the following locations, in order:
    1. Bootstrap classes: the runtime classes in rt.jar and internationalization classes in i18n.jar.
    2. Installed extensions: classes in JAR files in the lib/ext directory of the JRE.
    3. The class path: classes, including classes in JAR files, on paths specified by the system property java.class.path. If a JAR file on the class path has a manifest with the Class-Path attribute, JAR files specified by the Class-Path attribute will be searched also.
    [snip]

Maybe you are looking for

  • I have an ipod touch and an ipad.   I just bought fifa 12 in ipad for 99cents but i can't download it for free in my ipod with the same apple id

    I have an ipod touch 4th generation and an ipad.  Today i bought fifa 12 which was on sale for a dollar on my ipad. But i want to download the game in my ipod touch but in the app store it says $1 instead of INSTALL.  i used the same apple id!

  • SAP IDOC shows status 03, but no file is written

    We have SAP configured to generate delivery IDOCs when the SAP Delivery document is posted/saved. The IDOC is initially created with status 30. There is batch job RSEOUT00 every 30 mins that collects the IDOCs in status 30 and converts to status 03.

  • Reg Different PO currencies

    Hi We have currency maintained as USD for a vendor but buyers place PO in Mexicon dollers for few materials for same vendor and in USD for few other materials How i can i achieve that in info record i can choose my desired currency but while creating

  • Replace n:th string

    Anyone have a nice suggestion for how to replace the n:th string in a string. Example lets say we have text = "wooho wooho wooho". And i want to call text.replace("wooho", "blaha", 2); Which would replace the second occurence in the string so that it

  • AE NEEDED REQUEST

    Maybe some of the below requests are available now and I'm not aware or they are in development (cross fingers), but here they are: Scalable interface for high dpi screens! (Like Photoshop) Also, it would be great to have big buttons on the UI based