• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ant and Eclipse

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new to eclipse, I have used netbean for dev and Ant build script for build/deploy and start and stop application sever. It works fine in netbeans when i start my oc4j server and deploy application. But when i do same thing in eclipse when i run start server, it complete it task but Ant wizard window doesn't close or alow me to deploy my application or to do any thing unless i close it, even if want to stop server that laso can't do. I have to deploy application after server start and if i make some changes to source file i re-dploy it without starting oc4j server.
Thanks
Gopal
 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post the ant command you're using to start and stop the server? If we see the code, maybe we can help.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might also want to take a look in the log-file in the .metadata directory.
 
Gopal Patwa
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here my build script for only 3 targets, What i understand is once u start J2ee container oc4j from Ant wizard which is a window, so u can't run another task unless this application is not stop or complete. b'cos i have to forcefully killes java.exe from my task manager to stop this process, b'cos my stop target is also in Ant build.
I have checked metadata directory i cound not found anything about this, b'cos it not giving any problem running that target but u can't run another one.
I have to replace "<" and "/>" tag with "(" and ")" for display in this forum i don't know sone how it was not showing the text.
(target depends="init" description="Start OC4J" name="oc4j.start")
(delete dir="oc4j/database"/)
(mkdir dir="oc4j"/)
(mkdir dir="oc4j/log"/)
(mkdir dir="oc4j/persistence"/)
(mkdir dir="oc4j/database"/)
(mkdir dir="oc4j/applications"/)
(mkdir dir="oc4j/config"/)
(mkdir dir="oc4j/default-web-app"/)
(copy todir="oc4j/config")
(fileset dir="etc/oc4j/config"/)
(/copy)
(copy todir="oc4j/default-web-app")
(fileset dir="etc/oc4j/default-web-app"/)
(/copy)
(!-- init db with test data --)
(sql driver="org.hsql.jdbcDriver" password="" src="etc/database/test/data.sql" url="jdbc:HypersonicSQL:${basedir}/oc4j/database/defaultdb" userid="sa")
(classpath)
(pathelement location="lib/oc4j-2.0/hsql.jar"/)
(/classpath)
(/sql)
(!-- start app server --)
(java classname="com.evermind.server.ApplicationServer" fork="true")
(classpath refid="run.oc4j.classpath"/)
(jvmarg value="-Xmx128m"/)
(arg value="-config"/)
(arg value="oc4j/config/server.xml"/)
(/java)
(/target)
(target depends="init" description="Restart OC4J" name="oc4j.restart")
(java classname="com.evermind.client.orion.OrionConsoleAdmin" fork="true")
(classpath refid="run.oc4j.classpath"/)
(arg value="ormi://localhost:23791/"/)
(arg value="admin"/)
(arg value="admin"/)
(arg value="-restart"/)
(/java)
(/target)
(target depends="init" description="Stop OC4J locally." name="oc4j.stop")
(java classname="com.evermind.client.orion.OrionConsoleAdmin" fork="true")
(classpath refid="run.oc4j.classpath"/)
(arg value="ormi://localhost:23791/"/)
(arg value="admin"/)
(arg value="admin"/)
(arg value="-shutdown"/)
(/java)
(/target)
Thanks
Gopal
[ July 18, 2002: Message edited by: Gopal Patwa ]
 
Chris Reeves
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might want to try using an exec to run your process. I haven't tried this, but it occurs to me that it should work.
 
reply
    Bookmark Topic Watch Topic
  • New Topic