Problem in using asant tool in Sunone Apps Server 8.0 on Windows XP

Hi,
I am using asant.bat tool to build example applications in j2eetutorial14.
whatever taget i am using to build the examples in sample directory ie,
<J2EE_HOME>/j2eetutorial14/examples/web/bookstore> asant build
<J2EE_HOME>/j2eetutorial14/examples/web/bookstore> asant create-db_common
, etc
always I am getting the java usage:
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM......................
This is the new problem I am facing now after using this server quite a time. As far as i knew i had done all the prerequisite before building these samples since this was working for me nicly. Now it is not working with any allternatives. I even re-installed the server again. I am not able to trace out the problem.
Can any suggest something to resolve this issue.. I am in desperate need of help.
Regards,
Sangram

I was able to compile and build the codes in j2eetutorials14 recently. Now after few days I need to compile the code again .
But when I am running 'asant build' command as given i tutorials I am getting ''asant' is not recognized as an internal or external command,
operable program or batch file." error.
I am not able to find out why suddenly asant is not available???
Any pointers will be highly appreciated.
Thanks

Similar Messages

  • Axis2 error on sunone app server 8.1

    Hi, I tried to deploy axis2 1.3 sample web service StockQuoteService
    on SunOne app server 8.1, and I keep getting errors when trying using
    http (and same error using Java client):
    http://dapp1.dev.netsol.com:57050/axis2/services/StockQuoteService/getPrice?symbol=IBM
    Response:
    <soapenv:Reason>
    <soapenv:Text xml:lang="en-US">unknown</soapenv:Text>
    </soapenv:Reason>
    On Server side, error in server.log:
    [#|2008-02-21T16:06:02.638-0500|SEVERE|sun-appserver-ee8.1_02|javax.enterprise.system.container.web|_ThreadID=12;|org.apache.catalina.core.
    StandardHostValve@1d51845: Exception Processing ErrorPage[errorCode=500, location=/axis2-web/Error/error500.jsp]
    java.lang.IllegalStateException
    at org.apache.coyote.Response.reset(Response.java:302)
    at org.apache.coyote.tomcat5.CoyoteResponse.reset(CoyoteResponse.java:665)
    at org.apache.coyote.tomcat5.CoyoteResponse.reset(CoyoteResponse.java:931)
    at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:418)
    at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:330)
    at org.apache.catalina.core.StandardHostValve.postInvoke(StandardHostValve.java:177)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:552)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:226)
    at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2071)
    Anyone has similar experience or any clue? Thanks.

    I have the same exception, even though my java home is:
    c:/java/jdk1.5.0_04/
    I checked the asenv.bat file and it has the same home directory. WITH NO SPACES.
    set AS_JAVA=C:\Java\jdk1.5.0_04\
    I appreciate any help regarding this issue!!

  • Integrating iPlanet Web Server 6.0 with SunOne App Server 7.0

    I am experiencing problems integrating iPlanet Web Server 6.0 with SunOne App Server 7.0
    My magnus.conf is
    #ServerRoot /usr/iplanet/servers/https-test
    ServerID https-test
    ServerName sulev016.eur.gep.ge.com
    ErrorLog /usr/iplanet/servers/https-test/logs/errors
    PidLog /usr/iplanet/servers/https-test/logs/pid
    User root
    MtaHost localhost
    DNS off
    Security off
    ClientLanguage en
    AdminLanguage en
    DefaultLanguage en
    RqThrottle 128
    StackSize 131072
    CGIWaitPid on
    TempDir /tmp/https-test-ab0d7966
    Init fn=flex-init access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
    Init fn=load-types mime-types=mime.types
    Init fn="load-modules" shlib="/usr/iplanet/servers/bin/https/lib/libNSServletPlugin.so" funcs="NSServletEarlyInit,NSServletLateInit,NSServletNameTrans,NSServletService" shlib_flags="(global|now)"
    Init fn="NSServletEarlyInit" EarlyInit=yes
    Init fn="NSServletLateInit" LateInit=yes
    Init fn="load-modules" shlib="/usr/iplanet/servers/plugins/passthrough/bin/libpassthrough.so" funcs="init-passthrough,auth-passthrough,check-passthrough,service-passthrough" NativeThread="no"
    Init fn="init-passthrough"
    ==========================================
    my obj.conf is
    <Object name=default>
    NameTrans fn="assign-name" from="(/OMS|/OMS/*)" name="passthrough"
    NameTrans fn="NSServletNameTrans" name="servlet"
    NameTrans fn="pfx2dir" from="/servlet" dir="/usr/iplanet/servers/docs/servlet" name="ServletByExt"
    NameTrans fn=pfx2dir from=/mc-icons dir="/usr/iplanet/servers/ns-icons" name="es-internal"
    NameTrans fn="pfx2dir" from="/manual" dir="/usr/iplanet/servers/manual/https" name="es-internal"
    NameTrans fn=document-root root="$docroot"
    PathCheck fn=unix-uri-clean
    PathCheck fn="check-acl" acl="default"
    PathCheck fn=find-pathinfo
    PathCheck fn=find-index index-names="index.html,home.html"
    ObjectType fn=type-by-extension
    ObjectType fn=force-type type=text/plain
    Service type="magnus-internal/jsp" fn="NSServletService"
    Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
    Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
    Service method=(GET|HEAD) type=*~magnus-internal/* fn=send-file
    AddLog fn=flex-log name="access"
    </Object>
    <Object name=cgi>
    ObjectType fn=force-type type=magnus-internal/cgi
    Service fn=send-cgi user="$user" group="$group" chroot="$chroot" dir="$dir" nice="$nice"
    </Object>
    <Object name="servlet">
    ObjectType fn=force-type type=text/html
    Service fn="NSServletService"
    </Object>
    <Object name="jsp092">
    ObjectType fn="type-by-extension"
    ObjectType fn="change-type" type="magnus-internal/jsp092" if-type="magnus-internal/jsp"
    Service fn="NSServletService" type="magnus-internal/jsp092"
    </Object>
    <Object name="ServletByExt">
    ObjectType fn=force-type type=magnus-internal/servlet
    Service type="magnus-internal/servlet" fn="NSServletService"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="passthrough">
    ObjectType fn="force-type" type="magnus-internal/passthrough" Service type="magnus-internal/passthrough" fn="service-passthrough" servers="http://3.224.68.131:81"
    Error reason="Bad Gateway" fn="send-error" uri="$docroot/badgateway.html"
    </Object>
    The requests are not passing through to the app server when i try to access it through port 80.
    Presently I am testing my appln over port 81 on the app server.
    Thanks and Regards
    Vineet Guliani

    Each ObjectType and Service directive should begin on a new line. You appear to have placed two directives on a single line.

  • Sun App Server 8 as a Windows Service

    Is it possible to install Sun App Server 8 as a Windows Service so I could run it under Windows 2003 Server? If yes, how -- I could not find any information on it.
    Sincerely,
    Sergei Batiuk.

    I received a reply from Paul Ko at Sun Microsystems.
    Paul is the product line manager for Sun's Java application server.
    >
    Sean,
    To run the AppServer as a Windows service, you need to use 3rd party
    software to enable this. The AppServer is designed to run as a
    Windows application, not as a service. You can do a Google search to
    find a suitable 3rd party software to fulfill you needs.
    Unfortunately, we do not publish which 3rd party software can be used
    to do this -- as a policy, we don't endorse any particular vendor.
    Best,
    Paul

  • Problem in using WSDL2Java tool in axis

    Hi all,
    When we make our Webservices in Apache Axis at Server,the first step is to generate the WSDL file by using Java2WSDL tool and passing the interface and ip address of server as argument.For example,
    org.apache.axis.wsdl.Java2WSDL -o AddService.wsdl -l"http://127.0.0.1:8080/axis/services/AddService" -n AddService
    Then we use WSDL2Java to generate java files and write our code there.
    My problem is that I do not know what will be the IP address of the machine where this service will be deployed.So is there any way so that we can make all the java files in our application but provide the ip address during deployment.

    I was able to compile and build the codes in j2eetutorials14 recently. Now after few days I need to compile the code again .
    But when I am running 'asant build' command as given i tutorials I am getting ''asant' is not recognized as an internal or external command,
    operable program or batch file." error.
    I am not able to find out why suddenly asant is not available???
    Any pointers will be highly appreciated.
    Thanks

  • Problems when using my 3G mobile hotspot app

    Now this used to work fine, now not working.  On my Casio Commando, there is an app that is titled, 3G mobile hotspot.  Now I have used this to connect to the internet using my netbook, work one, when in an area that the Verizon Fob Card does not find a good signal.  About 2 weeks ago while running this app, it keep telling me that there is no internet connection.  Now my netbook tells me that it is connected to my phone, but no internet connection.  Have just tried this same procedure on my home computer, and same thing.  So why am I not able to connect to the internet, but I can tether?  Any help would be greatly appreciated.  P.S. When I try to check the app by using the manage updates, that app is not in the list.  This makes this even more weird.

        stolencode101,
    We want you to be able to enjoy your mobile hotspot on your device. Please try a couple of troubleshooting steps with me. First, please turn on your mobile data, Settings>Wireless & Networks> Mobile Networks> Uncheck Data enabled. Next, turn on airplane mode, Settings>Wireless & Networks>Check Airplane Mode. Then, power cycle your phone. Finally, Make sure Airplane mode is off, Turn mobile data back on, make sure Wi-Fi is off, and turn on 3G mobile hotspot. Let us know if this works.
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • Connecting imqadmin tool to Sun App Server 8

    I have been using the Standalone platform edition of MessageQueue on solaris with no problems (V3.5 SP2). I am currently looking up my ConnectionFactory on an LDAP server. This is working fine.
    However, I am also trying to connect the imqadmin tool to the JMS Provider bundled with Sun Application Server 8. This must be possible, since the imqadmin tool comes with the install.
    What should be the correct settings used for creating the ObjectStore on the imqadmin tool?
    Is this even possible?
    I also noticed that it was not possible to create generic ConnectionFactory objects in the admin pages of the Sun Application Server 8 JMS Section - I was only able to create a specific QueueConnectionFactory or TopicConnectionFactory object.
    Using the imqadmin tool for the standalone platform edition of JMS Server, you can create ConnectionFactory objects no problem.
    Why the difference - are they compliant to the same JMS Spec?

    I'll answer the second question first:
    Why the difference - are they compliant to the same JMS Spec?Mostly. The E2EE spec adds additional behaviors and
    restrictions on top of jms (causing some minor behavior
    differences) for example
    1. look up of jndi resources should all come from the
    same context
    2. non-rich clients (servlets, mdbs, etc) can not create
    more than one session on a connection
    3. MDB's can not create JMS transacted sessions
    4. EJB's and servlets can not create message listeners
    As far as using imqadmin to manage objects ...
    In general, you should use the app server tools for creating the connection factory objects used by MDBs and most other clients.
    You can continue to use imqadmin to make changes to the
    broker (e.g. create physical destinations, etc)
    If you want an rich "appClient" to access a client, you should
    be able to create your own connection factory (using imqadmin) but export it to the application as a custom resource, see:
    http://docs.sun.com/source/817-6088/jndi.html

  • Problem running a sample application in sun app server PE 8

    Hi,
    I am trying to run the petstore application with oracle 9i. It's a demo application that comes with app server. I set the classpath in the app server to the oracle driver files. I am able to deploy it successfully. But, when I run it it gives me this error:
    java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.xa.client.OracleXADataSource
    I am using oracle thin driver.
    Rgds,
    shipf1

    Yes, I am deploying the application as an ear.You would need to configure the JAR as a module within the EAR. If it is required only by a web app, you could add it to the WEB-INF/lib for the web app.

  • Problem with JNI (custom shared library) on App Server

    We have a custom built shared library (.so) we want to use with the app server (a webapp). The .so is wrapped with java class and works to spec when tested outside of app server (webapp) environment with test stub. When wrapper class is introduced to App Server (webapp) & embedded function is invoked we recieve java.lang.UnsatisfiedLinkError(). We've looked to make sure $LD_LIBRARY_PATH is correct but still recieve this exception. Any suggestions? Running nm against the .so shows undefined symbols but these should be resolved by $LD_LIBRARY_PATH. Any suggestions?

    what version of appserver are u using...if 7.0 then try using their common class loader as per this docs:
    http://docs.sun.com/source/817-2171-10/dgdeploy.html#wp69906

  • Problem of using LiveCycle ES (8.0)  Rights Mangement on Traditoinal Chinese Windows Enterprise Serv

    Dear all,
    Hello.
    Recently I had to set up a LiveCycle ES 8.0 on Tradiitonal Chinese (zhTW) Windows Enterprise Server 2003. Using turnkey & express configuration, installation was actually a breeze.
    However, after installation, I discovered that Rights Mangement ES was not functioning at all. I recalled from another installation that a global policy set would be created upon installation. This global policy set was just not there to start with. To make the matter worse, no policy could be created. Everytime such attempt was made, "An internal server error has occurred; please contact your Administrator." had always been the failure message. A look at JBoss server.log states:
    com.adobe.edc.server.errors.exception.EDCServerSystemException: nullorigin: | [com.adobe.edc.server.businesslogic.audit.AuditManagerBean] errorCode:1281 errorCodeHEX:0x501 message:No such event definition exists | severity: 1
    at com.adobe.edc.server.businesslogic.audit.AuditManagerBean.logServerEvent(AuditManagerBean .java:427)
    at com.adobe.edc.server.businesslogic.audit.AuditManagerBean.logServerEventTrans(AuditManage rBean.java:541)
    more lines ...
    Not only that I was unable to create policies at all, the configuration items under Rights Management just does not work. For every configuration that I tried to make change, I would always, upon saving configuration, see "A server error has occurred; please contact your Administrator." error message.
    Installing and use of LiveCycle ES 8.0 on English version of Windows Server 2003, Windows XP SP2, or SuSe Linux 10 did not produce the errors mentioned above.
    I just wonder if Adobe LiveCycle ES 8 is currently supported on non-English OS? If it's indeed supported, what measures do I have to take to remedy the problems pertaining to Rights Management?
    Thanks for any input or suggestion.
    Paul
    NTI Corp.
    http://www.nti.com.tw/

    Hi Paul,
    Unfortunate this will not work. Traditional Chinese is not a supported operating system for the server. We support English, French, German and Japanese. In saying that most things do work but we know that Rights management is more challenged then other products in this way. If this is a production system and you want support you have to goto a supported language on your OS. If this is more for development and evaluation you can try a couple things. One thing would be to change your local and regional settings to English.
    In our testing we actually did not try Traditional Chinese, we tried Simplified Chinese, basically we were hoping it would just work, but we saw multiple errors in the AdminUI and the effort in fixing it did not fit in the schedule.
    I apologise about the lack of support for you OS/Language combination.
    Kind Regards C
    Chris de Groot
    Senior Product Manager
    Adobe Systems Inc.

  • Problem running WebLogic as plugin for SunOne web server on Solaris

    I tried to set up WebLogic (8.1) as plugin for SunONE (iPlanet) web server. I followed instraction from http://e-docs.bea.com/wls/docs81/plugins/nsapi.html#110496. SunONE server start up successfully. But I have problem to connect my web application, and SunONE web server returns following error:
    "for host 172.23.54.5 trying to GET /arsys/home, wl-proxy reports: Neither 'WebLogicCluster' nor 'WebLogicHost' specified in parameters"
    I tried both SunOne (6.1 sp3) and iPlanet (6.0), I saw same problem.
    Can anyone help me on this?
    Thanks
    Charlie

    To configure sunone to work with WLS, you need to make entires in the magnus.conf and the obj.conf.From the error, it seems as if u missed the entries in the obj.conf.

  • Migrating from WebSphere 5.1 OR WebLogic 5.1 SP1 To SunOne App server 7

    Hi all,
    I have an application which is compatable with WebSphere 5.1 or WebLogic 5.1 SP1 and i want to move it to SunOne Application Server 7.
    the migration tool don't support these Versions, so can anyone tell me how to migrate or When the updated version of the Migrator Tool will be available?

    The migration too supports migration from SunOne Application Server 7 to weblogic 5.1 (http://wwws.sun.com/software/download/products/3f577172.html). Please check.

  • Using Spamassassin With The SunONE LDAP Server

    Has anyone out there integrated the Spamassassin the SunOne LDAP server?
    Thanks,
    AFR

    Thx man, now i have my spamassassin working whith my ims server.
    i have installed :
    SpamAssassin Versin 3.0.2
    running on Perl version 5.8.2
    ims version 5.2 p2
    i have just some problems.
    first i can't add or chage hearder information of the message identified as spam. I have set my option.dat file as here :
    Brightmail_string_action=data:,require ["addheader"]; addheader "Spam-test: $U";
    and here is my spamassassin.opt config file:
    host=127.0.0.1
    port=783
    mode=1
    verdict=spam
    debug=1
    I have tryed all combinations of mode=1, mode=0,.. and all combination of brightmail action ( require "header", require [header] ...) but it doesn't work :(
    The only action that works is the fileinto action. i made it in my option.dat file like this :
    Brightmail_string_action=data:,require "fileinto"; fileinto "spam";
    that worked very well, but i prefere to chage the subject of the message rather that file it into a separate folder.
    last thing, it will be really great if u can tell me how can i add/remove email adresses/domains to a balcklist/whitelist. what i have tryed is with the spamassassin command :
    # spamassassin --add-adr-to-black-list=*@promo.co
    and of corse many other combination.
    thanx in advance.

  • Change the User ID running the SunOne Directory Server 6.3 on Windows 2003

    Hi Experts,
    I have an install of SunOne Directory Server Enterprise edition 6.3 running on Windows 2003 server. It was installed using the Zip distribution and is running as a user ID in the Active Directory the server is part of. We are trying to change the user ID to a service account (not the current ID which belongs to a person), so that the Sun DS can run as a service within Windows 2003 server. Need help in doing this without having to re-install the Directory server. Has anyone done this and is it possible to do?

    Thank you very much for the insights and the responses sharmy28.
    Appreciate it very much.
    All I had to do was change the setting in this file only:
    Open the file dsee6/cacao_2/etc/cacao/instances/default/private/cacao.properties and change the below line with new id...
    # Define username and groupname for cacao process
    process.username=sunadmin
    process.groupname=sungroup
    As this is Windows 2003 and the installs are all default values, I had to reboot the server for the change to take effect.
    The file dsee6/cacao_2/usr/lib/cacao/lib/tools/scripts/globals.cfg does not exist. However the same file exists under the perl directory as globals.pl and the settings you specified are present there. In our case these were commented out and so I left them as is.
    Thanks once again for your responses which helped me solve the issue we had.
    Thanks.

  • How to tell if the app server is running (on windows)

    Folks,
    I'm trying to write a deploy.bat - to build and deploy (using ant) my enterprise-app and web-services (the firstcup example)
    ... I'm stuck on winblows (for now) ...
    The deploy depends on the app server... so if it's not running, I'd like to start it automagically... but I've fallen on the first hurdle... I can't figure out how your supposed to determine if the server is up.
    Please can anyone help?
    FYI: I had a bit of a play with the asadmin tool and found:C:\Java\src\Tutorials\Sun\firstcup\example\firstcup>asadmin version
    Unable to communicate with admin server, getting version locally.
    Version = Sun Java System Application Server Platform Edition 9.0_01
    Command version executed successfully.
    C:\Java\src\Tutorials\Sun\firstcup\example\firstcup>echo %ERRORLEVEL%
    0which looks promising... I can grep for the "Unable to communicate with admin server" (using a perl one-liner)... butt ugly but effective (for now).
    TIA. Keith.
    PS: There doesn't seem to be an application server forum???

    Folks,
    Firstly, Thanx for the underwhelming response :-)
    I've got a working workaround.
    I created a "hello world" webapp which I hit it from a CGI script.
    It should be (slightly) more robust (and portable) than grepping for error messages from the asadmin version utility.
    Shame I'm dependant on the "old hat" for the new goose though.
    Cheers anyway. Keith.

Maybe you are looking for

  • Device Driver Installation on Virtual PC XP mode

    Hi, I am having Windows 7 Professional setup. I have installed Windows Virtual PC XP Mode on it. I need to access USB for connecting my Windows Embedded device with Visual Studio Platform Builder which has installed in XP mode. Using USB over network

  • When i open itunes it get this error message (-42110) just did an update and it still didn't go away????

    hen i open itunes it get this error message (-42110) just did an update and it still didn't go away????

  • Nokia x3 problem

    When i download game's for nokia x3 from ovi store or from any other site , i am not able to get sound and music while i'm playing . . . Itz very irritating to play a game without sound. . . So plz tell me a solution to overcome dis prob . . .

  • Loading date different in SBOM Header and Child Material.

    Hi All, We are implementing the SBOM Functionality for our Client. We are facing unusual issue while going through a Testing Phase. We are using the same SBOM Master data for all our testing purpose. I have created 4 Sales Orders for same SBOM Materi

  • Deployment best practice

    Looking to setup a deploy to live strategy for a relatively new team, the options are: option-1) Build in test environment using ant tasks and move the war, jar etc. to live. With the live specific properties in a separate file option-2) Make a ant t