problem with oxf:java processor : can't find com.sun.tools.javac.Main

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

problem with oxf:java processor : can't find com.sun.tools.javac.Main

f.blanc
I try to use the oxf:java processor but I recieve always the same error :

java.lang.ClassNotFoundException: com.sun.tools.javac.Main
org.apache.catalina.loader.WebappClassLoader: loadClass (1355)
org.apache.catalina.loader.WebappClassLoader: loadClass (1201)
java.lang.ClassLoader: loadClassInternal
java.lang.Class: forName0
java.lang.Class: forName
org.orbeon.oxf.processor.JavaProcessor: getProcessor (281)
org.orbeon.oxf.processor.JavaProcessor: start (96)
org.orbeon.oxf.processor.JavaProcessor$1: getInput (83)
org.orbeon.oxf.processor.JavaProcessor$1: readImpl (69)
org.orbeon.oxf.processor.ProcessorImpl$6: read (1012)

My classpath contain the tools.jar (containing the requested compiler)

Here is the fragment of code where I use the processor (same as the user guide). All seems to be correct...

<p:processor name="oxf:java" xmlns:p="http://www.orbeon.com/oxf/pipeline">
    <p:input name="config">
        <config sourcepath="./java" class="org.cgcis.XLSInsertion"/>
    </p:input>
    <p:input name="data" href="..."/>
    <p:output name="data" id="..."/>
</p:processor>


Do you see what is going wrong?

Thank you for your attention

Frederic



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: problem with oxf:java processor : can't find com.sun.tools.javac.Main

Erik Bruchez
Administrator
Frederic,

Are you using a JDK or a JRE? The JRE doesn't come with javac.

-Erik

[hidden email] wrote:

> I try to use the oxf:java processor but I recieve always the same error :
>
> java.lang.ClassNotFoundException: com.sun.tools.javac.Main
> org.apache.catalina.loader.WebappClassLoader: loadClass (1355)
> org.apache.catalina.loader.WebappClassLoader: loadClass (1201)
> java.lang.ClassLoader: loadClassInternal
> java.lang.Class: forName0
> java.lang.Class: forName
> org.orbeon.oxf.processor.JavaProcessor: getProcessor (281)
> org.orbeon.oxf.processor.JavaProcessor: start (96)
> org.orbeon.oxf.processor.JavaProcessor$1: getInput (83)
> org.orbeon.oxf.processor.JavaProcessor$1: readImpl (69)
> org.orbeon.oxf.processor.ProcessorImpl$6: read (1012)
>
> My classpath contain the tools.jar (containing the requested compiler)
>
> Here is the fragment of code where I use the processor (same as the user guide). All seems to be correct...
>
> <p:processor name="oxf:java" xmlns:p="http://www.orbeon.com/oxf/pipeline">
>     <p:input name="config">
>         <config sourcepath="./java" class="org.cgcis.XLSInsertion"/>
>     </p:input>
>     <p:input name="data" href="..."/>
>     <p:output name="data" id="..."/>
> </p:processor>
>
>
> Do you see what is going wrong?
>
> Thank you for your attention
>
> Frederic
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: problem with oxf:java processor : can't find com.sun.tools.javac.Main

Joseph Lawrence
In reply to this post by f.blanc
Frederic:
 check the default jre location. see if u r using the jre in JAVA_HOME\jdk1.5.0_08\jre and not JAVA_HOME\jre .
 
-Joseph Lawrence

[hidden email] wrote:
I try to use the oxf:java processor but I recieve always the same error :

java.lang.ClassNotFoundException: com.sun.tools.javac.Main
org.apache.catalina.loader.WebappClassLoader: loadClass (1355)
org.apache.catalina.loader.WebappClassLoader: loadClass (1201)
java.lang.ClassLoader: loadClassInternal
java.lang.Class: forName0
java.lang.Class: forName
org.orbeon.oxf.processor.JavaProcessor: getProcessor (281)
org.orbeon.oxf.processor.JavaProcessor: start (96)
org.orbeon.oxf.processor.JavaProcessor$1: getInput (83)
org.orbeon.oxf.processor.JavaProcessor$1: readImpl (69)
org.orbeon.oxf.processor.ProcessorImpl$6: read (1012)

My classpath contain the tools.jar (containing the requested compiler)

Here is the fragment of code where I use the processor (same as the user guide). All seems to be correct...










Do you see what is going wrong?

Thank you for your attention

Frederic


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

Reply | Threaded
Open this post in threaded view
|

Re: problem with oxf:java processor : can't find com.sun.tools.javac.Main

Mike Leary
In reply to this post by f.blanc
I had something similar with tomcat, which looks at your JAVA_HOME env
var when it starts.  My JAVA_HOME was pointed at a JRE rather than the
root of my JDK; fixing that fixed the problem.

On Fri, Jan 05, 2007 at 02:12:44PM +0100, [hidden email] wrote:
> I try to use the oxf:java processor but I recieve always the same error :
>
> java.lang.ClassNotFoundException: com.sun.tools.javac.Main

--



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws