An interesting discovery of ant javac compile task

hi all
i just found out a new thing about using ant to compile java classes, at least it is new to me. you can use ant to compile classes even if they are not in the correct physical path which are indicated in the package declaration. i.e. if you have a class :
package com.name1.name2
class SomeClass{
}and, if the java file is atually located in com/name1/name2/name3, the ant can still compile it and place the binary class anywhere u specify.
any comment on this?

thanks, i suppose javac will place the class file in
proper place with the information from the package
declaration. if it is declared for this package,
then it will be compiled and place in that folder
accordinglyYep. Relative to current directory, or to the directory specified by -d if present.
. interesting, i never knew that until
now. but this wuoldn't work if you want to use an IDE
tool to develop. i tried with eclipse, and it
complained about the package problem and treated it
as an error.That's probably eclipse being deliberately stricter than javac. Personally, I can't see any good reason not to put them in their respective package directories in the first place.

Similar Messages

  • Ant Build Error - Unable to find a javac compiler

    I downloaded and installed the Sun Java Toolkit 1.0 for CDC. I can build and run the examples with no problem.
    When I create my own project -- either by using the Create from Example option or the Create a New Project from Scratch option, I consistently receive this error message:
    C:\CDCTK10\apps\JillianGolfHandset\nbproject\build-impl.xml:295: The following error occurred while executing this line:
    C:\CDCTK10\apps\JillianGolfHandset\nbproject\build-impl.xml:148: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    BUILD FAILED (total time: 0 seconds)
    Unfortunately, I'm not an Ant jock.
    I'd like to go fiddling with the JAVA_HOME environmental variable on my system, but something tells me I shouldn't have to touch it; why would the examples work if JAVA_HOME weren't set properly?
    Any ideas?

    I had the JDK installed and the JAVA_HOME set correctly to point to the JDK but it still gave the same error.
    As I'm using Windows, I thought the problem may have been the spaces in the JAVA_HOME path, so I changed it to the old DOS style path e.g with the ~1. But that didn't work
    Someone else suggested adding the JDK bin to the PATH, so I did that, but it didn't fix the problem.
    Doing a search on the web, someone else using ANT had a similar problem, though not with the CDC, and added the tools.jar to the classpath
    So I tried adding tool.jar to the classpath, and it worked !!
    There is probably a better solution, but I couldn't find it, so I'll stick with this one until someone comes up with a better fix

  • Cannot find javac compiler

    I have recently installed apache tomcat and the J2SE SDk on my windows machine and have managed to get tomcat to run. However, when i try to test a jsp page I get an error saying ii cannot find the javac compiler. The error I amgetting is shown below.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
         org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    I have checked my environment variables that I set up and I cannot finad anything wrong with them as they all seem to point to the right directory. Here are my environment variables.
    CLASSPATH = C:\jdk1.5.0_02\lib\tools.jar;C:\Servers\Tomcat 5.0\common\lib\servlet-api.jar;C:\Servers\Tomcat 5.0\common\lib\jsp-api.jar
    JAVA_HOME = C:\jdk1.5.0_02
    PATH = %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\ATI-CPanel;C:\Program Files\Pragma\Clients;C:\Program Files\MySQL\MySQL Server 4.1\bin;C:\jdk1.5.0_02\bin
    Does anyone have any idea what the problem could be? Any solutions would be much appreciated.
    Thanks

    I have recently installed apache tomcat and the J2SE SDk on my windows machine and have managed to get tomcat to run.
    the error i have got is below:
    Exception:
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
         at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:282)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:536)
    Does anyone have any idea what the problem could be? Any solutions would be much appreciated.
    Thanks

  • Compile error : "unable to find javac compiler"

    Hello,
    I've got this problem compiling my java project: the error that I get is :
    Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_05\lib\tools.jar
    init:
    compile:
    [javac] Compiling 9 source files to H:\project\class
    BUILD FAILED
    H:\project\build.sml:8: Unable to find a javac compiler;
    com.sun.tools.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to th JDK
    I'm using the following product:
    a)     MySQL Database: mysql-4.1.13a-win32.zip (http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.13a-win32.zip/from/pick)
    b)     MySQL JDBC driver: mysql-connector-java-3.1.10.zip (http://dev.mysql.com/downloads/connector/j/3.1.html )
    c)     JBuilder 2005: http://www.borland.com/downloads/download_jbuilder.html
    d)     Jakarta Ant: apache-ant-1.6.5-bin.zip (http://ant.apache.org/bindownload.cgi)
    In the C:\Program Files\JAVA map are the following maps:
    - jdk1.5.0_05
    - jre1.5.0_05
    the settings in windows:
    ANT_HOME C:\java\apache-ant-1.6.5
    JAVA_HOME C:\Program Files\Java\jdk1.5.0_05
    And I have added ;C:\java\apache-ant-1.6.5\bin; to the PATH
    Why doesn't it work ? And more important, How can I fix it ?
    Thanks
    Nick

    Hello,
    I've got this problem compiling my java project: the error that I get is :
    Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_05\lib\tools.jar
    init:
    compile:
    [javac] Compiling 9 source files to H:\project\class
    BUILD FAILED
    H:\project\build.sml:8: Unable to find a javac compiler;
    com.sun.tools.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to th JDK
    I'm using the following product:
    a)     MySQL Database: mysql-4.1.13a-win32.zip (http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.13a-win32.zip/from/pick)
    b)     MySQL JDBC driver: mysql-connector-java-3.1.10.zip (http://dev.mysql.com/downloads/connector/j/3.1.html )
    c)     JBuilder 2005: http://www.borland.com/downloads/download_jbuilder.html
    d)     Jakarta Ant: apache-ant-1.6.5-bin.zip (http://ant.apache.org/bindownload.cgi)
    In the C:\Program Files\JAVA map are the following maps:
    - jdk1.5.0_05
    - jre1.5.0_05
    the settings in windows:
    ANT_HOME C:\java\apache-ant-1.6.5
    JAVA_HOME C:\Program Files\Java\jdk1.5.0_05
    And I have added ;C:\java\apache-ant-1.6.5\bin; to the PATH
    Why doesn't it work ? And more important, How can I fix it ?
    Thanks
    Nick

  • Error  "unable to find javac compiler"

    Hello,
    I've got this problem compiling my java project: the error that I get is :
    Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_05\lib\tools.jar
    init:
    compile:
    [javac] Compiling 9 source files to H:\project\class
    BUILD FAILED
    H:\project\build.xml:8: Unable to find a javac compiler;
    com.sun.tools.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    I'm using the following products:
    a) MySQL Database: mysql-4.1.13a-win32.zip (http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.13a-win32.zip/from/pick)
    b) MySQL JDBC driver: mysql-connector-java-3.1.10.zip (http://dev.mysql.com/downloads/connector/j/3.1.html )
    c) JBuilder 2005: http://www.borland.com/downloads/download_jbuilder.html
    d) Jakarta Ant: apache-ant-1.6.5-bin.zip (http://ant.apache.org/bindownload.cgi)
    In the C:\Program Files\JAVA map are the following maps:
    - jdk1.5.0_05
    - jre1.5.0_05
    the settings in windows:
    ANT_HOME C:\java\apache-ant-1.6.5
    JAVA_HOME C:\Program Files\Java\jdk1.5.0_05
    And I have added ;C:\java\apache-ant-1.6.5\bin; to the PATH
    Why doesn't it work ? And more important, How can I fix it ?
    Thanks
    Nick

    Duplicate of http://forum.java.sun.com/thread.jspa?threadID=687035

  • Antinstaller - unable to find javac compiler

    Hi all,
    am using antinstaller to deploy an application. The application which I want to
    deploy has its own build file it has targets like clean, build, warfile etc. Its is working fine if an using ant from command prompt. but if I use ant installer
    and call this build.xml using the
    <ant dir="some dir" target="build" />
    then when ant installer runs as it comes to this line it give me error that
    Unable to find javac compiler com.sun.tools.javac.Main is not on the classpath
    perhaps JAVA_HOME does not point to the JDK.
    As I have already set JAVA_HOME to the jdk dir and PATH variable to
    %JAVA_HOME%\bin.
    Am not getting where the problem is - any suggestion is helpful.

    sorry, I forgot to add fork="true" to <javac> task

  • HELP Unable to find a javac compiler

    Hi I try to show a report maked in CrystalReports11 and i try to view y a jsp page but the next error apears:
    Estado HTTP 500 -
    type Informe de Excepci�n
    mensaje
    descripci�n El servidor encontr� un error interno () que hizo que no pudiera rellenar este requerimiento.
    excepci�n
    org.apache.jasper.JasperException: No se puede compilar la clase para JSP
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    causa ra�z
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
         org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Somebody help me or any know how view a report in Jbuilder but not in jsp?? thanks!

    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.Ensure that the tools.jar from the JDK is part of your classpath

  • How do I see javac compiler errors during JSP precompile?

              I played with all the options that "weblogic.jspc"
              supports. I couldn't get the javac compiler errors to
              show up when there is a problem with the generated
              Java file.
              Interestingly the same JSP when compiled automatically
              by the weblogic server, the javac errors show up in
              the output.
              Any tricks? or ideas?
              thanks
              

              In WL 5.1, earlier service packs would sometimes not show the errors. Get sp6 or later.
              mike
              "Mahesh Vellanki" <[email protected]> wrote:
              >
              >
              >I played with all the options that "weblogic.jspc"
              >supports. I couldn't get the javac compiler errors to
              >show up when there is a problem with the generated
              >Java file.
              >
              >Interestingly the same JSP when compiled automatically
              >by the weblogic server, the javac errors show up in
              >the output.
              >
              >Any tricks? or ideas?
              >
              >thanks
              >
              

  • How can I invoke javac compiler

    Hello
    I want to invoke javac compiler to compile a java file in my file and also I want
    to redirect the output or error to a text file.

    That is possible. I recommend you to look at the ant source code or jasper source code to get an idea. http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jasper/docs/api/org/apache/jasper/compiler/SunJavaCompiler.html
    Hope this helps.

  • Error at the time of Deployment of Composit ---  ant-sca-compile.xml

    Hi,
    While deploying the composite, it’s throwing given error
    [03:03:42 PM] ---- Deployment started. ----
    [03:03:42 PM] Target platform is (Weblogic 10.3).
    [03:03:42 PM] Running dependency analysis...
    [03:03:42 PM] Building...
    [03:03:49 PM] Deploying profile...
    [03:03:50 PM] Wrote Archive Module to H:\AIASOAProject\AIAFrameworkProject\ReceiptListEBS\deploy\sca_ReceiptListEBS_rev1.0.jar
    [03:03:50 PM] Deploying sca_ReceiptListEBS_rev1.0.jar to soa_server1 [edpsvddb002.baea.com.au:8001]
    [03:03:50 PM] Processing sar=/H:/AIASOAProject/AIAFrameworkProject/ReceiptListEBS/deploy/sca_ReceiptListEBS_rev1.0.jar
    [03:03:50 PM] Adding sar file - H:\AIASOAProject\AIAFrameworkProject\ReceiptListEBS\deploy\sca_ReceiptListEBS_rev1.0.jar
    [03:03:50 PM] Preparing to send HTTP request for deployment
    [03:03:50 PM] Creating HTTP connection to host:edpsvddb002.baea.com.au, port:8001
    [03:03:50 PM] Sending internal deployment descriptor
    [03:03:50 PM] Sending archive - sca_ReceiptListEBS_rev1.0.jar
    [03:03:52 PM] Received HTTP response from the server, response code=401
    [03:03:52 PM] Problem in sending HTTP request to the server. Check standard HTTP response code for 401
    [03:03:52 PM] Error deploying archive sca_ReceiptListEBS_rev1.0.jar to soa_server1 [edpsvddb002.baea.com.au:8001]
    [03:03:52 PM] HTTP error code returned [401]
    [03:03:52 PM] No error message is returned from the server.
    [03:03:52 PM] Error deploying archive sca_ReceiptListEBS_rev1.0.jar to soa_server1 [edpsvddb002.baea.com.au:8001]
    [03:03:52 PM] #### Deployment incomplete. ####
    [03:03:52 PM] Error deploying archive file:/H:/AIASOAProject/AIAFrameworkProject/ReceiptListEBS/deploy/sca_ReceiptListEBS_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    Buildfile: C:\jdeveloper1112\jdeveloper\bin\ant-sca-compile.xml
    scac:
    *[scac] Validating composite : 'H:\AIASOAProject\AIAFrameworkProject\ReceiptListEBS\composite.xml'*
    *[scac] Error occurred during initialization of VM*
    *[scac] Could not reserve enough space for object heap*
    BUILD FAILED
    C:\jdeveloper1112\jdeveloper\bin\ant-sca-compile.xml:264: Java returned: 1 Check log file : H:\AIASOAProject\AIAFrameworkProject\ReceiptListEBS\SCA-INF\classes\scac.log for errorsTotal time: 1 second
    Is this issue occuring due to server ant-sca-compile.xml or C:\jdeveloper1112\jdeveloper\bin\ant-sca-compile.xml in my desktop.
    Kindly Confirm.
    Regards
    Manish

    Same composite we were able to deploy successfully without any error, from Monday onward we are experiencing this issue.
    We checked in Installation Guide provided by oracle. Oracle has suggested few memory related changes in ant-sca-compile.xml file.
    Increasing Memory to avoid Compilation Errors
    To avoid out-of-memory errors during compilation of a SOA composite application, you need to
    increase the following memory settings.
    To increase memory settings:
    1. Open the ant-sca-compile.xml file in the SOA_HOME/bin directory.
    2. Under the scac element, increase the following memory settings.
    <jvmarg value="-Xms2048m"/>
    <jvmarg value="-Xmx2048m"/>
    <jvmarg value="-XX:PermSize=32m"/>
    <jvmarg value="-XX:MaxPermSize=256m"/>
    3. For Windows change the following memory settings to.
    <jvmarg value="-Xms1536m"/>
    <jvmarg value="-Xmx1536m"/>
    <jvmarg value="-XX:PermSize=32m"/>
    <jvmarg value="-XX:MaxPermSize=256m"/>
    We did those changes but still experiencing same error. I checked H:\AIASOAProject\AIAReceiptInterface\ReceiptListEbizProvider\SCA-INF\classes\scac.log ; file its showing Could not create the Java virtual machine.
    Regards
    Manish

  • Issue with ant-sca-compile.xml

    We have installed AIA 11.1.1.3, and using Jdev 11.1.1.3,
    We are facing issue while deploying ABCSImpl Composite(AIA Service Constructor Based composites) through Jdev 11.1.1.3 ,
    SOA-log showing
    Buildfile: C:\Jdev11113\jdeveloper\bin\ant-sca-compile.xml
    scac:
    [scac] Validating composite "H:\AIASOAProject\AIAPOInterface\CreatePurchaseOrderListEbizProvABCSImpl\composite.xml"
    Its not moving forward, Jdeveloper is getting struck during validation step.
    Messages-log showing -
    Compiling...
    Context: MakeProjectAndDependenciesCommand selection=CreatePurchaseOrderListEbizProvABCSImpl.jpr application=AIAPOInterface.jws project=CreatePurchaseOrderListEbizProvABCSImpl.jpr node=CreatePurchaseOrderListEbizProvABCSImpl.jpr
    Its happening with AIA Service Constructor based composites.
    Non Service Constructor based Composites are getting deployed i.e. Provider Service, EBS and Requestor Services are getting deployed.
    Its very urgent kindly provide some suggestions or tips, Its urgent for us.

    Hi Manish,
    Compilation of Requester and Provider ABCS takes longer time than other AIA components.So check the Xms and Xmx values in ant-sca-compile.xml and check whether it is matching with your OS environment or try setting at a higher value and then try deploying again.
    Is it building properly or is getting stuck at build level only?
    If its issue with deployment then check $FM_HOME/user_projects/domains/[domain_name]/servers/soa_server1/logs/soa-server1-diagnostic.log.
    Rgds,
    Mandrita.

  • [svn:fx-trunk] 9555: Fixed 'ant doc' compilation error in DesignLayer.as.

    Revision: 9555
    Author:   [email protected]
    Date:     2009-08-24 16:06:41 -0700 (Mon, 24 Aug 2009)
    Log Message:
    Fixed 'ant doc' compilation error in DesignLayer.as.
    QE notes: None
    Doc notes: None
    Bugs: None
    Reviewer: None
    Tests run: ant checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/DesignLayer.as

  • Error deploying JDeveloper project using ant-sca-compile.xml

    Hi all, I'm having problems on deploying a JDeveloper project using ant-sca-compile.xml. The output in C:\XXXX\YYYYY\SCA-INF\classes\scac.log is:
    java.lang.NoClassDefFoundError: 4\jdeveloper\////oracle_common
    Caused by: java.lang.ClassNotFoundException: 4\jdeveloper\....oracle_common
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    Could not find the main class: 4\jdeveloper\/../oracle_common. Program will exit.
    Exception in thread "main"
    What's missing in wich classpath?
    Regards
    Efren.

    Same composite we were able to deploy successfully without any error, from Monday onward we are experiencing this issue.
    We checked in Installation Guide provided by oracle. Oracle has suggested few memory related changes in ant-sca-compile.xml file.
    Increasing Memory to avoid Compilation Errors
    To avoid out-of-memory errors during compilation of a SOA composite application, you need to
    increase the following memory settings.
    To increase memory settings:
    1. Open the ant-sca-compile.xml file in the SOA_HOME/bin directory.
    2. Under the scac element, increase the following memory settings.
    <jvmarg value="-Xms2048m"/>
    <jvmarg value="-Xmx2048m"/>
    <jvmarg value="-XX:PermSize=32m"/>
    <jvmarg value="-XX:MaxPermSize=256m"/>
    3. For Windows change the following memory settings to.
    <jvmarg value="-Xms1536m"/>
    <jvmarg value="-Xmx1536m"/>
    <jvmarg value="-XX:PermSize=32m"/>
    <jvmarg value="-XX:MaxPermSize=256m"/>
    We did those changes but still experiencing same error. I checked H:\AIASOAProject\AIAReceiptInterface\ReceiptListEbizProvider\SCA-INF\classes\scac.log ; file its showing Could not create the Java virtual machine.
    Regards
    Manish

  • JDeveloper build vs ant-sca-compile.xml

    Hi everyone,
    I have a composite containing a Spring component. The component can be compiled and deployed in JDeveloper and works fine. However, when I try to compile the composite with ant-sca-compile.xml Ant script (from my JDeveloper - Build JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192.1) for automated testing the build fails on
    Source port type for "MyTestService" does not match target port type for "MyTestSpring"
    Any idea how to fix it? The Spring component (its inteface) is generated from the published WSDL and seems it is the cause of the problem as composites without Spring can be compiled with that script.
    Thanks,
    Jan

    Hi Manish,
    Compilation of Requester and Provider ABCS takes longer time than other AIA components.So check the Xms and Xmx values in ant-sca-compile.xml and check whether it is matching with your OS environment or try setting at a higher value and then try deploying again.
    Is it building properly or is getting stuck at build level only?
    If its issue with deployment then check $FM_HOME/user_projects/domains/[domain_name]/servers/soa_server1/logs/soa-server1-diagnostic.log.
    Rgds,
    Mandrita.

  • Error- deploymnt fails - ORABPEL-00016 & 05215- Javac compiler config err

    Hi,
    We are getting the below error randomly when we try to deploy..
    ORABPEL-00016
    Javac compiler configuration error.
    Failed to execute javac compiler on file(s) "/opt/oracle/soa/bpel/domains/default/tmp/.bpel_XXXXXX_1.0_3c2c050b949f081557b49d81a3e5fe35.tmp/BPEL-INF/src/bpel/XXXXXl/BPEL_BIN.java". Exception reported is:
    Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
    ORABPEL-05215
    Error while loading process.
    The process domain encountered the following errors while loading the process "XXXXX" (revision "1.0"): Javac compiler configuration error.
    Failed to execute javac compiler on file(s) "/opt/oracle/soa/bpel/domains/default/tmp/.bpel_XXXXXXl_1.0_3c2c050b949f081557b49d81a3e5fe35.tmp/BPEL-INF/src/bpel/XXXXXl/BPEL_BIN.java". Exception reported is:
    Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
    and a huge stack trace...
    Everything in the server.xml seems to be in the path... its getting fixed after a recycle.... we are able to deploy the same BPEL once recycled...
    Does any one of you encounter same problem.. Whts the reason why this is occuring?
    Thanks,
    Jayaprakash

    Hi Jp,
    The error message : Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
    This means that you javac compiler might not be installed or not in the classpath entry. You might want to compile the bpel project using the JDev and then deploy.
    Cheers
    A

Maybe you are looking for

  • Notification center crashes - the possible fix for me - remove Twitter.

    I recently updated to a new Mac, and the only issue I was having intially was Notification Center hanging and crashing the computer when I slid it over.   I don't know if others were having this problem, or just me; most of the threads I had seen abo

  • Binary File Type in Portal 3.0 Form

    Has anyone successfully created a form in 3.0.7 for inserting BLOBs as part of a table record? I recently observed that the form wizard now includes a binary file field option. WebDB did not support this. Does this feature allow the blob object to be

  • Displaying graphic on different systems on a smartform

    Hi I have a graphic that I want to display on our Development and Test system but not display it on our Production system.  I know I need to put a condition in the conditions tab of the graphic but I am unsure what variable to put there. any ideas?

  • Charging problems of iPhone 5

    My iPhone 5 drops at 10%, and I want to charge it. After charging it straight to 100%, I want to check email with my iPhone charged. I tried to swipe to unlock. However, I couldn't swipe smoothly, it's like the phone can't detect my fingers. Even if

  • Purchased music on itunes

    I am having a problem whenever I try to burn purchased music onto a cd my computer crashes. Also I cant seem to change the format.