This content has been marked as final. Show 2 replies
While there is a way to turn a plain Java project into something that you can deploy to WLS, for a new user, I would recommend starting from scratch by creating a utility project instead (search for utility in the new project dialog). That project wizard will create a Java project with additional metadata for targetting WLS. The utility project wizard will help you to create WLS runtime on the first page of the wizard. Once you have a utility project created, you can move over your existing Java classes.
Hope that helps.
Thank you. That's exactly what I am looking for. I thought utility project is just a java project, but now I realize utility is under J2EE. However, utility doesn't have log4j included. I know log4j is in modules under install. what's the good way to add it in? I tried to add as External jar, but I got Classpath Dependency Validator Message error:
Classpath entry C:/oracle/Middleware/modules/com.bea.core.apache.log4j_1.2.13.jar will not be exported or published. Runtime ClassNotFoundExceptions may result.
Also the project eventually needs to be a jar file to be distibuted and I have ant build file to build it already. Can the build be part of the project setup, meaning using the ant build? Thanks!