Project Conventions + CVS + ANT
Hi
The "Project Conventions for Enterprise Applications Early Access 1" helped us solve some issues with the project layout. As most of the standard tools we use CVS for team synchronization. Now the problem that arises is, we have 10 common component, of which NOT ALL are used by all the projects.
We have 15 projects, in which 2 components are common for all. The remaining 8 are split.
5 are common in one project.
8 are common in another project.
so on and so forth....
Now being the incharge of a project, I'll know which modules to "check-out" and configure from the project for the first time, but if a new team member joins, we need to redo the same thing. Also while developing if a new common component is added, everyone needs to get it "automatically", Rather than go and reconfigure the project to checkout a new module manually.
One solution thought (so far) was using ANT. We write an ANT file, which contains all the common modules used, and also contains the checkout information. So everytime we add a new common module, we need to update the information in the ANT file and everyone running an update, get's the update information.
And the ANT is run after every checkout. The CVS update for the project (including the common components) is through ANT
There are two problems using this.
1. Everytime we add anything, we need to update the ANT file. (cumbersome)
2. We are not able to optimally utilize the IDE(Intellij IDEA) features for cvs, compiling, deployment.
Do we have any optimised way of doing this, also is this being thought about this problem for the final draft.
Also making multiple sub-common components is also another cumbersome idea... Please let me know what you people think.
Has anyone implemented any solution for this problem.
Hi,
We dont have any official date when it will be finalized right now. We plan to get more input and refine the conventions. One possibility is that we could put the conventions on java.net and make the updates available sooner. We do that with Advneture Builder and host the code on java.net and do the development there, so people can get access to earlier updates. Maybe we could do the same with the conventions document? This way the latest draft is always available and bugs reported can easily be fixed and incorporated which would make the updates more visible to others.
Would that be helpful? Maybe I can see if that is possible.
thanks,
Sean
Similar Messages
-
Project Conventions for J2EE Apps Early Access...
Hi
I am trying to set up a standardized directory structure for J2EE apps that is flexible enough from a simple webapp to a complex J2EE App with multiple EJB components, WARs...etc..etc...
For this, I turned to Java Blueprints Guidelines, Project Conventions for Enterprise Applications Early Access 1 posted on the Sun's web site...
This document states among follwoing that (quote)
-----(quote)
These conventions, which the Java BluePrints team has followed with its applications (which can be accessed from http://java.sun.com/blueprints/code/index.html), assume that developers use the Ant tool for building projects. Developers using other build tools may have to make slight modifications to the conventions.
----(end quote)
I have downloaded the latest J2EE SDk which has samples directory containing the famous , Adventure BUilder, Petstore, etc, etc.....But they do not follow project directory structure as outlined in this document...Moreover, I found each app has different project directory structure even for the same functional part..
1. Are the J2EE sample apps bundeled with J2EE SDK different than the ones available as separate download?
2. If they are not, where can I download sample apps that demonstrate project conventions outlined in the guidelines document...
Any comments are welcome...
Thanks
zambakHi,
The project conventions are new and early access version1. So it will be changing a little bit and as a result the apps may get a little out of sync. We are currently switching the apps over to match with the project conventions. For an app that dempnstrates project conventions, please see the adventure builder on java.net at https://adventurebuilder.dev.java.net/
We are working on a revised version of the project conventions, so your feedback/comments would be highly appreciated.
-Smitha
Hi
I am trying to set up a standardized directory
structure for J2EE apps that is flexible enough from a
simple webapp to a complex J2EE App with multiple EJB
components, WARs...etc..etc...
For this, I turned to Java Blueprints Guidelines,
Project Conventions for Enterprise Applications Early
Access 1 posted on the Sun's web site...
This document states among follwoing that (quote)
-----(quote)
These conventions, which the Java BluePrints team has
followed with its applications (which can be accessed
from http://java.sun.com/blueprints/code/index.html),
assume that developers use the Ant tool for building
projects. Developers using other build tools may have
to make slight modifications to the conventions.
----(end quote)
I have downloaded the latest J2EE SDk which has
samples directory containing the famous , Adventure
BUilder, Petstore, etc, etc.....But they do not
follow project directory structure as outlined in this
document...Moreover, I found each app has
different project directory structure even for the
same functional part..
1. Are the J2EE sample apps bundeled with J2EE SDK
different than the ones available as separate
download?
2. If they are not, where can I download sample apps
that demonstrate project conventions outlined in the
guidelines document...
Any comments are welcome...
Thanks
zambak -
Imported project from CVS not working.
Hi all,
I am experiencing a weird problem with the use of CVS.
I am a new user of CVS, i installed a cvs server and i am trying to test its functionnalities within JDEV so that i can explain to the team i am working with how to use and benefit from it use.
But right now i have a hard time using it. I imported the project to CVS using the command line and then i checked it out using jdev. the problem is that when i compile i get an error on every jspx page the error is a java.lang.IllegalArgumentException for the following lines in the source of the jspx :
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
xmlns:af="http://xmlns.oracle.com/adf/faces">
Also the the design view of the page is in designer mode and not in normal edit mode.(i only see embedded boxes one inside the other)
I did a test i took the project from the folder that i used to import it to cvs and this version is working perfectly no errors at all.
What could be the cause of this problem.
I am using jdev 10.1.3.3 with cvs version: 1.11.17
If further information is needed just ask me!
Any help will be appreciated
and thank you for your time
Regards,
CarlHi all and thx for your time,
I did some more extensive testing and i actually got it to work on a redhat machine. But i tried on 2 different windows machine and it does not want to work!!! But as i said from the redhat machine it worked right out of the box!!!
On the windows machines i tried the jdev native cvs client and i also tried to install a newer version of cvsnt and i specified the path in my project unsuccesfully. I am running out of tests to try... Could it have to do with file permissions since the server is on a redhat machine and i try to import into windows!!! (i dont think this is even an issue but i am ready to consider every options)
Thanks again for your time and involvement.
Regards,
Carl -
Using the Netbeans GUI within a Project with existing Ant Script
I cannot seem to figure out how to use the Netbeans GUI in my Project with existing Ant Script. Is this possible? I have no problem creating GUI interfaces in a java Application, but attempting to make a new JFrame Form gives the error: package org.jdesktop.layout does not exist, and I have not been able to find a way around this. Any suggestions? Thanks in advance.
Chris CoulonOK, I think I am on the right track, but I don't understand why I am still getting this error:
clean:
compile:
Copying 1 file to /Users/chris/**JavaProjects/Netbeans_ImageJ
Created dir: /Users/chris/**JavaProjects/Netbeans_ImageJ/source/build
Compiling 292 source files to /Users/chris/**JavaProjects/Netbeans_ImageJ/source/build
/Users/chris/**JavaProjects/Netbeans_ImageJ/source/plugins/Kline_Frame.java:31: package org.jdesktop.layout does not exist
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
/Users/chris/**JavaProjects/Netbeans_ImageJ/source/plugins/Kline_Frame.java:31: package org.jdesktop.layout does not exist
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
/Users/chris/**JavaProjects/Netbeans_ImageJ/source/plugins/Kline_Frame.java:34: package org.jdesktop.layout does not exist
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
/Users/chris/**JavaProjects/Netbeans_ImageJ/source/plugins/Kline_Frame.java:38: package org.jdesktop.layout does not exist
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors
/Users/chris/**JavaProjects/Netbeans_ImageJ/source/build.xml:11: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 6 seconds)
I no longer have the error in my java code in the Projects list, but I still cannot build the project. This is my current build.xml file:
<!-- Ant makefile for ImageJ -->
<project name="ImageJ" default="run">
<target name="compile" description="Compile everything.">
<!-- Copy the swing layout library into dist.lib -->
<copy file="dist/lib/swing-layout-1.0.3.jar" todir=".." />
<!-- First, ensure the build directory exists. -->
<mkdir dir="build" />
<!-- Build everything; add debug="on" to debug -->
<javac srcdir="." destdir="build" optimize="on" source="1.4" target="1.4" debug="on">
<!-- The plugins directory only needs to be
present at runtime, not at build time. -->
<!-- exclude name="plugins/**"/-->
</javac>
</target>
<target name="build" depends="compile" description="Build ij.jar.">
<!-- Copy needed files into the build directory. -->
<copy file="IJ_Props.txt" todir="build" />
<copy file="images/microscope.gif" tofile="build/microscope.gif" />
<copy file="images/about.jpg" tofile="build/about.jpg" />
<copy file="plugins/MacAdapter.class" tofile="build/MacAdapter.class" />
<copy todir="build/macros"><fileset dir="macros"/></copy>
<!-- Build ij.jar. -->
<jar jarfile="ij.jar" basedir="build"
manifest="MANIFEST.MF" />
</target>
<target name="clean" description="Delete the build files.">
<delete dir="build" />
<delete file="ij.jar" />
</target>
<target name="run" depends="build" description="Build and run ImageJ.">
<copy file="ij.jar" toDir=".." />
<java maxmemory="640m" jar="ij.jar" fork="yes" />
</target>
<target name="run2" depends="build" description="Build and run ImageJ.">
<!-- Run in ImageJ directory -->
<copy file="ij.jar" toDir=".." />
<java maxmemory="640m" dir=".." jar="ij.jar" fork="yes" />
</target>
<target name="zip" depends="clean" description="Build zrc.zip.">
<zip zipfile="../src.zip"
basedir=".."
includes="source/**"
/>
</target>
<target name="javadocs" description="Build the JavaDocs.">
<delete dir="../api" />
<mkdir dir="../api" />
<javadoc
sourcepath="."
packagenames="ij.*"
destdir="../api"
author="true"
version="true"
use="true"
windowtitle="ImageJ API">
</javadoc>
</target>
</project>notice I added this line: <copy file="dist/lib/swing-layout-1.0.3.jar" todir=".." />
because the dir ".." is where the other jar files are placed, i.e.:
[GAIAG:~/**JavaProjects/Netbeans_ImageJ/source] chris% ls ..
PolarDisplay ij.jar swing-layout-1.0.3.jar
TestFrames myApp
api source
So why is the build not able to see the package org.jdesktop.layout in the jar file?
Chris -
NW DS - deleting project from CVS
Hallo,
I got a question. It's possible to remove shared project from CVS repository? How can I do that? And what about deleting specific files? Thanks for any help.
Best regards,
J. MotlHi Josef,
I only administer cvsnt, so I can explain it for Linux only very roughly... Deleting projects under a repository as well es single files should be done by just deleting the dir tree / the file.
For deleting a repository first you have to "delete" it via CVS Service Control Panel (so delete the connection between CVS and a certain dir as repository so far) and aftwerwards delete the dir tree on the file system.
For CVS stores the version info within the file ("*.ext,v"), deleting this deletes also the version info.
Hope it helps
Detlev -
Building java project from CVS
Hi, I am new to ANT and java builds. This is what I want to do. I have two projects, Proj1 and Proj2. Proj1 is on HEAD branch in CVS and Proj2 is on TREE branch on CVS. I want to be able to build TREE branch but it should pull PROJ1 from HEAD branch.
Any idea if CVS or ANT gives an option to build a jar from TREE branch and if a project is not found on TREE branch, it will go looking for it on HEAD branch?
Thank you.Thanks, Georgemc. Let me clarify it.
I have PROJ1 and PROJ2 on HEAD branch which are production version.
PROJ1 is architecture code which I always want to get from HEAD branch.
I have a release project which I am working on and have created a branch named TREE for PROJ2. Now when I do a build with a tag TREE, PROJ1 doesn't exist on TREE branch and it fails saying project not found for PROJ1. What I want to find out if there is an option that I can put in ANT script or CVS so that it will go to HEAD branch automatically in case a project is not found in TREE branch.
I know it can be hard-coded but I wanted to find out if CVS or ANT gives that option. -
Generate JDeveloper 11g project files using Ant
Is there any plug-in or an ant task that someone has written to generate JDeveloper 11g project files (.jpr, .jws) ?
Thanks
RameshNot at this time. However, there is a maven plugin available through the Apache Trinidad project. See the following thread for more information:
Maven2 plugin
--Ric -
Run & Debug project, build by Ant
Hello,
i'm using Ant to build my project in JDev. But when i try to run or debug my application, JAR libraries were not found - because they were only set in build.xml file.
Is it possible that JDeveloper would read libraries paths from Ant build file? Thank you.Is it possible that JDeveloper would read libraries paths from Ant build file?
The library paths specified in an Ant build file are accessible only from the build.xml file. For a jdeveloper project specify the library jar files in the project properties. -
Building Ant to fetch code from CVS and deploy
hello,
I hope I am posting to the correct forum.
I am now in a thinking box, where I need to be able to write an Ant script to be able to pull out code from my CVS (tortoise SVN) make it into a jar and then deploy it into the server. I have written very basic ant scripts so far. 1) Is this possible 2) Any help and pointers in this direction would be highly appreciated.
thanksAre you trying to pull the project from CVS or just a couple
of files that you want to include into your project? Also what
error message are you getting? -
Hi ,
I am getting an error while connecting to the remote CVS server. my purpose is to checkout the files from remote cvs. my code is given below
<?xml version="1.0"?>
<project name="cvs" default="build" basedir=".">
<target name="build">
<cvspass cvsRoot=":pserver:[email protected]:/share/cvs/ValueLabs"
password="india5"
passfile="${basedir}/ils.cvspass" />
<cvs cvsroot=":pserver:[email protected]:/share/cvs/ValueLabs"
passfile="${basedir}/ils.cvspass"
command="export -r SSEEConfigUtility/src/com/ils_tech/ediag/ssee/crypto/decrypt/"
package="SSEEConfigUtility/src/com/ils_tech/ediag/ssee/crypto/decrypt/"
dest="${basedir}"
failonerror="true"/>
</target>
</project>
when I run this program it giving an error saying
BUILD FAILED
C:\Documents and Settings\\Desktop\CVSBuild.xml:15: java.io.IOException: CreateProcess: cvs -d:pserver:[email protected]:/shar
e/cvs/ValueLabs export -r SSEEConfigUtility/src/com/ils_tech/ediag/ssee/crypto/decrypt/ SSEEConfigUtility/src/com/ils_tech/ediag/ssee/crypto/decrypt/
error=2
Please give me a solution how to acess the remoe CVS Remositery.
Thanks,
Krishna.Does Ant have anything to do with the Java Programming language? - Yes
<quote>
Apache Ant is a Java-based build tool.
</quote>
I am sure there are many developers on this forum who use ant. Perhaps you don't but thats no reason for a bad tempered and unhelpful response.
So here is mine
Why don't you just fuck off. -
Anyone know where I can download source for a simple project that uses ANT/XDoclet and is built, verified and deployed to the Sun Java System Application Server Platform Edition 8? Ideally, such a project would house CMP beans and an application client. I've been messing around with this off an on for ages but am constantly stymied by cryptic error messages and a glacial deployment process. For the record, I'll list ANT script that I'm using and the resultant problems. Perhaps someone will immediately recognize a rookie mistake. I'd be just as happy, though, if someone could simply direct me to a functional example that I can copy and tweak. I'd love to focus on actually learning J2EE rather than struggling with configuration issues.
Working
* Java Application Verification Kit for the Enterprise StaticArchiveTest/SourceScan
* Delpoying the application and viewing JSP/HTML pages
* Creating and finding CMP beans from JSP
* Deplying application client via deploytool
Crashing and Burning
* Verifying EAR
Error Name : Exception : java.io.IOException: Verify Error: Module specified in application.xml not found in ear file:
Error Description : java.io.IOException: Verify Error: Module specified in application.xml not found in ear file:
at com.sun.enterprise.tools.verifier.Verifier.updateClasspath(Verifier.java:3023)
* Verifying JAR
Test Name : tests.ejb.runtime.ASEntBeanCmpResource
Test Assertion : Enterprise beans cmp-resource test. cmp-resource element contains the database to be used for storing CMP beans in an ejb-jar
Test Description : For [ C:-eclipse-workspace-test-jars-test_ear-test.jar#test.jar#Building ]
FAILED [AS-EJB cmp-resource] : jndi-name cannot be an empty string
* Deploying an application client via "asadmin deploy"
CLI171 Command deploy failed : Deployment Error -- Error while running ejbc -- F
atal Error from EJB Compiler -- com.hollis.residentiator.interfaces.BuildingMgrS
essionHome
WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.system.stream.err|_ThreadID=12;|java.lang.ClassNotFoundException
at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:505)
* Running an application client with 'appclient'
C:\eclipse\workspace\testclient\jars>appclient -client testClient.jar
#### Error: Unable to load module. File -client does not exist.
Client Container Error:
Failed to load the archive specified
C:\eclipse\workspace\testclient\jars>appclient testClient.jar
Please specify uri for the the client jar using -uri
Usage: appclient <client-archive> [-uri <uri>] [client-arg1 client-arg2 ..]
ANT file
<project name="Test project" default="deploy" basedir=".">
<property file="build.properties"/>
<property environment="env"/>
<path id="xdocletlib">
<fileset dir="${xdoclet.dir}/lib"><include name="**/*.jar"/></fileset>
<pathelement location="${env.ANT_HOME}/lib/ant.jar"/>
<pathelement location="${env.J2EE_HOME}/lib/j2ee.jar"/>
</path>
<target name="setup">
<copy todir="${env.J2EE_HOME}/lib/system">
<!-- log4j file -->
<fileset dir="${log4j.dir}/dist/lib" includes="*.jar"/>
</copy>
</target>
<target name="xdoclet">
<mkdir dir="${xdoclet.output}"/>
<!-- clear out original xdoclet files -->
<delete includeemptydirs="true">
<fileset dir="${xdoclet.output}" includes="**/*"/>
</delete>
<mkdir dir="${xdoclet.output}/java"/>
<taskdef
name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="xdocletlib"
/>
<ejbdoclet destDir="${xdoclet.output}/java" excludedTags="@version,@author,@todo">
<fileset dir="${entity.ejb.src.dir}"><include name="**/*Ejb.java"/></fileset>
<fileset dir="${session.ejb.src.dir}"><include name="**/*Ejb.java"/></fileset>
<packageSubstitution packages="ejb" substituteWith="interfaces"/>
<remoteinterface/>
<homeinterface/>
<localinterface/>
<localhomeinterface/>
<entitypk/>
<entitycmp/>
<session/>
<utilobject>
<packageSubstitution packages="ejb" substituteWith="util"/>
</utilobject>
<valueobject>
<packageSubstitution packages="ejb" substituteWith="model"/>
</valueobject>
<deploymentdescriptor
destdir="${xdoclet.output}/META-INF"
validateXml="true"
/>
<sunone destdir="${xdoclet.output}/META-INF"/>
</ejbdoclet>
</target>
<target name="compile" depends="xdoclet">
<mkdir dir="${build.dir}"/>
<javac destdir="${build.dir}">
<classpath>
<fileset dir="${log4j.dir}/dist/lib"><include name="*.jar"/></fileset>
<pathelement location="${env.J2EE_HOME}/lib/j2ee.jar"/>
</classpath>
<src path="${entity.ejb.src.dir}"/>
<src path="${session.ejb.src.dir}"/>
<src path="${xdoclet.output}/java"/>
</javac>
</target>
<target name="webdoclet">
<taskdef
name="webdoclet"
classname="xdoclet.modules.web.WebDocletTask"
classpathref="xdocletlib"
/>
<webdoclet destdir="${xdoclet.output}/${web.dir}/META-INF" excludedtags="@version,@author">
<deploymentdescriptor
schema="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
displayname="Test App"
description="A quick and dirty test"
>
<welcomefile file="index.html"/>
<welcomefile file="index.jsp"/>
</deploymentdescriptor>
<fileset dir="${entity.ejb.src.dir}"/>
<fileset dir="${session.ejb.src.dir}"/>
</webdoclet>
</target>
<target name="build" depends="compile,webdoclet">
<mkdir dir="${jars.dir}"/>
<jar destfile="${jars.dir}/test.jar">
<fileset dir="${build.dir}"/>
<fileset dir="${xdoclet.output}" includes="META-INF/*ejb-jar.xml"/>
</jar>
<war
basedir="${web.dir}"
destfile="${jars.dir}/test.war"
webxml="${xdoclet.output}/${web.dir}/META-INF/web.xml"
>
<classes dir="${build.dir}">
<include name="**/*Local.class"/>
<include name="**/*LocalHome.class"/>
</classes>
</war>
<!-- Build ear -->
<ear destfile="${jars.dir}/test.ear" appxml="META-INF/application.xml">
<fileset dir="${jars.dir}" includes="*.jar,*.war"/>
<fileset dir="${basedir}" includes="META-INF/sun-application.xml"/>
<!-- client -->
<fileset dir="${basedir}/../testclient/${jars.dir}" includes="*.jar"/>
</ear>
</target>
<target name="test">
<exec executable="${env.J2EE_HOME}\bin\verifier.bat">
<arg value="${jars.dir}/test.ear"/>
</exec>
<property
name="cpath"
value="${avk.home}/appserver/lib/sun-appserv-ant.jar:${avk.home}/lib/javke-ant.jar"
/>
<taskdef
name="ArchiveTest"
classname="org.apache.tools.ant.taskdefs.optional.sun.verification.StaticArchiveTest"
classpath="${cpath}"
/>
<ArchiveTest appName="${jars.dir}/test_ear/test.jar"/>
<taskdef name="SourceScan"
classname="org.apache.tools.ant.taskdefs.optional.sun.verification.SourceScan"
classpath="${cpath}"
/>
<SourceScan srcDir="${basedir}/entity_ejb_src" srcServer="sunone"/>
<SourceScan srcDir="${basedir}/session_ejb_src" srcServer="sunone"/>
</target>
<target name="deploy" depends="build">
<copy todir="${env.J2EE_HOME}/domains/domain1/autodeploy" file="${jars.dir}/test.ear"/>
<ant target="start_server"/>
</target>
<target name="undeploy" depends="stop_server">
<delete file="/**/*">
<fileset dir="${env.J2EE_HOME}/domains/domain1/autodeploy" includes="**/*"/>
</delete>
</target>
<target name="start_server">
<exec dir="${env.J2EE_HOME}\bin" executable="${env.J2EE_HOME}\bin\asadmin.bat">
<arg value="start-domain"/>
<arg value="domain1"/>
</exec>
</target>
<target name="stop_server">
<exec dir="${env.J2EE_HOME}\bin" executable="${env.J2EE_HOME}\bin\asadmin.bat">
<arg value="stop-domain"/>
<arg value="domain1"/>
</exec>
</target>
</project>There are quite a few sample apps and blueprint apps that Sun provides. Have you looked at any ofThanks for the response. I looked over the Sun examples and can get them to work. I'm just not interested in manually writing so much code. Every bean seems to require a zillion files and configuration settings. XDoclet was supposed to help me avoid all the typing. I'd also like to steer clear of the deploytool; being able to do a complete build in one step is very important to me. I suppose I could compare and contrast with the functional examples but it's such slow going...
-
Problems using CVS with Jdeveloper - Project
I have Jdeveloper on Windows 2000 and CVS repository on unix.
I am using wincvs.
In the documentation it mentions that I have to create a new project on JDeveloper and then import that project in CVS.
But if I already have files in CVS then how can I get that in JDeveloper ?
When I do a CVS checkout I get the files on my local PC. However I get a message which says that project could not be checked out ..
Now when I do a cvs update JDeveloper tries to update all the files ..
Any suggestions ?Unfortunately there is no way to do this in 9.0.4. This has been fixed in the 10.1.3 preview release, in 9.0.4 you will need to create your session broker in code to work around the problem.
If you require sessions.xml support for this in 9.0.4, please contact Oracle support. -
Deploying BPEL project using ant script in 11g
Hi,
i am just trying to deploy a single BPEL project using ant script.
please specify what are all the needed jar's to be needed for deploying the project using ant
and where exactly they have to placed, i mean into which directory i need to place those jar's...
if u have any specific blog which describes step by step procedurs for single project deployment via ant, please tell me...
its very urgent..
thanks in advance...Hi',
The .jar file required will be of the project/composite you want to deploy to server, this jar is inside deploy folder (11G).
This .jar file gets created when you try to deploy your composite using right click on the project in JDev.
This .jar can be picked from any location.
Try this its little more descriptive.
http://shrikworld.blogspot.com/2011/03/deploying-soa-11g-application-using-ant.html
-Yatan -
PB with beans binding in a netbeans 6 java project with ant script existing
Hi all,
I am using netbeans 6.01.
I want to use beans binding in a simple swing form created with Matisse designer. If i do beans binding in a Netbeans java project with existing ant script i have the following error :
java.lang.UnsupportedOperationException: No PCPE/PCPMI found for classpath/compile in MasterFileObject@25 .... etc
Beans binding works very well in normal java project ( Java Desktop App for instance ).
How can i make it work in an existing java ant script project ?You need to add the Beans Binding (beansbinding-1.2.1) that come with NetBeans 6 in your projects class path.
-
I use an Ant build.xml file that starts as follows:
<?xml version="1.0"?>
<!DOCTYPE project PUBLIC "-//ANT//DTD project//EN" "project.dtd" [
ENTITY properties SYSTEM "properties.txt"
]>
<project name="joe2" default="all" basedir=".">
<description>This is a project to test build, test and deployment with JDeveloper, CVS, Ant and JUnit.</description>
<!-- loading the properties -->
&properties;
It includes a file "properties.txt" that's in the same directory as the "build.xml". This build file works in Sun One Studio and works from the command line. But JDeveloper complains with "XML-0242: (Fatal Error) Error opening external DTD 'properties.txt'" Subsequently, it doesn't list any build targets in the context menu of the build file although the XML structure displays them correctly right beneath the error message.
I can select "Build Default Target" on the Ant file in JDeveloper which will execute the target just fine. I also have a target that displays all Ant properties - and there I can see that "properties.txt" was included indeed in the JDeveloper run because all the properties I specified there are displayed.
So can anybody tell how to get rid of this fatal XML error?This issue was discussed previously in this forum, see the thread "Building with Ant". This is a bug that has been fixed for our next release (JDeveloper 9.0.4). In the meantime, you can work around it by specifying the full URI of the file you are trying to reference. For example,
<!ENTITY properties SYSTEM "file:/c:/properties.txt">
Hope that helps.
-Matt Hawkins, JDeveloper Team
Maybe you are looking for
-
Mapviewer and georaster...
Using MapViewer_10(georaster.jsp), I am trying to display a georaster map... 1. PL/SQL create table GEORASTER_TABLE (georid number primary key, type varchar2(32), GEORASTER sdo_georaster); call sdo_geor_utl.createDMLTrigger('GEORASTER_TABLE', 'GEORAS
-
Regarding FormCalc Scripting for Adobe Print Forms
Hi Friends I am working on Adobe Print Forms. I wish to write some FormCalc Scripting in form on date field. I want to know the meaning for the below scripring : $.format.picture = DateFmt(2, $.locale); $.ui.picture = DateFmt(2, $.locale); $.assi
-
Freehand and converting to pdf problem
for some reason when i try to convert a freehand document to pdf ready for printing im losing an "inline" effect around some of the text. i've put an example to illustrate http://simonboard.com/photos/pdf.html can anyone on these forums help?
-
HT4759 How do I get to iCloud mail from OSX 10.4.11?
I have an old iMac running OSX 10.4.11. How can I get to my MobileMe mail?
-
Pls help me