You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Jeremy Quinn <je...@media.demon.co.uk> on 2001/07/09 12:47:56 UTC
C2 - cannot compile
Dear All,
Last week I was able to compile Cocoon 2 from CVS, this week I cannot.
I am using MacOS X, which uses JVM version 1.3.0.
At the command line I type:
./build.sh -Dinclude.webapp.lib=yes webapp
and I get this:
Apache Cocoon 2 Build System
----------------------------
Unrecognized option: -classic
Could not create the Java virtual machine.
If I type just 'ant' at the CL, the JVM starts up OK, (it does not compile
because Xerces is not in the classpath).
Any clue anyone?
thanks
regards Jeremy
--
___________________________________________________________________
Jeremy Quinn Karma Divers
webSpace Design
HyperMedia Research Centre
<ma...@mac.com> <http://www.media.demon.co.uk>
<phone:+44.[0].20.7737.6831> <pa...@sms.genie.co.uk>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: [PATCH] Re: C2 - cannot compile
Posted by Vadim Gritsenko <vg...@hns.com>.
Stuart, other Mac OS X users,
patch is checked in, please check.
Thanks,
Vadim
> -----Original Message-----
> From: Stuart Roebuck [mailto:stuart.roebuck@adolos.co.uk]
> Sent: Tuesday, July 10, 2001 13:37
> To: cocoon-dev@xml.apache.org
> Cc: vgritsenko@hns.com; jeremy@media.demon.co.uk
> Subject: [PATCH] Re: C2 - cannot compile
>
>
>
> On Tuesday, July 10, 2001, at 02:55 pm, Jeremy Quinn wrote:
>
> > At 9:28 AM -0400 9/7/01, Vadim Gritsenko wrote:
> >> Can we add check for MacOS X to ant script, so other people don't have
> >> similar problem?
> >
> > That would be a nice idea.
> >
> > The problem may be about to go away, though I am not sure. Apple have just
> > released a Developer Preview of Java 1.3.1 for MacOS X, maybe it has this
> > switch.
> >
> The switch doesn't appear to be there at the moment...
>
> > Meanwhile, if you want to apply the patch to bin/ant there is an
> > environment variable in MacOS X, $OSTYPE=macos.
>
> Can I suggest the following patch to bin/ant for Mac OS X at the moment
> (replacing last line):
>
> if [ $( expr $OSTYPE : '^[dD]arwin.*' ) > 0 ]; then
> $JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}"
> $ANT_OPTS org.apache.tools.ant.Main "$@"
> else
> $JAVACMD -classic -classpath "$LOCALCLASSPATH"
> -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@"
> fi
>
> On Mac OS X 10.0.4 the value of OSTYPE in the /bin/sh shell appears to be
> "darwin1.0", but it is "Darwin1.3" in Bash and "macos" in csh and tcsh!
>
> Stuart.
>
>
> -------------------------------------------------------------------------
> Stuart Roebuck stuart.roebuck@adolos.com
> Lead Developer Java, XML, MacOS X, XP, etc.
> ADOLOS <http://www.adolos.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
[PATCH] Re: C2 - cannot compile
Posted by Stuart Roebuck <st...@adolos.co.uk>.
On Tuesday, July 10, 2001, at 02:55 pm, Jeremy Quinn wrote:
> At 9:28 AM -0400 9/7/01, Vadim Gritsenko wrote:
>> Can we add check for MacOS X to ant script, so other people don't have
>> similar problem?
>
> That would be a nice idea.
>
> The problem may be about to go away, though I am not sure. Apple have just
> released a Developer Preview of Java 1.3.1 for MacOS X, maybe it has this
> switch.
>
The switch doesn't appear to be there at the moment...
> Meanwhile, if you want to apply the patch to bin/ant there is an
> environment variable in MacOS X, $OSTYPE=macos.
Can I suggest the following patch to bin/ant for Mac OS X at the moment
(replacing last line):
if [ $( expr $OSTYPE : '^[dD]arwin.*' ) > 0 ]; then
$JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}"
$ANT_OPTS org.apache.tools.ant.Main "$@"
else
$JAVACMD -classic -classpath "$LOCALCLASSPATH"
-Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@"
fi
On Mac OS X 10.0.4 the value of OSTYPE in the /bin/sh shell appears to be
"darwin1.0", but it is "Darwin1.3" in Bash and "macos" in csh and tcsh!
Stuart.
-------------------------------------------------------------------------
Stuart Roebuck stuart.roebuck@adolos.com
Lead Developer Java, XML, MacOS X, XP, etc.
ADOLOS <http://www.adolos.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: C2 - cannot compile
Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 9:28 AM -0400 9/7/01, Vadim Gritsenko wrote:
>Can we add check for MacOS X to ant script, so other people don't have
>similar problem?
That would be a nice idea.
The problem may be about to go away, though I am not sure. Apple have just
released a Developer Preview of Java 1.3.1 for MacOS X, maybe it has this
switch.
Meanwhile, if you want to apply the patch to bin/ant there is an
environment variable in MacOS X, $OSTYPE=macos.
Hope this helps
regards Jeremy
--
___________________________________________________________________
Jeremy Quinn Karma Divers
webSpace Design
HyperMedia Research Centre
<ma...@mac.com> <http://www.media.demon.co.uk>
<phone:+44.[0].20.7737.6831> <pa...@sms.genie.co.uk>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: C2 - cannot compile
Posted by Vadim Gritsenko <vg...@hns.com>.
Jeremy,
Can we add check for MacOS X to ant script, so other people don't have similar problem?
Vadim
> -----Original Message-----
> From: Jeremy Quinn [mailto:jeremy@media.demon.co.uk]
> Sent: Monday, July 09, 2001 9:03
> To: cocoon-dev@xml.apache.org
> Subject: Re: C2 - cannot compile
>
>
> At 2:21 PM +0200 9/7/01, Marcus Crafter wrote:
> >On Mon, 9 Jul 2001, Jeremy Quinn wrote:
> >
> >> At 12:58 PM +0200 9/7/01, Marcus Crafter wrote:
> >> >
> >> > -classic was added so that people could build cocoon2 under linux
> >> > using jdk1.3.1. Without it, linux folks get a segfault. Apparently its
> >> > a known java issue.
> >> >
> >> > hmm... does it build if you remove the -classic option ?
> >> >
> >>
> >> where do I remove the -classic option from?
> >
> > sorry.. should have been a bit more informative! :-)
> >
> > In the file bin/ant on the last line. Change it from
>
>
> Thanks, that did the trick!!
>
> regards Jeremy
> --
> ___________________________________________________________________
>
> Jeremy Quinn Karma Divers
> webSpace Design
> HyperMedia Research Centre
>
> <ma...@mac.com> <http://www.media.demon.co.uk>
> <phone:+44.[0].20.7737.6831> <pa...@sms.genie.co.uk>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: C2 - cannot compile
Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 2:21 PM +0200 9/7/01, Marcus Crafter wrote:
>On Mon, 9 Jul 2001, Jeremy Quinn wrote:
>
>> At 12:58 PM +0200 9/7/01, Marcus Crafter wrote:
>> >
>> > -classic was added so that people could build cocoon2 under linux
>> > using jdk1.3.1. Without it, linux folks get a segfault. Apparently its
>> > a known java issue.
>> >
>> > hmm... does it build if you remove the -classic option ?
>> >
>>
>> where do I remove the -classic option from?
>
> sorry.. should have been a bit more informative! :-)
>
> In the file bin/ant on the last line. Change it from
Thanks, that did the trick!!
regards Jeremy
--
___________________________________________________________________
Jeremy Quinn Karma Divers
webSpace Design
HyperMedia Research Centre
<ma...@mac.com> <http://www.media.demon.co.uk>
<phone:+44.[0].20.7737.6831> <pa...@sms.genie.co.uk>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
[C2] Why do I need a compiler in WEB-INF/lib?
Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
Hi, Cocooners!
As I remeber, there was no need to have javac.jar in WEB-INF/lib to run C2.
I have set up system classpath with tools.jar and that was quite enough for
Cocoon. But now it refuses to run, because "No compiler found in your
classpath. Make sure you added 'tools.jar'".
My configuration is:
Tomcat 3.3-dev (didn't update since February)
Cocoon 2.1-dev (about a week old update)
Sun JDK 1.3
Win NT 4.0
Maybe somebody knows what, when and why has been changed in C2 that it
doesn't use the system classpath?
Best regards,
Konstantin Piroumian
Software engineer
Protek Flagship LLC
Phone: + 7 095 795 0520 (add. 1288)
Fax: + 7 095 795 0525
E-mail: kpiroumian@flagship.ru
http://www.protek.com
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: C2 - cannot compile
Posted by Marcus Crafter <cr...@fztig938.bank.dresdner.net>.
On Mon, 9 Jul 2001, Jeremy Quinn wrote:
> At 12:58 PM +0200 9/7/01, Marcus Crafter wrote:
> >
> > -classic was added so that people could build cocoon2 under linux
> > using jdk1.3.1. Without it, linux folks get a segfault. Apparently its
> > a known java issue.
> >
> > hmm... does it build if you remove the -classic option ?
> >
>
> where do I remove the -classic option from?
sorry.. should have been a bit more informative! :-)
In the file bin/ant on the last line. Change it from
$JAVACMD -classic -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@"
to
$JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@"
Cheers,
Marcus
--
.....
,,$$$$$$$$$, Marcus Crafter
;$' '$$$$: Computer Systems Engineer
$: $$$$: Open Software Associates GmbH
$ o_)$$$: 82-84 Mainzer Landstrasse
;$, _/\ &&:' 60327 Frankfurt Germany
' /( &&&
\_&&&&' Email : Marcus.Crafter@osa.de
&&&&. Business Hours : +49 69 9757 200
&&&&&&&: After Hours : +49 69 49086750
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: C2 - cannot compile
Posted by Torsten Curdt <tc...@dff.st>.
> >
> > -classic was added so that people could build cocoon2 under linux
> > using jdk1.3.1. Without it, linux folks get a segfault. Apparently its
> > a known java issue.
> >
> > hmm... does it build if you remove the -classic option ?
> >
>
> where do I remove the -classic option from?
>
Have a look into the build.xml. There is a property "build.compiler".
Don't know if you can just remove it... give it a try ;)
--
Torsten
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: C2 - cannot compile
Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 12:58 PM +0200 9/7/01, Marcus Crafter wrote:
>
> -classic was added so that people could build cocoon2 under linux
> using jdk1.3.1. Without it, linux folks get a segfault. Apparently its
> a known java issue.
>
> hmm... does it build if you remove the -classic option ?
>
where do I remove the -classic option from?
thanks
regards Jeremy
--
___________________________________________________________________
Jeremy Quinn Karma Divers
webSpace Design
HyperMedia Research Centre
<ma...@mac.com> <http://www.media.demon.co.uk>
<phone:+44.[0].20.7737.6831> <pa...@sms.genie.co.uk>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: C2 - cannot compile
Posted by Marcus Crafter <cr...@fztig938.bank.dresdner.net>.
Hi Jeremy,
On Mon, 9 Jul 2001, Jeremy Quinn wrote:
> Last week I was able to compile Cocoon 2 from CVS, this week I cannot.
>
> I am using MacOS X, which uses JVM version 1.3.0.
>
> At the command line I type:
>
> ./build.sh -Dinclude.webapp.lib=yes webapp
>
> and I get this:
>
> Apache Cocoon 2 Build System
> ----------------------------
> Unrecognized option: -classic
> Could not create the Java virtual machine.
-classic was added so that people could build cocoon2 under linux
using jdk1.3.1. Without it, linux folks get a segfault. Apparently its
a known java issue.
hmm... does it build if you remove the -classic option ?
Cheers,
Marcus
--
.....
,,$$$$$$$$$, Marcus Crafter
;$' '$$$$: Computer Systems Engineer
$: $$$$: Open Software Associates GmbH
$ o_)$$$: 82-84 Mainzer Landstrasse
;$, _/\ &&:' 60327 Frankfurt Germany
' /( &&&
\_&&&&' Email : Marcus.Crafter@osa.de
&&&&. Business Hours : +49 69 9757 200
&&&&&&&: After Hours : +49 69 49086750
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org