Split Development Directory Structure Examples Package
Can any body tell me if this example works with workshop?, and it is works how
can i achive this?
thanks in advance
Viviana
Workshop uses split-dir file structure, but not the build tasks. This is
because the IDE has a much finer grained notion of build than running ant
from a shell.
Cheers
mbg
"viviana echeverry" <[email protected]> wrote in message
news:4006aad1$[email protected]..
>
Can any body tell me if this example works with workshop?, and it is workshow
can i achive this?
thanks in advance
Viviana
Similar Messages
-
How to use the "split development directory structure" in JBuilder9 ?
How to use the "split development directory structure" in JBuilder9 ?
Have /APP-INF supported ?I've not used JBuilder much, but if it has ant support, then it should
be pretty straight-forward.
-- Rob
Rick Ni wrote:
How to use the "split development directory structure" in JBuilder9 ?
Have /APP-INF supported ? -
Split Development Directory Setup
Hi,
I have not found anywhere in this forum the answer to this question: the "Creating a Split Development Directory Environment " document says that the first step for Using the Split Development Directory Structure (at http://edocs.bea.com/wls/docs103/programming/splitcreate.html#wp1110877) is to "Create the main EAR source directory for your project". Ok. But where? (Is there particular directory in which this main EAR source directory should be created?)Kumaran,
Split-Dir is a new feature in WebLogic Server 8.1. It will not be available
in previous releases.
- Nick
"kumaran" <[email protected]> wrote in message
news:405fef8a$[email protected]..
>
Hi,
Could you pls tell me whether weblogic6.1 supports split developmentdirectory
structure -
Application Development Directory Structure
I work with a team consisting of five programmers who want to rewrite a suite of software developed in C/C++ to Java. This will consist of numerous application programs; none of which are web-based. We use the UNIX OS and will access an Oracle database using JDBC. We also maintain our source code using CVS. We want to deploy each of our applications as a separate jar file. We would also like to identify either individual applications or groups of applications as Java packages. Our problem is setting up our development directory structure. We've been struggling with various structures, most of which work fine if our source files don't have a package statement, but we've had no luck finding a package statement that works.
They aren't "extraneous levels", they are fundamental
requirements of Java. Have a look at this
http://java.sun.com/docs/books/tutorial/java/interpack/
ackages.html. Any beginner Java book/article/tutorial
should explain packages.Thanks for the url, I have perused numerous java books and searched the Sun site, but haven't found anything precise. In some locations I've seen it recommended to separate the source and classes in different directories, while other sources have them together in one file.
Also, in response to an earlier comment, I think
having different related applications under the same
development tree and separated by packages is much
easier to maintain/use/develope than having them all
completely separate.We will have approximately 50 applications, with about 25 related to one application area and the other 25 related to another application area. The source for each of these application areas will be under CVS. To me it doesn't seem like the most convienent way to manage the software. But we'll have to do what we'll have to do. -
An EFFECTIVE development directory structure for J2EE platform?
Hi, here we r talking about deployment environment more than development
environment. Have u ever think about designing an EFFECTIVE development
directory structure for J2EE platform( e.g. weblogic )? u r not using the
deployment directories for coding, r u? :)
I used to construct a dir structure for dev and want to improve it.
d:/wholesystem/*.prj // Project files
...../module1/src/com/.... // Module source files
...../module1/doc/... // Module doc files
...../module1/classes/... // Module class files
...../module2/...
...../web/*.jsp // web page files
...../web/images/... // web page images
...../web/WEB-INF/... //...
Do u have any good ideas? Thanks!
* Name: Gary Wang
* Tele: 010-65546668-8119
* Mail: [email protected]Create a web-inf folder at the same level of src and
jsp folder inside src
i mean
/build.xml
/src/
/src/java/<package>/...../*.java
/src/demo/<package/...../*.java
/src/test/<package>/....../*.java
/src/jsp
/web-infSo, would you put in /src/jsp only the *.jsp?
And what in /WEB-INF ? What woud you put there? Would you do something like:
/WEB-INF/web.xml
/WEB-INF/src/<package>/..../<my_servlets_and_j2ee_stuff>.java
/WEB-INF/classes/<package>/..../<my_servlets_and_j2ee_stuff>.java
In this manner sources and classes are in the same tree, it does not seem very clean to me, expecially if you consider that probably I must have a "test" directory to unit test some j2ee stuff (as for the j2se stuff in "src"): how would you do that?
Is this directory structure anyway what you meant or not?
alessio -
Unable to integrate SimpleImpl example into split-level directory structure
I am trying to integrate the SimpleImpl web service example into my weblogic server 9.1 application, but I am at a dead end.
Here is what I have so far.
A WSDL that is visible at a path of http://<host>:<port>/simple/SimpleService?WSDL
A JWS_WebService.jsp that loads and appears to retrieve the WSDL.
The simpleImpl example is a sub-deployment of module-type 'wsee' inside an app-deployment of module-type 'ear'.
I did not put the library-ref (generated by jwsc) from the weblogic-application.xml in my ear's weblogic-application.xml.
When I go to the JWS_WebService.jsp in my web app (another sub-deployment in my ear). I submit the example query and get the following error. Has anyone seen this before?
sayHello() returned:
java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Client.Authentication] FaultString [Access Denied to operation sayHello] FaultActor [null] Detail [weblogic.wsee.util.AccessException: Access Denied to operation sayHello
at weblogic.wsee.security.AuthorizationHandler.handleRequest(AuthorizationHandler.java:78)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:127)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:84)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:60)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:124)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
Thanks,
RobbI confirm : everyone on the planet is getting the same issue : from windows 8.1 to a NAS : doesn't copy without message, just creates silently the first folder and leave it empty.
every other combination works : from windows 7 to the same NAS, windows 8.1 to an USB key, everything works.
for your information, a NAS is a standalone device, not a computer, you can only manage it remotely.
so just stop asking about details about the error message, there isn't any.
this is not something you can fix by making settings or reading KB. you have to make the test yourself if you don't believe your customers, and once you'll understand that this is a serious bug, you have to escalate to the development teams to alter the
windows 8 code to make it work almost as well as a windows 7 can.
pardon me if i speak hardly, but i've just made a dozen of internet searches, and the whole platet seems to be aware of this issue, you are the only one who ignores it or ask an unrelated question. on another hand, your are the ony ones that can fix it.
Don't try to incriminate the NAS firmware as you were able to deal with it in windows 7.
if you need more info, just make an internet search with the following terms :
"windows 8.1" when copying on a "network drive" nas -
Doubt about Split Development Directory
I have one domain with one server managed in development mode, I need make available for my programmers, what I do...
The directory source reside in same machine of server and will be shared between the programmers?
The deployer will make build of application? Is so that do normally???
The programmer only develop and deliver to deployer make build or the programmer there is that access my server remote and make build directly for applicatiopn server???
I need setup a environment of development and need tips...
Thank youKumaran,
Split-Dir is a new feature in WebLogic Server 8.1. It will not be available
in previous releases.
- Nick
"kumaran" <[email protected]> wrote in message
news:405fef8a$[email protected]..
>
Hi,
Could you pls tell me whether weblogic6.1 supports split developmentdirectory
structure -
How to create split development directory environment using Eclipse Galileo
Hello there!
Well my question is on the subject... i want to use my Eclipse Galileo IDE to develop applications but i don't know hoe to set the develop structure for that... how can i set the build path? Should i add al the *.jar on weblogic lib?
I know about Workshop Studio but i don't understand it :_
If any of you have a tutorial for this it would be great...
Thanx in advance!Hi,
You can start with this:
http://docs.oracle.com/cd/E17904_01/doc.1111/e15866/tasks.htm
Cheers,
Vlad -
Split development env + wlcompile + EJB3
Hi Bea,
in a Weblogic 10 environment using EJB3 annoted stateless session beans in a split development directory structure. The wlcompile ant task does not recognizes the module as EJB module around the EJB3 beans and compiles all of the sources into the APP-INF/classes dir.
The wlappc fails because there are no any EJB module as the application.xml descibes.
thanks forward,
ZsoltI ended up finding the solution to my own problem, so here it is in case anyone else runs into this problem. Turns out I was missing the file EAR/META-INF/application.xmlThe splitdir example contains a sample file.
-
J2EE Enterprise App Directory Structure
Can anyone point me to a resource that descibes the recomended development directory structure for a J2EE app with EJB? MyEclipse create three directories:
J2EEAppName
J2EEAppNameEJB
J2EEAppNameWeb
But I don't know where to put the shared classes, etc. I want to do it right.. Any help would be greatly appreciated.
PaulFor anyone else looking for an answer to the recommended directory structure...
See this link:
http://java.sun.com/blueprints/code/projectconventions.html -
Exploded vs. Archived EAR structure (when using split development)
Using the split development structure suggested in Weblogic 8.1 with wlpackage
ant task, I noticed that the exploded ear and the archived ear generation creates
a "flat" deployment structure. i.e. all the files inside the ear hierarchy are
bundled without any intermediate respective jars.
Is there a provision to package the ejb modules in one or more jar files when
building a qa and/or production ear ? Is this possible to accomplish or do I need
to write separate ant "targets" in the ant script that would manually jar up the
necessary ejbs. If so, how would this work in conjunction when I have a "ant ear"
target ?
I also noticed that the medrec example app has application specific value/dto
classes bundled in a separate jar file using a build.xml file. My question, when
running wlcompile at a higher level how does it know NOT to put the value classes
separately under APP-INF/classes, i.e. why does the build not build/see these
common value classes twice.
Thanks for your help!DP wrote:
Using the split development structure suggested in Weblogic 8.1 with wlpackage
ant task, I noticed that the exploded ear and the archived ear generation creates
a "flat" deployment structure. i.e. all the files inside the ear hierarchy are
bundled without any intermediate respective jars.
Is there a provision to package the ejb modules in one or more jar files when
building a qa and/or production ear ? Is this possible to accomplish or do I need
to write separate ant "targets" in the ant script that would manually jar up the
necessary ejbs. If so, how would this work in conjunction when I have a "ant ear"
target ? You would have to do this manually. Typically wlpackage would have to
modify your application.xml to archive the modules. For instance, your
application.xml probably has uris like myweb, myejb in it now because
that's how you named your directories. If we archived those, they'd
become myweb.war and myejb.jar, and the application.xml would need to be
modified to reflect the new uris.
It's all possible for us to do, but we ran out of time during 8.1 to get
this one in.
>
I also noticed that the medrec example app has application specific value/dto
classes bundled in a separate jar file using a build.xml file. My question, when
running wlcompile at a higher level how does it know NOT to put the value classes
separately under APP-INF/classes, i.e. why does the build not build/see these
common value classes twice. I'm not sure I exactly understand your question, but let me explain how
wlcompile works and see if that answers your question.
wlcompile looks at each directory under the srcdir and decides whether
it's an EJB, a webapp, or a java module. It supports an
includes/excludes list to let you filter those directories.
Anything that's not recognized as an EJB or webapp is compiled into
APP-INF/classes.
-- Rob
>
Thanks for your help! -
Best practices for package directory structure?
I've only compiled a few java programs & while I find the language itself very easy to adapt to from C++ and Javascript, I get confused about the directory structure and classpaths & such.
My main method of operation is to build small tools and test projects, and I would like to follow good practices for organizing my directory structure, so it will (a) work well with java, and (b) work well with my source control software.
Let's say I am developing packages named "com.example.test.test1", "com.example.test.test2", "com.example.tools.flapper", and "com.example.tools.spinner".
I know I can use this structure:
/java/test/test1/com/example/test/test1/* (files for com.example.test.test1 including test1.java)
/java/test/test2/com/example/test/test2/* (files for com.example.test.test2 including test2.java)
/java/tools/flapper/com/example/tools/flapper/* (files for com.example.tools.flapper including flapper.java)
/java/tools/spinner/com/example/tools/spinner/* (files for com.example.tools.spinner including spinner.java)
But the directories seem unnecessarily deep & lead to a hassle in source control that makes it difficult to browse.
Can I use this? and if so, how do I run "javac" and "jar" properly to compile/jar-ify each package?
/java/com/example/test/test1/* (files for com.example.test.test1)
/java/com/example/test/test2/* (files for com.example.test.test2)
/java/com/example/tools/flapper/* (files for com.example.tools.flapper)
/java/com/example/tools/spinner/* (files for com.example.tools.spinner)
also is it recommended to leave the .class files in the same dirs as the .java files, or better to have a separate tree for compiled .class files?hmm, there's a lot to absorb here...
I found these articles online that seem good:
http://www.onjava.com/pub/a/onjava/2003/12/17/ant_bestpractices.html
http://www.kevinboone.com/classpath.html
I'd like to use ant if possible & understand it; I've had troubles with IDEs in the past and would like to just stick with basic build mechanisms.
I guess as a practical example let's say I have two different applications that use the serial port, that I want to release separately, each in separate .jar files. One is called com.example.applications.serial1 and the other is com.example.applications.serial2. They both use rxtx.org's gnu.io.* libraries. Serial1 uses some packages that I have developed: com.example.tools.spinner and com.example.tools.flapper, whereas Serial2 uses com.example.tools.spinner and com.example.tools.flopper
I think I want to organize things this way: (everything below under /java/src/)
com
example
applications
serial1
serial1.java
serial2
serial2.java
tools
spinner
spinner.java
flapper
flapper.java
flopper
flopper.java
and I think I want to compile to /java/classes/:
com
example
applications
serial1
serial1.class
serial2
serial2.class
tools
spinner
spinner.class
flapper
flapper.class
flopper
flopper.class
but I'm sort of lost on where to put the ant buildfiles, which directories to be in to run javac, and how to get the jar files right. From what I've searched for online, the external libraries (RXTX's jar files & .dlls for windows) are "interesting", and the easiest thing is to tell users of my .jar files to put the rxtx libs in the same library as the .jar files so I can set the Class-Path: in the .jar manifest to point to them. -
Problem with package and directory structure
Please... I need help with a directory/package structure that I don't understand
why it is not working...
I want to create a custom login SWF which several other SWF movies will use in case they need some kind of login logic (in this case it is a login logic... but the problem doesn't have anything to do with that logic...)
I have created a FLA movie (LOGIN.FLA) and two helper classes (MAINLOGIN.AS and MAINLOGINEVENT.AS)... they are all under the same directory, for example:
c:\
abc\
def\
ghi\
login
In LOGIN.FLA, I have included the source path, c:\abc (for example).
MAINLOGIN.AS and MAINLOGINEVENT.AS, have both a package like:
package def.ghi.login
MainLogin class uses MainLoginEvent (it dispatches events of that type)... but I don't have to import anything as all 3files are in the same directory...
LOGIN.FLA has its class defined as def.ghi.login.MainLogin
And that's all... now comes the problem:
1. If I leave everything as described and try to publis LOGIN.FLA, it throws error 5001 ("The name of the package def.ghi.login.MainLoginEvent doesn't reflect....) for class MainLoginEvent... don't understand why... it is placed exactly as MainLogin and has the same package definition!
2. I have tried several other options, but when I get the SWF to get published, then, the problem comes when trying to use this SWF from another movie:
The way to publish LOGIN.FLA with no errors is: MAINLOGIN.AS and MAINLOGINEVENT.AS with empty package definition ("package" alone...) and LOGIN.FLA with class MainLogin (not def.ghi.login.MainLogin)... LOGIN.FLA doesn't have to include source path to c;\abc in this case. This way, I can publish LOGIN and get LOGIN.SWF.
The problem now is how to use this information from another Movieclip... I want to be able to use and receive events of type MainLoginEvent but can't (it gives error 5001 again, on MainLoginEvent, saying that the name of the package '' doesnt' reflect....)... If I include the path to c:\abc\def\ghi\login on the FLA, then it gives errors in MainLogin when trying to use a class of its library...
Basically, the problem here is that, the movie which wants to use the LOGIN.SWF, is in c:\abc\def, and it is including the source path c:\abc, so if I import def.ghi.login.*
it is when it throws error 5001 (I understand why, but I dont know how to fix it...), but if I dont import def.ghi.login.* then I can't use MainLogin nor MainLoginEvent...
What is the good way of doing this kind of structure... mainly it is creating a SWF, which can be used from other SWF's and which can dispatch events, which the container SWF will capture...
If anyone can please give me a hint... THANK YOU!Hi kglad , I don't understand the first point... "don't use absolute paths"... I'm not using them (or I don't understand what you mean).
For the second one... the structure is like:
c:\
abc\
def\
LOGINCONTAINER.FLA
ghi\
login\
LOGIN.FLA
MAINLOGIN.AS
MAINLOGINEVENT.AS
In LOGIN.FLA, I include the source path c:\abc, so MAINLOGIN.AS and MAINLOGINEVENT.AS have a package of "def.ghi.login", and the class for LOGIN.FLA is "def.ghi.login.MainLogin"... when trying to publish LOGIN.FLA, Flash throws error 5001 for MAINLOGINEVENT...¿?
What I want to get is a SWF (LOGIN.SWF), which can be loaded from any other SWF (in this example, LOGINCONTAINER.SWF). LOGINCONTAINER.FLA, has a class path "c:\abc" (the same as the other LOGIN.FLA, because of the directory structure), and it has to be able to receive events of type MAINLOGINEVENT... that is why it has to do an import of "import def.ghi.login.*" (for example)
Any idea of why it is not working (or how to organize it correctly)?
Thank you -
Package and Directory Structure
Hello --
I work in a group that supports 3 web sites. (b2b, b2c, b2e)
We're just beginning to develop Java in-house and
currently using Solaris and JDK 1.2.x.
I need to propose a package and directory structure strategy.
The "reverse the domain name" guideline makes sense to me.
My first thoughts are: ("classes" dir could be created anywhere)
classes/com/ppco/b2X/ <--- for .java and .class files (development)
lib/ <--- for b2X JAR files (ready for test or production)
util/ <--- for our utility classes like DBAccessor
lib/ <--- for our JAR files
sun/ <--- for classes like com.sun.mail pkg
lib/ <--- for JAR files like mail.jar
org/ <--- for classes in org.omg.CORBA pkg
lib/ <--- for JAR files
We need to handle 3rd party classes.
Development would be done in the b2X tree and JAR files would
be installed the lib/ dir for testing and release to production.
Does anyone have recommendations or experiences to share ?
Are there some things to avoid ?
Thanks !
AlHello Al,
you are on the right track. A typical convention I follow is:
<project>
bin - for startup scripts, etc. to run your application
build - for build scripts (not necessary if you build using your IDE. See below.)
classes - for my compiled classes
lib - for my 3rd party libraries
src - for my source code
test - for my test code (see http://junit.org/ )
That's the project hierarchy. The src (i.e. the package heirarchy) structure is another story.
As you say, you start with the reverse domain name. This is to give your packages a unique namespace. After that, your best guide is practice. Packages can be larger or smaller, depending on your coding practices. Usually you would have these (exact names may differ), plus others:
com/ppco/client
com/ppco/server
com/ppco/common
com/ppco/db
I think your break down of sun, org, etc. is a bit too much. If you would like to do so, however, I recommend you do the separation under /lib. This way, the top level project directory is not polluted by the different types of libraries in use.
Regards,
Manuel Amago.
From build above: I would suggest you always build your release distribution directly with the JDK, not using any IDE compiler. This is because Sun's JDK is the reference implementation, thus, any compatibility issues are not yours.
An easy way to achieve this is by using ANT (see http://jakarta.apache.ort/ant/ ). -
Is it possible to Change Directory structure once the project is developed?
Hello,
I am a Newbee to OAF development, I recently developed a JSP page using the oracle recommended directory structure "<companyname>.oracle.apps.<custom directory>." ie., for ex: "*xxcom*.oracle.apps.xxco.xxco_mapping.server", the page worked perfectly fine when I ran it from jDeveloper.
but when I tried to deployed the same in the server to run from Oracle Applications, I found that our organization's unix directory structure where I need to deploy the files is not the same, they are excluding the "<companyname>" directory in there structure, the directory structure in unix looks like this "$JAVA_TOP.oracle.apps.<custom directory>...." ie., for example: "/u06/appsw/appdevcomn/java/oracle/apps/xxco", so now I cannot deploy the page I have developed.
How do I resolve this issue? can I change the directory structure in jDeveloper now to match that on the server, ie., change it to "oracle.apps.xxco.xxco_mapping.server" instead of "*xxcom*.oracle.apps.xxco.xxco_mapping.server"
ThanksYes, it is called refactoring. PLease see the link below:
http://jdeveloperfaq.blogspot.com/2010/04/faq-20-how-to-refactor-adf-components.html
Kristofer Crus
Maybe you are looking for
-
Hi, I have develeoped custom timer job using vs 2010 to deploy in sharepoint server. While I right click on solution explorer and click on deploy then system throws an error "Error occurred in deployment step 'Activate Features': The type initializer
-
Problem designing the logout button i.e. the front end jsp
Hi, my project is an intranet project and starts with the login page. From my login page I am directed to manager, or supervisor, or accountant page where I am needed to perform certain duties. After I am done I need to logout. My problem is that I d
-
PSD files saved as Photoshop Image 13
I have been using Photoshop CS6 (64 Bit) on my Windows 8.1 laptop (64 bit) for over a year and has been working perfect. About two days ago something weird happened. All of my PSD files show that they are Photoshop Image 13 files instead of showing i
-
How to check the EHP level installed in Collection Management
Dear all, How do I know under what EHP my Collections & Dispute Management modules are running?. Another question I want to ask: which EHP contains standard reports to analyse worklists? Thirdly, which is the latest EHP that should be activated to ru
-
AE uses huge amount of memory (computer low on memory error)
I'm not sure if its just me, but After Effects seems to use a huge amount of memory. I'm not doing anything fancy: I have a b/w image (2478*774) which I opened in AE. I created a comp (25 frames) with the same dimensions of the image. On my timeline