Finer control of system management using Ant tasks

I would like to startup and shutdown a server using an Ant script that controls
the classpath and the JVM options. The wlserver task does not allow these options
to be set under Ant control. They are fiixed by the scripts setWLSEnv.cmd (or
setWLSEnv.sh) which are run prior to running Ant, which defeats my purpose. Access
to the weblogic.Server javadoc (and the weblogic.server Javadoc) would help solve
the problem but this documentation has proven very elusive.
I'm using WebLogic Server 8.1
Any help is much appreciated.
-pmr

You can utilize the wlserver ant task to start and stop a WLS instance, documented
in e-docs at:
http://edocs.bea.com/wls/docs81/admin_ref/ant_tasks.html#1023263
Hope this helps.
Erik Johnson
"Paul Reilly" <[email protected]> wrote:
>
I would like to startup and shutdown a server using an Ant script that
controls
the classpath and the JVM options. The wlserver task does not allow
these options
to be set under Ant control. They are fiixed by the scripts setWLSEnv.cmd
(or
setWLSEnv.sh) which are run prior to running Ant, which defeats my purpose.
Access
to the weblogic.Server javadoc (and the weblogic.server Javadoc) would
help solve
the problem but this documentation has proven very elusive.
I'm using WebLogic Server 8.1
Any help is much appreciated.
-pmr

Similar Messages

  • DataSource is getting created without desired JNDI Name using ANT task

    Hi,
    While referring to http://weblogic-wonders.com/weblogic/2010/07/24/datasource-creation-using-ant-task-wlconfig/ when we try to create a DataSource using ANT Task <taskdef name=”wlconfig” classname=”weblogic.ant.taskdefs.management.WLConfig”/>
    We are unable to provide the Desired JNDI Name for our DataSource. It takes the DataSource Name itself as the JNDI Name of the DataSource. If we specify anyother JNDI Name then it doesnt reflect in the AdminConsole. But still the DataSource testing succeeds from the AmdinConsole.
    Is there anything Missing in the Ant Script?
    Thanks
    Jay SenSharma

    I think the attribute name should be JNDINames instead of JNDIName, this is also the name I always use in WLST (and is probably also used by wlconfig), for example,
    videotheekDataSource = cmo.createJDBCSystemResource('VideotheekDataSource');
    jdbcResource = videotheekDataSource.getJDBCResource();
    names = ['jdbc/exampleDS'];
    dataSourceParams = jdbcResource.getJDBCDataSourceParams();
    dataSourceParams.setJNDINames(names);
    Good luck and keep up the good work.

  • Deploying bpm 11g project sar file using ant task

    I am trying to deploy the bpm project using ant task file. The status I get is [deployComposite] ---->Deploying composite success. However when I check the deployments, they are not there. If I try to deploy this using Jdeveloper it works correctly. I need to get this to work for production deployments. Any suggestions?
    C:\Oracle\Middleware\Oracle_SOA1\bin>ant -f ant-sca-deploy.xml -DserverURL=http:
    //10.140.183.71:7001 -DsarLocation=N:\RuleBasedProjectInitiate\deploy\RequestPro
    ject.ear -Doverwrite=true -Duser=weblogic
    Buildfile: C:\Oracle\Middleware\Oracle_SOA1\bin\ant-sca-deploy.xml
    [echo] oracle.home = C:\Oracle\Middleware\Oracle_SOA1\bin/..
    deploy:
    [input] skipping input as property serverURL has already been set.
    [input] skipping input as property sarLocation has already been set.
    [deployComposite] created temp dir =C:\DOCUME~1\azeltov\LOCALS~1\Temp\deploy_cli
    ent_1279894885343
    [deployComposite] Creating HTTP connection to host:10.140.183.71, port:7001
    [deployComposite] Enter username and password for realm 'default' on host 10.140
    .183.71:7001
    [deployComposite] Authentication Scheme: Basic
    [deployComposite] Username:
    weblogic
    [deployComposite] Password:
    [deployComposite] Received HTTP response from the server, response code=200
    [deployComposite] clean up temp dir: C:\DOCUME~1\azeltov\LOCALS~1\Temp\deploy_cl
    ient_1279894885343
    [deployComposite] ---->Deploying composite success.
    BUILD SUCCESSFUL
    Total time: 4 seconds
    C:\Oracle\Middleware\Oracle_SOA1\bin>

    You can always deploy the ADF web apps from the Application (top menu) deploy option. Just make sure you're deploying the EAR profile for the project. Deploying the web projects from the composite deployment wizard can be convenient. But I think it's often the case that you deploy them (the composite and forms) separately (e.g. you make a series of changes to the composite without needed to redeploy the UI projects).
    Bottom line is you don't have to delete the projects to be able to modify/deploy them.

  • Using Ant task wlserver/wlconfig: Received exception while creating connection for pool.

    Hi,
    I am using ant tasks wlserver and wlconfig to configure my weblogic server. while creating a connection pool as shown below
    <target name="jdbcinfo">
    <wlconfig password="weblogic"
    username="weblogic"
    url="${url}"
    <query domain="mydomain" type="Server"
    name="myserver" property="serverbean"
    />
    <create type="JDBCConnectionPool"
    name="jdbcpoolA"
    property="jdbcPoolProp">
    <set value="false"
    attribute="ShrinkingEnabled"
    <set value
    attribute="
    <set value="${serverbean}"
    attribute="Targets"/>
    The JDBCConnectionPool is created as long as I don't specified the attribute "Targets"
    Once I add the target I get the following error
    <JDBC> <BEA-001129> <Received exception while creating connection for pool "poolname" invalid arguments in call>
    Please any help will be greatly appreciated.
    Thanks

    In your applicaion module configurations check if you are using 'JDBC URL' or 'JDBC DataSource'. You should use JDBC DataSource. Then make sure that your deployment descriptor (menu 'Application->Application Properties->Deployment) has the 'Auto Generate ...' checkbox set.
    Timo

  • How to build ear files for ADF application using Ant task

    How to build ear files for ADF applications using Ant. The ojdeploy ant task can not find application-level deployment profiles. I am trying to automated build and release for ADF application.
    Any help is highly appreciated.
    Thanks
    Shiva

    Hi Timo
    Thanks for your reply.
    I have successfully created ear file using ojdeploy on jenkins. however when am trying to auto deploy using WLDeploy ant task am getting the following
    error :
    weblogic.application.ModuleException: :oracle.mds.config.MDSConfigurationException:MDS-01335: namespace "/oracle/webcenter/quicklinks/scopedMD" mapped to metadata-store-usage "WebCenterFileMetadataStore" but its definition was not found in MDS configuration
    Please advise how to handle this.
    As am a newbie to ADF, could you please advise if it is possible for the ADF application deployments can be automated for different environments using jenkins due to this MDS dependencies.
    Appreciate your help.
    Thanks
    Shiva

  • NW7.3] Problem while trying to deploy an EAR using ant task

    (I posted this in another forum, but I think this is the right one )
    Hello!
    I'm trying to deploy a EAR file to my Netweaver instance using ANT but I'm facing the following problem.
    I've downloaded all the files from j2ee/deployment and j2ee/j2eeclient as SAP's documentation states, the classpath is correctly set, however I get this error:
    BUILD FAILED!
    build.xml:16: taskdef class com.sap.engine.services.dc.ant.convert.SAPImportEAR cannot be found
    I've taken a look at tcjedc_ant.jar, which I downloaded from my instance, and it appears that SAPImportEAR is missing.
    By opening the file I can see com.sap.engine.services.dc.ant.deploy, com.sap.engine.services.dc.ant.undeploy and com.sap.engine.services.dc.ant.params, but the whole package com.sap.engine.services.dc.ant.convert is missing.
    Is it suposed to be anywhere else? All the articles/posts I found state that it should be on tcjedc_ant.jar.
    Thanks in advance!

    Hi,
    I guess this example_build.xml is outdated (belongs to NW 7.1).
    To build an SDA, look at make_SDA.csh.
    Class is com.sap.engine.lib.deploy.sda.SDAProducer.
    To buid an EAR, you do not need SAPImportEAR at all, just <taskdef "sapdeploy"...
    Regards
    Rolf

  • I frequently find that when closing Firefox, and try to reopen again, get error message "Firefox is already running, but not responding. Recommend to close it, or restart system". Using Windows Task Manager, no application is found. After restart, OK.

    At the update to Firefox 3.6.8, I also updated to Flash 10.

    I get this problem often, on my computer which runs XP, I find simply waiting a few moments (up to a minute) is enough to end the process.
    On my Vista machine, it sometimes works that way, but if FF locked up (stopped) and is ended through the task manager, it often requires a reboot or a much longer wait (up to 10 minutes or more).

  • Using variables in WLST Script ant task

    I have multiple scipts that are run using ant tasks, however, I do not want to have to enter the password every time one of these scripts is executed. Instead I would like to use the following ant task to store the password in a variable/property:
    <target name="getPassword" >
         <echo message="Domain: ${domain}" />
    <echo message="Username: system" />
    <input message="Please enter password:" addproperty="password" />
    </target>
    I would then like to use that variable/property everytime a script is executed like this:
         <target name="deploy4x">
              <echo message="***** Copying 4X.ear *****" />
              <copy file="${build.path}\jar\4X.ear" todir="${apps.dir}" preservelastmodified="true"/>     
              <echo message="***** Updating 4X.ear on ${domain} *****"/>
              <wlst debug="true" fileName="Deploy4X.py" executeScriptBeforeFile="true" failonerror="true" >
                   <script>
                        connect('system','%s' % ${password},'%s' % $url)
                   </script>
              </wlst>
         </target>
    However, the script blows up every time I try to run it b/c of the connect() line. I have also tried connect('system','%s' % password, '%s' % url).
    Has anyone else successfully used variables in an Ant WLST Script task?
    Thanks.

    Hi,
    when I use *XDIM_MEMBERSET ACCOUNT AS %TEST% = BAS(REVENUE) - it work fine.
    BUT ! after my first commit, it seems like the variable value is lost. And the *Xdim_memberset takes all.....
    Fortunately enough, *select still contains the variable value after *commit.
    Thanks,
    Joergen
    *Correction !
    It actually works, it still contains the variable value after commit !!
    Edited by: Jørgen Dalby Andersen on Dec 30, 2011 1:33 PM

  • Error during deploying using sapdeploy ant task

    I am attempting to deploy a simple service which I have created using Dev studio. Instead of deploying using Dev studio, I want to use ant task for the same.
    This is the output I see in the console:
    deploy:
    [sapdeploy] Starting deployment with the following properties:
    [sapdeploy] Version Handling Rule: all
    [sapdeploy] Error Handling Strategies: [error action: 'prerequisites', error strategy: 'stop', error action: 'deploy', error strategy: 'stop']
    [sapdeploy] The targeted SAP J2EE Engines are: [server host: 'myhost', server port '50000', user name 'J2EE_ADMIN'.]
    [sapdeploy] Starting to validate the data...
    [sapdeploy] Validation ended
    [sapdeploy] root dir C:\temp\HelloWorldEAR
    [sapdeploy] Selected archives for deployment:
    [sapdeploy] 1: 'C:\temp\HelloWorldEAR\HelloWorldEAR.ear'
    [sapdeploy] Starting validation for the engine 'server host: 'myhost', server port '50000', user name 'J2EE_ADMIN'.'
    [sapdeploy] Engine data validated successfully
    [sapdeploy] Starting deployment for the engine 'server host: 'myhost', server port '50000', user name 'J2EE_ADMIN'.'
    [sapdeploy] An error occured during the deployment.
    [sapdeploy] The result of the deployment is: Error
    [sapdeploy] Deployment ended
    Where can I get more details of what might be wrong with the deploy process? I tried "-v" flag but to no avail. Syslog of the server shows nothing of interest.
    Thanks in advance for any help.
    Regards,
    Sameer

    Logs will be in log\dc_log folder.

  • Undeploy EAR on Oracle10gAS 10.1.2 using ANT

    I am using JDeveloper10g - 10.1.2 on my local machine and Oracle10gAS - 10.1.2 on a remote machine.
    I am able to deploy remotely using ANT task oc4j_remote_deploy.jar, but UNDEPLOY doesnt work. Anybody has a readymade UNDEPLOY task on a remote machine?
    Also, while using remote DEPLOY task, I noticed that though it takes the Application Name as a parameter, it deploys with the first part of EAR filename. For example, if I specify shop.ear for ear file name and SHOPALR8 for applciation name, still it deploys shop.ear with the name as shop. Any patch available for this?
    Any pointers will be highly appreciated.
    Thanks,
    Aravind.

    That seems to be fine. The warning message '[05/Mar/2013:16:39:01 +0800] [warning 11917] [ecid: -] SSL wallet Origin Server Wallet file SYSTEM DEFAULT LOCATION (See Documentation)\ewallet.p12 does not exist." wou;d however indicate that the Web Cache has been configured with SSL so it is quit odd.
    Given the fact that it is a warning only, I would expect the web cache to be available. But I noticed a different error as well :
    {code}
    [05/Mar/2013:16:39:04 +0800] [alert 11201] [ecid: -] OracleAS Web Cache is unable to resolve the IP address of xxxxxxx. Check your DNS setup.
    [05/Mar/2013:16:39:04 +0800] [alert 9609] [ecid: -] The server process could not initialize
    {code}
    That would suggest that you have defined a host name which cannot be resolved to IP number. That may cause the web cache not to start.
    Thanks,
    EJ

  • Weblogic 10 Ant task, JMS Module & Foreign JMS Destinations

    Any body knows how to configure JMS System Modules (which got introduced in WL ver. 9) and other JMS MBeans such as JMS Destinations and ConnectionFactories under the newly created JMS Module, using ant task for Weblogic 10.3 ?
    Also, when I create the ForeignJMSServer and the child MBeans such as Foreign Destinations and ConnectionFactories using ant task, it just creates the ForeignJMSServer and not creating the child MBeans. The problem is with WL 10. In WL 8.1, it works fine.
    In Weblogic 8.1, þe ant target for this job is as follows.
    ===========================================================================
         <target name="prepareForeignJMSServer">
    <wlconfig url="t3://localhost:7001" username="weblogic"
    password="weblogic" failonerror="false">
    <create type="ForeignJMSServer" name="myForeignJMSServer" property="temp-jms-server">
    <set attribute="InitialContextFactory" value="weblogic.jndi.WLInitialContextFactory"/>
    <set attribute="ConnectionURL" value="t3://192.168.0.23:7001"/>
    <set attribute="Targets" value="mydomain:Name=myserver,Type=Server"/>
    <create type="ForeignJMSConnectionFactory" name="MyRemoteCF">
    <set attribute="LocalJNDIName" value="MyLocalCFJNDI"/>
    <set attribute="RemoteJNDIName" value="MyRemoteCFJNDI"/>
    <set attribute="Username" value="weblogic-remote"/>
    <set attribute="Password" value="weblogic-remote"/>
    </create>
    <create type="ForeignJMSDestination" Name="MyRemoteQueue1">
    <set attribute="LocalJNDIName" value="MyLocalQueue1JNDI"/>
    <set attribute="RemoteJNDIName" value="MyRemoteQueue1JNDI"/>
    </create>
         </create>
              </wlconfig>
         </target>
    =====================================================================
    This target runs without error in WL 10, but does not create the ForeignJMSConnectionFactory and ForeignJMSDestination.
    If some one knows the solution, please give me advice.
    Thanks,

    Maybe this is of some help: http://www.bea-weblogic.com/namenotfoundexception-when-configuring-foreign-jms-server.html

  • Not able to create a new domain through ant task

    Hi,
    I have to upgrade weblogic 8.1 to weblogic 10.3 and I am using vanilla version of it. the first step to it is to create weblogic domain and then configure it and then start teh server and then deploy it. The problem starts when I am creating the domain, I am using ant task for domain creation and following these steps
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/ant_tasks.html
    when ant-task is trying to build the specified domain, it is looking for some config.xml and that config.xml should also generated by wlserver/ant task through a template. I have no idea, where and how to define that template.. hence getting following error.. tried hard but not able to get through. can anyone please help..
    Thanks in Advance
    Error stack trace:
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:27 PM IST> <Info> <Management> <BEA-1
    40013> <C:\WIRES\Standalone\weblogic\domains\THSStandAlone\config\config.xml not
    found>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:27 PM IST> <Info> <Management> <BEA-1
    41254> <Generating new domain directory in C:\WIRES\Standalone\weblogic\domains\
    THSStandAlone>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Critical> <WebLogicServer
    <BEA-000362> <Server failed. Reason:[WLServer THS-SA-Admin] There are 1 nested errors:
    [WLServer THS-SA-Admin] weblogic.management.ManagementException: Failure during
    domain creation
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.generateDomain(DomainDirectoryService.java:229)
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.ensureDomainExists(DomainDirectoryService.java:152)
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.start(DomainDirectoryService.java:72)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.ServerServicesManager.startS
    ervice(ServerServicesManager.java:459)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.ServerServicesManager.startI
    nStandbyState(ServerServicesManager.java:164)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.T3Srvr.initializeStandby(T3S
    rvr.java:711)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:4
    82)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:440)
    [WLServer THS-SA-Admin] at weblogic.Server.main(Server.java:67)
    [WLServer THS-SA-Admin] Caused by: com.bea.plateng.domain.script.ScriptException
    : Template "null" does not exist. Line 1
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic$StateMachine.processRead(ScriptParserClassic.java:510)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic$StateMachine.execute(ScriptParserClassic.java:428)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic.parseAndRun(ScriptParserClassic.java:150)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic.doExecute(ScriptParserClassic.java:112)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParser.ex
    ecute(ScriptParser.java:73)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.DomainInfoHelper.execu
    teSilentScript(DomainInfoHelper.java:861)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.DomainInfoHelper.creat
    eDefaultDomain(DomainInfoHelper.java:1755)
    [WLServer THS-SA-Admin] at sun.reflect.NativeMethodAccessorImpl.invoke0(
    Native Method)
    [WLServer THS-SA-Admin] at sun.reflect.NativeMethodAccessorImpl.invoke(N
    ativeMethodAccessorImpl.java:39)
    [WLServer THS-SA-Admin] at sun.reflect.DelegatingMethodAccessorImpl.invo
    ke(DelegatingMethodAccessorImpl.java:25)
    [WLServer THS-SA-Admin] at java.lang.reflect.Method.invoke(Method.java:5
    97)
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.generateDomain(DomainDirectoryService.java:224)
    [WLServer THS-SA-Admin] ... 8 more
    [WLServer THS-SA-Admin] >
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Notice> <WebLogicServer>
    <BEA-000365> <Server state changed to FAILED>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Error> <WebLogicServer> <
    BEA-000383> <A critical service failed. The server will shut itself down>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Notice> <WebLogicServer>
    <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    [WLServer THS-SA-Admin] Error in server execution (THS-SA-Admin)

    Thanks for your reply.
    I have seen sample xml and my target looks the same
    <wlserver dir="${weblogic.domain.dir}"
                             port="${weblogic.domain.admin.server.port}"
                             servername="${weblogic.domain.admin.server.name}"
                             username="${weblogic.domain.admin.user}"
                             domainname="${weblogic.domain.name}"
                             password="${weblogic.domain.admin.password}"
                             configFile="config.xml"
                             generateConfig="true"
                             action="start"
                             beahome="${env.BEA_HOME}"/>
    my requirement is to use ant task.. otherwise I am able to create through configuration wizard
    Thanks

  • Error from using ANT program, need help, Thanks

    Hello,
    I tried to run J2ee tutorial sample code. Following the instruction, I tried to ues ant to build a sample ConverterAPP but get some error message. I would preciate if somebody could give me some help.
    Thanks.
    Hui Lu
    [email protected]
    Following is the command I entered from an CMD window and the exception I got:
    C:\j2sdkee1.3\j2eetutorial\examples\src>ant converter
    ***Warning: I am here start runAnt.
    Exception in thread "main" java.lang.NoClassDefFoundError: Connectors\classes;C:
    \javacode\classes;C:\eGate\client\classes;C:\eGate\client\classes\egate/jar;C:\eGate\client\JRE\1/1/7B\lib\rt/jar;C:\PROGRA~1\MQSeries\java\lib\COMIBM~2/JAR;C:\
    PROGRA~\MQSeries\java\lib\COMIBM~1/JAR;C:\PROGRA~\MQSeries\java\lib\COMIBM~3/JAR;C:\PROGRA~\MQSeries\tools\javaclnt\samples\en_us;
    Warning: I am here end runAnt.
    Following is the command line in the batch file which raised Exception
    C:\jdk1.3.1_01\bin\java -classpath "C:\jdk1.3.1_01\lib\tools.jar";"C:\j2sdkee1.3\jakarta-ant-1.3\lib\parser.jar";"C:\j2sdkee1.3\jakarta-ant-1.3\lib\jaxp.jar";"C:\j2sdkee1.3\jakarta-ant-1.3\lib\ant.jar";C:\javacode\classes;C:\j2sdkee1.3\jaka
    rta-ant-1.3\bin;C:\j2sdkee1.3\bin;C:\jdk1.3.1_01\bin;C:\IBMCON~\CICS\Classes\CTGCLI~1.JAR;C:\IBMConnectors\classes;C:\javacode\classes;C:\eGate\client\classes;C:\eGate\client\classes\egate.jar;C:\eGate\client\JRE\1.1.7B\lib\rt.jar;C:\PROGRA~\MQSeries\java\lib\COMIBM~2.JAR;C:\PROGRA~\MQSeries\java\lib\COMIBM~1.JAR;C:\PROGRA~\MQSeries\java\lib\COMIBM~3.JAR;C:\PROGRA~\MQSeries\tools\javaclnt\samples\en_us;
    -Dant.home="C:\j2sdkee1.3\jakarta-ant-1.3" org.apache.tools.ant.Ma
    in converter
    ****************************************

    Obviously you have the IBM java tools installed on your PC, and your classpath starts with IBM Connectors\...
    What you need to do is to edit your classpath environment variable in control panel->systems, and use quotation marks for any long directory/file names, or directory names with spaces in them. For example, change C:\IBM Connectors\classes to "C:\IBM Connectors\classes". Then it will work.

  • Out of memory issue when executing wlappc ant task

    I am using weblogic 8.1 sp1 and doing a compilation for a little bit large EAR file using ant task. But it always throws out of memory error when the wlappc invoked the compiler to compile the jsp files.
    According to BEA's documentation<CR104610>, I put the runtimeflags with "-J-ms256m -J-mx512m" option into the wlappc tag and Ant seems recognizing this option but it didn't work. I tried every possible memory size to get rid of this problem, but the process still failed with the error message:
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError
    - with nested exception:
    [Compilation errors : ]
    My computer has 1G memory, so it shouldn't be the hardware problem.
    Does anyone have an idea on this?
    Thanks in advance,
    Jacky

    Hi,
    Ant seems to use its own JVM and thus in the javac options during runtime,try specifying ANT java options for setting the memory parameters.
    ANT options would be memoryInitialSize and memoryMaximumSize.
    http://ant.apache.org/manual/index.html
    Hope this helps.

  • Enhacer ant task license key problem

    Hi,
    I'am developing web applicaiton with workshop studio 3.0 and I use It's
    ejb3(kodo 4 EA4) mapping generator.I try to use ant task for
    enhancement,here is my build.xml file's kodoc task
         <target name="enhance">
              <echo>
    ================================================================
    Running the enhancer
    ================================================================
              </echo>
              <taskdef name="kodoc" classname="kodo.ant.PCEnhancerTask">
                   <classpath refid="cp"/>
              </taskdef>
              <kodoc>
              <fileset dir="${basedir}">
              <include name="**/com/demo/model/*.java" />
              </fileset>
              <classpath>
              <pathelement location="${basedir}/classes"/>
              <pathelement location="${basedir}/src"/>
              <pathelement path="${java.class.path}"/>
              </classpath>
              </kodoc>
         </target>
    ant task starts enhancer,finds my domain classes but gives the following
    expcetion during enhancement of first class
    [echo] ================================================================
    [echo] Running the enhancer
    [echo]
    ================================================================
    [kodoc] 611 INFO [main] kodo.Tool - Enhancer running on type "class
    com.demo.model.MyClass".
    [kodoc] com.solarmetric.license.LicenseException: No product license
    key was found. Please ensure that your license key is specified in your
    configuration file (or in the "General" tab of your IDE''s configuration
    dialog), that the key has not expired, and that it is the correct key for
    the version of the product that you are running...
    build.xml is in WEB_INF directory and my source are in src directory
    compiled classes are in classes directory,I place persistence.xml file in
    the directiory WEB-INF/META-INF/
    my license key is in persistence.xml file and it will expire 3-4 weeks
    later.Here my persistencex.xml file
    <persistence>
         <persistence-unit name="kodo">
              <provider>kodo.persistence.PersistenceProviderImpl</provider>
              <class>com.demo.model.MyClass</class>
              <properties>
         <property name="kodo.LicenseKey" value="xxxxxx"/>
              <property name="kodo.ConnectionDriverName"
    value="org.apache.derby.jdbc.ClientDriver"/>
              <property name="kodo.ConnectionURL"
    value="jdbc:derby://localhost:1527/xxxDB"/>
              <property name="kodo.ConnectionUserName" value="xxx"/>
              <property name="kodo.ConnectionPassword" value="xxxx"/>
              <property name="kodo.jdbc.Schema" value="xxxx"/>
         <property name="kodo.Log" value="DefaultLevel=WARN, Tool=INFO"/>
         </properties>
    </persistence-unit>
    </persistence>
    where should I pu my license key or persistence.xml file.
    Not:I was using previsous release of kodo (EA3),for ejb3 I set access
    property of Entity annotaion to access=AccessType.FIELD so I did not need
    to enhance and It does works but this version we do not have this
    option,Am I right.Do we always have to enhance our ejb3 entities in EA4
    release

    murat wrote:
    Hi,
    I'am developing web applicaiton with workshop studio 3.0 and I use It's
    ejb3(kodo 4 EA4) mapping generator.I try to use ant task for
    enhancement,here is my build.xml file's kodoc task
         <target name="enhance">
              <echo>
    ================================================================
    Running the enhancer
    ================================================================
              </echo>
              <taskdef name="kodoc" classname="kodo.ant.PCEnhancerTask">
                   <classpath refid="cp"/>
              </taskdef>
              <kodoc>
              <fileset dir="$">
              <include name="**/com/demo/model/*.java" />
              </fileset>
              <classpath>
              <pathelement location="$/classes"/>
              <pathelement location="$/src"/>
              <pathelement path="$"/>
              </classpath>
              </kodoc>
         </target>
    ant task starts enhancer,finds my domain classes but gives the following
    expcetion during enhancement of first class
    [echo] ================================================================
    [echo] Running the enhancer
    [echo]
    ================================================================
    [kodoc] 611 INFO [main] kodo.Tool - Enhancer running on type "class
    com.demo.model.MyClass".
    [kodoc] com.solarmetric.license.LicenseException: No product license
    key was found. Please ensure that your license key is specified in your
    configuration file (or in the "General" tab of your IDE''s configuration
    dialog), that the key has not expired, and that it is the correct key for
    the version of the product that you are running...
    build.xml is in WEB_INF directory and my source are in src directory
    compiled classes are in classes directory,I place persistence.xml file in
    the directiory WEB-INF/META-INF/
    my license key is in persistence.xml file and it will expire 3-4 weeks
    later.Here my persistencex.xml file
    <persistence>
         <persistence-unit name="kodo">
              <provider>kodo.persistence.PersistenceProviderImpl</provider>
              <class>com.demo.model.MyClass</class>
              <properties>
         <property name="kodo.LicenseKey" value="xxxxxx"/>
              <property name="kodo.ConnectionDriverName"
    value="org.apache.derby.jdbc.ClientDriver"/>
              <property name="kodo.ConnectionURL"
    value="jdbc:derby://localhost:1527/xxxDB"/>
              <property name="kodo.ConnectionUserName" value="xxx"/>
              <property name="kodo.ConnectionPassword" value="xxxx"/>
              <property name="kodo.jdbc.Schema" value="xxxx"/>
         <property name="kodo.Log" value="DefaultLevel=WARN, Tool=INFO"/>
         </properties>
    </persistence-unit>
    </persistence>
    where should I pu my license key or persistence.xml file.
    Not:I was using previsous release of kodo (EA3),for ejb3 I set access
    property of Entity annotaion to access=AccessType.FIELD so I did not need
    to enhance and It does works but this version we do not have this
    option,Am I right.Do we always have to enhance our ejb3 entities in EA4
    release

Maybe you are looking for

  • HP U160 not support for Windows 8.1

     i brought the new HP U160 Moniter it's working good in Win 8 but when i upgrade the Windows 8.1 not detacting HP U160 Moniter and i searched for drivers in Web site there are  all so no drivers noly have Windows 8 drivers, there are no drivers for W

  • Need to authorize purchases one at a time!  HOW?

    I'm about to have two very mad kids, because I just disabled access to the itunes store. It's the only way to get the parental control I need. In the "good old days", my kids would put songs they wanted to buy in the shopping cart, I would approve or

  • Problem with JSC2 field guide "objectListDataProvider" example

    Is there any chance that the example objectListDataProvider example (chapter 8.3, page 360) in the Java Studio Creator Field Guide will be updated with the proper instructions? The example in the book isn't working as the "objectListDataProvider" lis

  • ReplaceAll()

    I have installed j2sdk1.4.l and the replaceAll() method in the String class allows me to replace a character with the string like this: String str = "This is a test"; out.println(str.replaceAll(" ", "%20")); I tested it on a local tomcat server and i

  • Issue with 5S rebooting after installing 7.0.3

    So I updated my 5S this morning, no issues prior to this, and now when I open the phone up to use I tap any icon and the screen goes white with a black apple in the middle. It stays this way for 5-10 seconds then screen goes blank. I then can open th