Sunday, February 3, 2013

Deploy JSF 1.1 application on Weblogic 12.1.1

Deploy JSF 1.1 application on Weblogic 12.1.1

http://docs.oracle.com/cd/E24329_01/web.1211/e21049/configurejsfandjtsl.htm

Classloading: Making Hibernate work on WebLogic


If your application includes JSF JARs that you want to reference instead of the WebLogic Server bundled JSF shared libraries, you can configure a filtering classloader in weblogic-application.xml (.ear) as shown below.
http://docs.oracle.com/cd/E24329_01/web.1211/e24368/app_xml.htm

WLS 12.1.1 docs says it can be used also in war it seems to be ignored when only war is deployed.
Note that in order to use prefer-application-packages or prefer-application-resources, prefer-web-inf-classes must be set to false.

http://docs.oracle.com/cd/E24329_01/web.1211/e21049/weblogic_xml.htm

weblogic.xml 

List of schema versions for http://xmlns.oracle.com/weblogic/weblogic-web-app
1.0 : Released with WLS v10.3.1.0
1.1 : Released with WLS v10.3.3.0
1.2 : Released with WLS v10.3.4.0
1.3 : Released with WLS v10.3.6.0
1.4 : Released with WLS v12.1.1.0

 

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
  <container-descriptor>
    <prefer-web-inf-classes>false</prefer-web-inf-classes>
    <prefer-application-packages>
      <package-name>javax.faces.*</package-name>
      <package-name>com.sun.faces.*</package-name>
      <package-name>com.bea.faces.*</package-name>
    </prefer-application-packages>
 
    <prefer-application-resources>
      <resource-name>javax.faces.*</resource-name>
      <resource-name>com.sun.faces.*</resource-name>
      <resource-name>com.bea.faces.*</resource-name>
      <resource-name>META-INF/services/javax.servlet.ServletContainerInitializer</resource-name>
      </prefer-application-resources>
  </container-descriptor>
</weblogic-web-app>

weblogic-application.xml 

List of schema versions for http://xmlns.oracle.com/weblogic/weblogic-application
1.0 : Released with WLS v10.3.1.0
1.1 : Released with WLS v10.3.3.0
1.2 : Released with WLS v10.3.4.0
1.3 : Released with WLS v10.3.6.0
1.4 : Released with WLS v12.1.1.0

 

<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-application xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.4/weblogic-application.xsd">
    <!--weblogic-version:12.1.1-->
    <wls:application-param>
        <wls:param-name>webapp.encoding.default</wls:param-name>
        <wls:param-value>UTF-8</wls:param-value>
    </wls:application-param>
    <wls:prefer-application-packages> 
       <wls:package-name>javax.faces.*</wls:package-name> 
        <wls:package-name>com.sun.faces.*</wls:package-name> 
        <wls:package-name>com.bea.faces.*</wls:package-name> 
    </wls:prefer-application-packages> 
 
    <wls:prefer-application-resources> 
       <wls:resource-name>javax.faces.*</wls:resource-name> 
       <wls:resource-name>com.sun.faces.*</wls:resource-name> 
       <wls:resource-name>com.bea.faces.*</wls:resource-name> 
 
       <wls:resource-name>META-INF/services/javax.servlet.ServletContainerInitializer</wls:resource-name>
    </wls:prefer-application-resources>
</wls:weblogic-application>


https://forums.oracle.com/forums/thread.jspa?messageID=10101558&tstart=0

In WLS 12.1.1  release, the weblogic.xml file in jsf-1.2.war configures a filtering classloader for your application's JSF classes and resources.

Which basically means that we have provided a pre-configured filtering classloader definition so that the server will load classes from the specified packages from libraries supplied or referenced by the application. Without this, you'll always get the JSF 2.x implementation that is now provided on the direct WLS classpath (a change in WLS 12c to make using JSF easier).

Is there a reason you're using that older "jsf-myfaces 1.1.7" library? This won't have the filtering classloader definition. If you want to use that, then in addition to making the library reference to it, you'll also need to add a filtering classloader defininition. Take a look at the weblogic.xml file inside the jsf-1.2.war and copy the stanzas to your own configuration file.




JSF 1.1 tutorial

http://www.coreservlets.com/JSF-Tutorial/jsf1/

Blank JSF 1.1 project 
http://www.coreservlets.com/JSF-Tutorial/jsf1/code/jsf-blank-myfaces.zip


JSF versions

  • JSF 1.1 requires java 1.3 or later, JSP 1.2, JSTL 1.0, and a Java Servlet 2.3 implementation.
  • JSF 1.2 requires java 1.5 or later, JSP 2.1, JSTL 1.2 and a Java Servlet 2.5 implementation (Java EE 5)
  •  JSF 2.0 requires java 1.5 or later, JSP 2.1, JSTL 1.2 and a Java Servlet 2.5 implementation (Java EE 6)
  •  JSF 2.1 requires java 1.5 or later, JSP 2.1, JSTL 1.2 and a Java Servlet 2.5 implementation.
Create OEPE project

JSF 1.1 OEPE project libs ( optional - it is enough to put all libs into WEB-INF/lib )
http://myfaces.apache.org/core11/index.html



JSF 1.1 project configuration
 
JSF 1.1 faces-config.xml
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

<faces-config>
    <application>
        <message-bundle>resources.application</message-bundle>
        <locale-config>
            <default-locale>en</default-locale>
        </locale-config>
    </application>

</faces-config>

weblogic.xml  using filtering classloader

<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app
    xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd">
    <wls:weblogic-version>12.1.1</wls:weblogic-version>
    <wls:context-root>testJSF11</wls:context-root>
    <wls:container-descriptor>

        <wls:prefer-application-packages>
            <wls:package-name>org.apache.*</wls:package-name>
            <wls:package-name>javax.faces.*</wls:package-name>
            <wls:package-name>com.sun.faces.*</wls:package-name>
            <wls:package-name>com.bea.faces.*</wls:package-name>
        </wls:prefer-application-packages>

        <wls:prefer-application-resources>
            <wls:resource-name>javax.faces.*</wls:resource-name>
            <wls:resource-name>com.sun.faces.*</wls:resource-name>
            <wls:resource-name>com.bea.faces.*</wls:resource-name>
            <wls:resource-name>META-INF/services/javax.servlet.ServletContainerInitializer</wls:resource-name>
        </wls:prefer-application-resources>

    </wls:container-descriptor>

</wls:weblogic-web-app>

JSF 1.1 web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>testFSF11</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
  <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
  </servlet-mapping>
  <context-param>
    <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
    <param-value>resources.application</param-value>
  </context-param>
  <context-param>
    <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
  </context-param>
  <context-param>
    <description>
    This parameter tells MyFaces if javascript code should be allowed in
    the rendered HTML output.
    If javascript is allowed, command_link anchors will have javascript code
    that submits the corresponding form.
    If javascript is not allowed, the state saving info and nested parameters
    will be added as url parameters.
    Default is 'true'</description>
    <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
    <param-value>true</param-value>
  </context-param>
  <context-param>
    <description>
    If true, rendered HTML code will be formatted, so that it is 'human-readable'
    i.e. additional line separators and whitespace will be written, that do not
    influence the HTML code.
    Default is 'true'</description>
    <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
    <param-value>true</param-value>
  </context-param>
  <context-param>
    <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
    <param-value>false</param-value>
  </context-param>
  <context-param>
    <description>
    If true, a javascript function will be rendered that is able to restore the
    former vertical scroll on every request. Convenient feature if you have pages
    with long lists and you do not want the browser page to always jump to the top
    if you trigger a link or button action that stays on the same page.
    Default is 'false'
</description>
    <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
    <param-value>true</param-value>
  </context-param>
  <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  </listener>
</web-app>

Add JSF 1.1 libraries into WEB-INF/lib
[dave@dave testFSF11]$ ls -lR
.:
total 12
drwxrwxr-x. 3 dave dave 4096 Feb  3 11:12 build
drwxrwxr-x. 3 dave dave 4096 Feb  3 11:12 src
drwxrwxr-x. 4 dave dave 4096 Feb  3 11:12 WebContent

./build:
total 4
drwxrwxr-x. 3 dave dave 4096 Feb  3 11:13 classes

./build/classes:
total 4
drwxrwxr-x. 2 dave dave 4096 Feb  3 11:13 resources

./build/classes/resources:
total 4
-rw-rw-r--. 1 dave dave 227 Feb  3 11:12 application.properties

./src:
total 4
drwxrwxr-x. 2 dave dave 4096 Feb  3 11:12 resources

./src/resources:
total 4
-rw-rw-r--. 1 dave dave 227 Feb  3 11:12 application.properties

./WebContent:
total 12
-rw-rw-r--. 1 dave dave  505 Feb  3 11:12 index.jsp
drwxrwxr-x. 2 dave dave 4096 Feb  3 11:12 META-INF
drwxrwxr-x. 3 dave dave 4096 Feb  3 11:17 WEB-INF

./WebContent/META-INF:
total 4
-rw-rw-r--. 1 dave dave 39 Feb  3 11:12 MANIFEST.MF

./WebContent/WEB-INF:
total 16
-rw-rw-r--. 1 dave dave  391 Feb  3 11:12 faces-config.xml
drwxrwxr-x. 2 dave dave 4096 Feb  3 11:34 lib
-rw-rw-r--. 1 dave dave 1406 Feb  3 11:33 weblogic.xml
-rw-rw-r--. 1 dave dave 3050 Feb  3 11:12 web.xml

./WebContent/WEB-INF/lib:
total 2300
-rw-rw-r--. 1 dave dave 188671 Oct  5  2009 commons-beanutils-1.7.0.jar
-rw-rw-r--. 1 dave dave 559366 Oct  5  2009 commons-collections-3.1.jar
-rw-rw-r--. 1 dave dave 143602 Oct  5  2009 commons-digester-1.8.jar
-rw-rw-r--. 1 dave dave 112341 Nov 17  2009 commons-el-1.0.jar
-rw-rw-r--. 1 dave dave 207723 Oct  5  2009 commons-lang-2.1.jar
-rw-rw-r--. 1 dave dave  60686 Oct  5  2009 commons-logging-1.1.1.jar
-rw-rw-r--. 1 dave dave  16923 Nov 28  2009 jstl-1.1.0.jar
-rw-rw-r--. 1 dave dave 350460 Apr  4  2012 myfaces-api-1.1.10.jar
-rw-rw-r--. 1 dave dave 693804 Apr  4  2012 myfaces-impl-1.1.10.jar
[dave@dave testFSF11]$ 


Application is accessed http://localhost:7001/testJSF11/faces/index.jsp

To use faces/index.jsp URL  redirect filter is required
/testFSF11/src/coreservlets/FacesRedirectFilter.java ( see CoreServlets tutorial)

Analyze classloading conficts using Weblogic CAT
 (Classloader Analysis Tool)

Conflicts Summary

There are potential conflicts detected and they do not seem to have been resolved. Please review the potential solutions below.

    18 classes are in conflict
    Those classes are found in the following main packages:
        javax.servlet.jsp.*

Suggested Solution

<prefer-application-packages>
   <package-name>javax.servlet.jsp.*</package-name>
</prefer-application-packages>



Conflicts
Resource: <select below>

Below is a list of classes that are marked as potential conflicts. By clicking on a class, further information about this class will be shown in this space. This information includes the alternative locations this class may be found and which classloader actually will load this class.
Classes:

    javax.servlet.jsp.jstl.core.ConditionalTagSupport
    javax.servlet.jsp.jstl.core.Config
    javax.servlet.jsp.jstl.core.LoopTag
    javax.servlet.jsp.jstl.core.LoopTagStatus
    javax.servlet.jsp.jstl.core.LoopTagSupport
    javax.servlet.jsp.jstl.core.LoopTagSupport$1Status
    javax.servlet.jsp.jstl.fmt.LocaleSupport
    javax.servlet.jsp.jstl.fmt.LocalizationContext
    javax.servlet.jsp.jstl.sql.Result
    javax.servlet.jsp.jstl.sql.ResultImpl
    javax.servlet.jsp.jstl.sql.ResultSupport
    javax.servlet.jsp.jstl.sql.SQLExecutionTag
    javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV
    javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV$1
    javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV$PermittedTaglibsHandler
    javax.servlet.jsp.jstl.tlv.ScriptFreeTLV
    javax.servlet.jsp.jstl.tlv.ScriptFreeTLV$1
    javax.servlet.jsp.jstl.tlv.ScriptFreeTLV$MyContentHandler



Classloader tree summary

Application Info

    Application: testJSF11
    Version: <Not Set>
    Module: testJSF11
    Annotation: _auto_generated_ear_@testJSF11


System Classloaders
Type: sun.misc.Launcher$ExtClassLoader
HashCode: 27355241
Classpath:

    /opt/weblogic/jdk160_29/jre/lib/ext/dnsns.jar
    /opt/weblogic/jdk160_29/jre/lib/ext/localedata.jar
    /opt/weblogic/jdk160_29/jre/lib/ext/sunjce_provider.jar
    /opt/weblogic/jdk160_29/jre/lib/ext/sunpkcs11.jar

Type: sun.misc.Launcher$AppClassLoader
HashCode: 13288040
Classpath:

    /opt/weblogic/jdk160_29/lib/tools.jar
    /opt/weblogic/modules/features/weblogic.server.modules_12.1.1.0.jar
    /opt/weblogic/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar
    /opt/weblogic/modules/org.apache.ant_1.7.1/lib/ant-all.jar
    /opt/weblogic/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar
    /opt/weblogic/patch_oepe101/profiles/default/sys_manifest_classpath/weblogic_patch.jar
    /opt/weblogic/patch_wls1211/profiles/default/sys_manifest_classpath/weblogic_patch.jar
    /opt/weblogic/wlserver_12.1/common/derby/lib/derbyclient.jar
    /opt/weblogic/wlserver_12.1/server/lib/weblogic.jar
    /opt/weblogic/wlserver_12.1/server/lib/weblogic_sp.jar
    /opt/weblogic/wlserver_12.1/server/lib/webservices.jar
    /opt/weblogic/wlserver_12.1/server/lib/xqrl.jar

Type: weblogic.utils.classloaders.GenericClassLoader
HashCode: 33228044
Classpath:

Application Classloaders
Type: weblogic.utils.classloaders.FilteringClassLoader
HashCode: 8915459
Filter: []
Classpath: empty
Type: weblogic.utils.classloaders.GenericClassLoader
HashCode: 10340792
Classpath:

Type: weblogic.utils.classloaders.FilteringClassLoader
HashCode: 12859001
Filter: [org.apache.*, javax.faces.*, com.sun.faces.*, com.bea.faces.*]
Classpath: empty
Type: weblogic.utils.classloaders.ChangeAwareClassLoader
HashCode: 12896305
Classpath:

    /home/dave/app/myfaces-core-1.1.10-bin/lib/commons-beanutils-1.7.0.jar
    /home/dave/app/myfaces-core-1.1.10-bin/lib/commons-collections-3.1.jar
    /home/dave/app/myfaces-core-1.1.10-bin/lib/commons-digester-1.8.jar
    /home/dave/app/myfaces-core-1.1.10-bin/lib/commons-el-1.0.jar
    /home/dave/app/myfaces-core-1.1.10-bin/lib/commons-lang-2.1.jar
    /home/dave/app/myfaces-core-1.1.10-bin/lib/commons-logging-1.1.1.jar
    /home/dave/app/myfaces-core-1.1.10-bin/lib/jstl-1.1.0.jar
    /home/dave/app/myfaces-core-1.1.10-bin/lib/myfaces-api-1.1.10.jar
    /home/dave/app/myfaces-core-1.1.10-bin/lib/myfaces-impl-1.1.10.jar
    /home/dave/workspace/testFSF11/WebContent/WEB-INF/lib/commons-beanutils-1.7.0.jar
    /home/dave/workspace/testFSF11/WebContent/WEB-INF/lib/commons-collections-3.1.jar
    /home/dave/workspace/testFSF11/WebContent/WEB-INF/lib/commons-digester-1.8.jar
    /home/dave/workspace/testFSF11/WebContent/WEB-INF/lib/commons-el-1.0.jar
    /home/dave/workspace/testFSF11/WebContent/WEB-INF/lib/commons-lang-2.1.jar
    /home/dave/workspace/testFSF11/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar
    /home/dave/workspace/testFSF11/WebContent/WEB-INF/lib/jstl-1.1.0.jar
    /home/dave/workspace/testFSF11/WebContent/WEB-INF/lib/myfaces-api-1.1.10.jar
    /home/dave/workspace/testFSF11/WebContent/WEB-INF/lib/myfaces-impl-1.1.10.jar
    /home/dave/workspace/testFSF11/build/classes



Application start log- using MyFaces

Feb 3, 2013 11:45:31 AM org.apache.myfaces.config.FacesConfigurator feedStandardConfig
INFO: Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
Feb 3, 2013 11:45:31 AM org.apache.myfaces.config.FacesConfigurator feedWebAppConfig
INFO: Reading config /WEB-INF/faces-config.xml
Feb 3, 2013 11:45:31 AM org.apache.myfaces.config.FacesConfigurator logMetaInf
INFO: Artifact 'myfaces-api' was not found.
Feb 3, 2013 11:45:31 AM org.apache.myfaces.config.FacesConfigurator logMetaInf
INFO: Artifact 'myfaces-impl' was not found.
Feb 3, 2013 11:45:31 AM org.apache.myfaces.config.FacesConfigurator logMetaInf
INFO: Artifact 'tomahawk-sandbox' was not found.
Feb 3, 2013 11:45:31 AM org.apache.myfaces.config.FacesConfigurator logMetaInf
INFO: Artifact 'tomahawk' was not found.
Feb 3, 2013 11:45:31 AM org.apache.myfaces.config.FacesConfigurator logMetaInf
INFO: Artifact 'tobago-core' was not found.
Feb 3, 2013 11:45:31 AM org.apache.myfaces.config.FacesConfigurator handleSerialFactory
INFO: Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
Feb 3, 2013 11:45:31 AM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true
Feb 3, 2013 11:45:31 AM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true
Feb 3, 2013 11:45:31 AM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true
Feb 3, 2013 11:45:31 AM org.apache.myfaces.shared_impl.config.MyfacesConfig getLongInitParameter
INFO: No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2
Feb 3, 2013 11:45:31 AM org.apache.myfaces.shared_impl.config.MyfacesConfig createAndInitializeMyFacesConfig
INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
Feb 3, 2013 11:45:31 AM org.apache.myfaces.shared_impl.config.MyfacesConfig createAndInitializeMyFacesConfig
INFO: Starting up Tomahawk on the MyFaces-JSF-Implementation
Feb 3, 2013 11:45:31 AM org.apache.myfaces.webapp.StartupServletContextListener initFaces
INFO: ServletContext '/home/dave/workspace/testFSF11/WebContent' initialized.
Feb 3, 2013 11:45:31 AM org.apache.myfaces.webapp.StartupServletContextListener initFaces
INFO: MyFaces already initialized
Feb 3, 2013 11:45:31 AM org.apache.myfaces.webapp.StartupServletContextListener initFaces
INFO: ServletContext '/home/dave/workspace/testFSF11/WebContent' initialized.


 

Force precompilation of JSP  in weblogic.xml descriptor

 
    <jsp-descriptor>
         <precompile>true</precompile> 
        <precompile-continue>true</precompile-continue>
        <keepgenerated>true</keepgenerated>
        <page-check-seconds>-1</page-check-seconds>
        <verbose>true</verbose>
    </jsp-descriptor>

 

JSP files precompilation with wlappc

Requires separate classpath for libs in WEB-INF/lib
<project name="Appc" default="appc" basedir="./">

    <target name="appc" description="Packages the WAR file">
        <!-- Precompile JSP pages using appc -->
        <echo message="Precompile JSP pages using appc in ${assemble.war}" />
        <path id="wlappc.classpath">
            <fileset dir="${env.WL_HOME}/server/lib">
                <include name="weblogic.jar" />
            </fileset>
        </path>
        <path id="compile.classpath">
            <fileset dir="${assemble.war}/WEB-INF/lib">
                <include name="*.jar" />
            </fileset>
        </path>

        <echo message="${toString:wlappc.classpath}" />
        <taskdef name="wlappc" classname="weblogic.ant.taskdefs.j2ee.Appc"
            classpathref="wlappc.classpath" />
        <wlappc verbose="true" forcegeneration="true" source="${assemble.war}"
            classpathref="compile.classpath">

        </wlappc>

    </target>


</project>

wlappc Ant Task Options

http://docs.oracle.com/cd/E13222_01/wls/docs81/programming/topics.html
 Ant task options specific to wlappc. For the most part, these options are the same as weblogic.appc options. However, there are a few differences.




          
Option



        

          
Description



        

          
print



        

          
Prints the standard usage message.



        

          
version



        

          
Prints appc version information.



        

          
output <file>



        

          
Specifies an alternate output archive or directory. If not set, the output is placed in the source archive or directory.



        

          
forceGeneration



        

          
Forces generation of EJB and JSP classes. Without this flag, the classes will not be regenerated unless a checksum indicates that it is necessary.



        

          
lineNumbers



        

          
Adds line numbers to generated class files to aid in debugging.



        

          
basicClientJar



        

          
Does not include deployment descriptors in client JARs generated for EJBs.



        

          
idl



        

          
Generates IDL for EJB remote interfaces.



        

          
idlOverwrite



        

          
Always overwrites existing IDL files.



        

          
idlVerbose



        

          
Displays verbose information for IDL generation.



        

          
idlNoValueTypes



        

          
Does not generate valuetypes and the methods/attributes that contain them.



        

          
idlNoAbstractInterfaces



        

          
Does not generate abstract interfaces and methods/attributes that contain them.



        

          
idlFactories



        

          
Generates factory methods for valuetypes.



        

          
idlVisibroker



        

          
Generates IDL somewhat compatible with Visibroker 4.5 C++.



        

          
idlOrbix



        

          
Generates IDL somewhat compatible with Orbix 2000 2.0 C++.



        

          
idlDirectory <dir>



        

          
Specifies the directory where IDL files will be created (default: target directory or JAR)



        

          
idlMethodSignatures <>



        

          
Specifies the method signatures used to trigger IDL code generation.



        

          
iiop



        

          
Generates CORBA stubs for EJBs.



        

          
iiopDirectory <dir>



        

          
Specifies the directory where IIOP stub files will be written (default: target directory or JAR)



        

          
keepgenerated



        

          
Keeps the generated .java files.



        

          
compiler <javac>



        

          
Selects the Java compiler to use.



        

          
debug



        

          
Compiles debugging information into a class file.



        

          
optimize



        

          
Compiles with optimization on.



        

          
nowarn



        

          
Compiles without warnings.



        

          
verbose



        

          
Compiles with verbose output.



        

          
deprecation



        

          
Warns about deprecated calls.



        

          
normi



        

          
Passes flags through to Symantec's sj.



        

          
runtimeflags



        

          
Passes flags through to Java runtime



        

          
classpath <path>



        

          
Selects the classpath to use during compilation.



        

          
advanced



        

          
Prints advanced usage options.



        

No comments:

Post a Comment