You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by so...@apache.org on 2008/02/02 05:28:24 UTC

Attempting to Install Cocoon-2.2

I want to try Cocoon-2.2.  The only install instructions I found are at:
http://cocoon.apache.org/2.2/1159_1_1.html

Installed Maven; works after some fixing the batch files  The install
line from "Creating a block" in the above page errors (with -e):

[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'org.apache.cocoon': you must specify a valid lifecycle phas
e, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginV
ersion:goal
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Invalid task
'org.apache.cocoon': you must specify a valid lifecycle phase, or a
goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

> mvn --version
Maven version: 2.0.8
Java version: 1.6.0_03
OS name: "windows 98" version: "4.10" arch: "x86" Family: "win9x"

Do the instructions work for other people?  Did I miss something?

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Attempting to Install Cocoon-2.2

Posted by so...@apache.org.
On 2/2/08, Grzegorz Kossakowski <gr...@tuffmail.com> wrote:
> solprovider@apache.org pisze:
> > Three sources(two from web page and your post) -> same results.
>  > Should I assume Maven is broken?
>
> Yep, your installation of Maven must be broken. You mentioned that you needed to fix some batch
>  files which is something new to me. I successfully installed Maven on both Windows and Linux
>  _without_ any additional hacking. I guess your modifications to batch files broke Maven.
>
>  Can you explain in detail what you modifications you applied?
>
> Grzegorz

FILE: mvn.bat
== Fix "Bad command or filename"
REM if "%HOME%" == "" (set HOME=%HOMEDRIVE%%HOMEPATH%)
SET HOME=C:\apache\maven-2.0.8

== Fix "Exception in thread "main" java.lang.NoClassDefFoundError:
org/codehaus/classworlds/Launcher"
:runm2
SET CLASSWORLDS_JAR=C:\apache\maven-2.0.8\boot\classworlds-1.1.jar

== Fix "Invalid switch"
REM exit /B %ERROR_CODE%

These modifications just hardcoded some paths and could not have
broken anything.  I repeated the process on a second PC with the same
results.  Other paths may need to be hardcoded.

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Attempting to Install Cocoon-2.2

Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
solprovider@apache.org pisze:
> Three sources(two from web page and your post) -> same results.
> Should I assume Maven is broken?

Yep, your installation of Maven must be broken. You mentioned that you needed to fix some batch
files which is something new to me. I successfully installed Maven on both Windows and Linux
_without_ any additional hacking. I guess your modifications to batch files broke Maven.

Can you explain in detail what you modifications you applied?

-- 
Grzegorz

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Attempting to Install Cocoon-2.2

Posted by so...@apache.org.
On Sat, Feb 2, 2008 at 4:18 AM, Grzegorz Kossakowski
<gk...@apache.org> wrote:
> solprovider@apache.org pisze:
> > I want to try Cocoon-2.2.  The only install instructions I found are at:
>  > http://cocoon.apache.org/2.2/1159_1_1.html
>  >
>  > Installed Maven; works after some fixing the batch files  The install
>  > line from "Creating a block" in the above page errors (with -e):
>  >
>  > [INFO] Searching repository for plugin with prefix: 'archetype'.
>  > [INFO] ------------------------------------------------------------------------
>  > [ERROR] BUILD FAILURE
>  > [INFO] ------------------------------------------------------------------------
>  > [INFO] Invalid task 'org.apache.cocoon': you must specify a valid lifecycle phas
>  > e, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginV
>  > ersion:goal
>  > [INFO] ------------------------------------------------------------------------
>  > [INFO] Trace
>  > org.apache.maven.BuildFailureException: Invalid task
>  > 'org.apache.cocoon': you must specify a valid lifecycle phase, or a
>  > goal in the format plugin:goal or
>  > pluginGroupId:pluginArtifactId:pluginVersion:goal
>  >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515)
>  >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
>  >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
>  >         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>  >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>  >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>  >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  >         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>  >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>  >         at java.lang.reflect.Method.invoke(Unknown Source)
>  >         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>  >         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>  >         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>  >         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>  >
>  >> mvn --version
>  > Maven version: 2.0.8
>  > Java version: 1.6.0_03
>  > OS name: "windows 98" version: "4.10" arch: "x86" Family: "win9x"
>  >
>  > Do the instructions work for other people?  Did I miss something?
>
>  I believe it's a typo in the command you ran. Could you paste it or try this one:
>  mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
>  -DarchetypeArtifactId=cocoon-22-archetype-block -DarchetypeVersion=1.0.0-RC2 -DgroupId=com.mycompany
>  -DartifactId=myBlock1
>
>  (everything without line breaks!)
>  Grzegorz Kossakowski

Three sources(two from web page and your post) -> same results.
Should I assume Maven is broken?

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Attempting to Install Cocoon-2.2

Posted by Grzegorz Kossakowski <gk...@apache.org>.
solprovider@apache.org pisze:
> I want to try Cocoon-2.2.  The only install instructions I found are at:
> http://cocoon.apache.org/2.2/1159_1_1.html
> 
> Installed Maven; works after some fixing the batch files  The install
> line from "Creating a block" in the above page errors (with -e):
> 
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Invalid task 'org.apache.cocoon': you must specify a valid lifecycle phas
> e, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginV
> ersion:goal
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Invalid task
> 'org.apache.cocoon': you must specify a valid lifecycle phase, or a
> goal in the format plugin:goal or
> pluginGroupId:pluginArtifactId:pluginVersion:goal
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> 
>> mvn --version
> Maven version: 2.0.8
> Java version: 1.6.0_03
> OS name: "windows 98" version: "4.10" arch: "x86" Family: "win9x"
> 
> Do the instructions work for other people?  Did I miss something?

I believe it's a typo in the command you ran. Could you paste it or try this one:
mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
-DarchetypeArtifactId=cocoon-22-archetype-block -DarchetypeVersion=1.0.0-RC2 -DgroupId=com.mycompany
-DartifactId=myBlock1

(everything without line breaks!)

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Attempting to Install Cocoon-2.2

Posted by Tobia Conforto <to...@linux.it>.
solprovider@apache.org wrote:
> FILE: mvn.bat
> == Fix "Bad command or filename"
> REM if "%HOME%" == "" (set HOME=%HOMEDRIVE%%HOMEPATH%)
> SET HOME=C:\apache\maven-2.0.8
>
> == Fix "Invalid switch"
> REM exit /B %ERROR_CODE%

I haven't used Windows much (fortunately) but I have the feeling this  
script was written for NT's cmd.exe instead of 98's command.com.  In  
any case it seems to be an installation and configuration issue.  As  
you pointed out, Maven is pure Java and should work fine once properly  
installed.


> I am teaching HTML, CSS, and XSL (=Cocoon) to people using Win98  
> PCs.  If Maven2 will not run on Win98, neither will Cocoon-2.2.   
> I'll use Cocoon-2.1 for the class.

I'm sure I've seen people mention on this mailing list that Maven is  
by no means necessary to compile, install, or use Cocoon 2.2.  It's  
merely a convenience.


Tobia

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Attempting to Install Cocoon-2.2

Posted by so...@apache.org.
On 2/4/08, Ralph Goers <Ra...@dslextreme.com> wrote:
> First, this is just my opinion. Although I have Windows XP and use it
>  all the time, I despise using it for anything other than windows
>  specific applications. I use VMWare on Windows so I can develop in
>  Ubuntu on my Windows laptops.  I have had too many weird things happen
>  in Windows to use it anymore for development or testing work. I used
>  cygwin for quite a while and it helps about 95% of the time, but the
>  other 5% sucks. Now having gotten that off my chest I will say that we
>  will support Windows XP because we can run and test there.
>
>  Second, as this link,
>  http://www.microsoft.com/windows/support/endofsupport.mspx, points
>  out,Windows 98 hasn't been supported by MS for over a year and a half.
>  You can hardly expect open source developers to test or support that
>  system, especially since you'd be hard pressed to find a commercial
>  company any more that does.  We can only test on the hardware and
>  operating systems we have.
>  Ralph

[Hoping to prevent a discussion about OSes]
My opinion is people should use a real OS (Linux or BSD.)  If stuck
using Microsoft, use Windows 2003 R2 or Windows 98 SE.  Windows 2003
licenses are only available in blocks of five so buy in bulk -- $80
each at 20 licenses.

Professionally, I work mostly with the largest companies.  They still
insist on Windows (usually 2000 or XP) for the desktop (and Word and
PowerPoint, which are even more painful.)

I have not been successful in efforts to convert friends and family
away from Windows.  XP was an abortion -- still requiring monthly
patches after 7 years. Vista is another abortion -- every user
complains.  I refused to allow XP or Vista on PCs that I support.
Microsoft EOL'd Windows 98 because Windows 98 was still a major
competitor to XP.   Windows 98 is limited to 512 MB (actually ~700
MB).  A Windows 98 PC with a 512 MB RAM and a 2-3 Ghz CPU is very
fast.  When these PCs need replacement, I will either force migration
to a real OS, use Windows 2003 with at least 2 GB RAM, or maybe Apple.
 I am not worrying about the next generation yet because nobody using
Windows 98 has any complaints.  (I am waiting until someone notices
that no iTunes client is available for Windows 98.)

I am teaching several of these Windows 98 users about Web development.
 Cocoon is my preferred platform.  We can use Cocoon-2.1, but I hoped
Cocoon-2.2 would work.

I am very grateful for the assistance provided by this ML.  I am not
expecting open source developers to support Windows 98; I can work
around or fix any issues.  I was surprised that Eclipse 3 added the XP
bug -- "transparent text" is invisible on Windows 98, seems to add no
value to Eclipse, and is difficult to disable.  Cocoon and Maven are
Java and should have no issues with Windows 98, yet Maven 2 refuses to
work.  I have proven (to myself) that the issue is Maven 2 rather than
Cocoon.  I am diving into the Maven source and hope to fix it.  That
conversation will be on the Maven MLs.

Thank you,
solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Attempting to Install Cocoon-2.2

Posted by Ralph Goers <Ra...@dslextreme.com>.
First, this is just my opinion. Although I have Windows XP and use it 
all the time, I despise using it for anything other than windows 
specific applications. I use VMWare on Windows so I can develop in 
Ubuntu on my Windows laptops.  I have had too many weird things happen 
in Windows to use it anymore for development or testing work. I used 
cygwin for quite a while and it helps about 95% of the time, but the 
other 5% sucks. Now having gotten that off my chest I will say that we 
will support Windows XP because we can run and test there.

Second, as this link, 
http://www.microsoft.com/windows/support/endofsupport.mspx, points 
out,Windows 98 hasn't been supported by MS for over a year and a half. 
You can hardly expect open source developers to test or support that 
system, especially since you'd be hard pressed to find a commercial 
company any more that does.  We can only test on the hardware and 
operating systems we have.

Ralph



Grzegorz Kossakowski wrote:
> solprovider@apache.org pisze:
>   
>> I am teaching HTML, CSS, and XSL (=Cocoon) to people using Win98 PCs.
>> If Maven2 will not run on Win98, neither will Cocoon-2.2.  I'll use
>> Cocoon-2.1 for the class.
>>     
>
> Teaching Cocoon 2.2 is a much better idea since it's far more lightweight and has nice plugin for
> RAD development which is probably a big advantage for people learning (and making mistakes).
>
> It's maybe a good idea to get back on making working under Win98. I have no idea about Maven
> internals but since it's purely Java-based project it should work. I cannot help you with Maven
> hacking because I simply do not have access to Win98...
>
>   
>> I'll start a new thread about attempting to run Cocoon-2.2 on Win2003
>> for a different project.  I know Cocoon-2.2 is still just a release
>> candidate, but a release cacndidate should at least install and run.
>>     
>
> Since Win2003 is NT-based system Maven should work on it out of the box (I believe).
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Attempting to Install Cocoon-2.2

Posted by Grzegorz Kossakowski <gk...@apache.org>.
solprovider@apache.org pisze:
> I am teaching HTML, CSS, and XSL (=Cocoon) to people using Win98 PCs.
> If Maven2 will not run on Win98, neither will Cocoon-2.2.  I'll use
> Cocoon-2.1 for the class.

Teaching Cocoon 2.2 is a much better idea since it's far more lightweight and has nice plugin for
RAD development which is probably a big advantage for people learning (and making mistakes).

It's maybe a good idea to get back on making working under Win98. I have no idea about Maven
internals but since it's purely Java-based project it should work. I cannot help you with Maven
hacking because I simply do not have access to Win98...

> I'll start a new thread about attempting to run Cocoon-2.2 on Win2003
> for a different project.  I know Cocoon-2.2 is still just a release
> candidate, but a release cacndidate should at least install and run.

Since Win2003 is NT-based system Maven should work on it out of the box (I believe).

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Attempting to Install Cocoon-2.2

Posted by so...@apache.org.
On 2/3/08, Grzegorz Kossakowski <gk...@apache.org> wrote:
> Jason Johnston pisze:
> >>> mvn --version
>  >> Maven version: 2.0.8
>  >> Java version: 1.6.0_03
>  >> OS name: "windows 98" version: "4.10" arch: "x86" Family: "win9x"
>  >
>  > I see you're using Windows 98.  From the maven download/installation
>  > instructions page:
>  > "Operating System ... No minimum requirement. On Windows, Windows NT and
>  > above or Cygwin is required for the startup scripts. Tested on Windows
>  > XP, Fedora Core and Mac OS X."
>  >
>  > It sounds to me like the mvn.bat startup script is not supported on
>  > Win98, unless you use Cygwin.
> Good catch Jason.
>
>  Certainly, it's more Maven-specific issue than Cocoon-issue so it's probably better to ask on Maven
>  user's mailing list. However, I guess when they say Win98 is not supported it simply means Maven
>  will break here on there and it's better to use other OS.
>  Grzegorz Kossakowski

I am teaching HTML, CSS, and XSL (=Cocoon) to people using Win98 PCs.
If Maven2 will not run on Win98, neither will Cocoon-2.2.  I'll use
Cocoon-2.1 for the class.

I'll start a new thread about attempting to run Cocoon-2.2 on Win2003
for a different project.  I know Cocoon-2.2 is still just a release
candidate, but a release cacndidate should at least install and run.

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Attempting to Install Cocoon-2.2

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Jason Johnston pisze:
>>> mvn --version
>>
>> Maven version: 2.0.8
>> Java version: 1.6.0_03
>> OS name: "windows 98" version: "4.10" arch: "x86" Family: "win9x"
> 
> I see you're using Windows 98.  From the maven download/installation
> instructions page:
> 
> "Operating System ... No minimum requirement. On Windows, Windows NT and
> above or Cygwin is required for the startup scripts. Tested on Windows
> XP, Fedora Core and Mac OS X."
> 
> It sounds to me like the mvn.bat startup script is not supported on
> Win98, unless you use Cygwin.

Good catch Jason.

Certainly, it's more Maven-specific issue than Cocoon-issue so it's probably better to ask on Maven
user's mailing list. However, I guess when they say Win98 is not supported it simply means Maven
will break here on there and it's better to use other OS.

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Attempting to Install Cocoon-2.2

Posted by Jason Johnston <jj...@apache.org>.
>>mvn --version
> 
> Maven version: 2.0.8
> Java version: 1.6.0_03
> OS name: "windows 98" version: "4.10" arch: "x86" Family: "win9x"

I see you're using Windows 98.  From the maven download/installation 
instructions page:

"Operating System ... No minimum requirement. On Windows, Windows NT and 
above or Cygwin is required for the startup scripts. Tested on Windows 
XP, Fedora Core and Mac OS X."

It sounds to me like the mvn.bat startup script is not supported on 
Win98, unless you use Cygwin.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org