You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Oliver Konz <ma...@OliverKonz.de> on 2007/03/28 16:54:56 UTC

Problems deploying Jetspeed 2.1 to Tomcat 5.5

Hi!

I'm trying to deploy Jetspeed 2.1 to Tomcat 5.5.23 with MySQL on Fedora
Core 6 (Sun Java 1.5.0_11).
Using the installer jar this works like a charm. But since I want to
build my own custom portal I'll have to use the maven build.

When I just type "mvn" all builds well, but when I try "mvn -P
tomcat,min" the fun starts...
The problem seems to be that variables do not get resolved. At first it
complained that it did not find my mysql driver. I fixed this by
supplying an absolute path in my ~/.m2/settings.xml.
But the next error is a bit trickier:

deploy-shared-components:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
/home/oli/jetspeed-2/app-servers/build.xml:93: The following error
occurred while executing this line:
/home/oli/jetspeed-2/app-servers/build.xml:149: The following error
occurred while executing this line:
/home/oli/jetspeed-2/app-servers/tomcat-build.xml:92: The following
error occurred while executing this line:
/home/oli/jetspeed-2/app-servers/tomcat-build.xml:299:
/home/oli/jetspeed-2/app-servers/${org.apache.jetspeed.server.home}/shared/lib
not found.

As you can see the ${org.apache.jetspeed.server.home} variable does not
get resolved. Any idea how I can fix this without changing the ant build
files?

Thanks for your time!

Regards,
Oliver



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Problems deploying Jetspeed 2.1 to Tomcat 5.5

Posted by Bob Song <da...@gmail.com>.
Hi, Oliver.
Recently I just met some strange problems with deploying web applications in Fedora. 
And finally I solved the problem by replacing all Fedora pre-installed Java and Tomcat with corresponding Sun and Apache official versions. 
I hope my experience will be helpful to you.
Bob Song
2007-03-29



发件人: Oliver Konz
发送时间: 2007-03-28 22:55:30
收件人: jetspeed-user@portals.apache.org
抄送: 
主题: Problems deploying Jetspeed 2.1 to Tomcat 5.5

Hi!

I'm trying to deploy Jetspeed 2.1 to Tomcat 5.5.23 with MySQL on Fedora
Core 6 (Sun Java 1.5.0_11).
Using the installer jar this works like a charm. But since I want to
build my own custom portal I'll have to use the maven build.

When I just type "mvn" all builds well, but when I try "mvn -P
tomcat,min" the fun starts...
The problem seems to be that variables do not get resolved. At first it
complained that it did not find my mysql driver. I fixed this by
supplying an absolute path in my ~/.m2/settings.xml.
But the next error is a bit trickier:

deploy-shared-components:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
/home/oli/jetspeed-2/app-servers/build.xml:93: The following error
occurred while executing this line:
/home/oli/jetspeed-2/app-servers/build.xml:149: The following error
occurred while executing this line:
/home/oli/jetspeed-2/app-servers/tomcat-build.xml:92: The following
error occurred while executing this line:
/home/oli/jetspeed-2/app-servers/tomcat-build.xml:299:
/home/oli/jetspeed-2/app-servers/${org.apache.jetspeed.server.home}/shared/lib
not found.

As you can see the ${org.apache.jetspeed.server.home} variable does not
get resolved. Any idea how I can fix this without changing the ant build
files?

Thanks for your time!

Regards,
Oliver



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org

Re: Problems deploying Jetspeed 2.1 to Tomcat 5.5

Posted by Scott Merrick <Sc...@digilore.com>.
Oliver,

Have you tried copying the rest of the parameters from the
settings.xml.sample file from the root of the distribution??

there should be a <org.apache.jetspeed.server.home> line in your profile

Scott Merrick

Oliver Konz wrote:
> Hi!
>
> I'm trying to deploy Jetspeed 2.1 to Tomcat 5.5.23 with MySQL on Fedora
> Core 6 (Sun Java 1.5.0_11).
> Using the installer jar this works like a charm. But since I want to
> build my own custom portal I'll have to use the maven build.
>
> When I just type "mvn" all builds well, but when I try "mvn -P
> tomcat,min" the fun starts...
> The problem seems to be that variables do not get resolved. At first it
> complained that it did not find my mysql driver. I fixed this by
> supplying an absolute path in my ~/.m2/settings.xml.
> But the next error is a bit trickier:
>
> deploy-shared-components:
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error executing ant tasks
>
> Embedded error: The following error occurred while executing this line:
> /home/oli/jetspeed-2/app-servers/build.xml:93: The following error
> occurred while executing this line:
> /home/oli/jetspeed-2/app-servers/build.xml:149: The following error
> occurred while executing this line:
> /home/oli/jetspeed-2/app-servers/tomcat-build.xml:92: The following
> error occurred while executing this line:
> /home/oli/jetspeed-2/app-servers/tomcat-build.xml:299:
> /home/oli/jetspeed-2/app-servers/${org.apache.jetspeed.server.home}/shared/lib
> not found.
>
> As you can see the ${org.apache.jetspeed.server.home} variable does not
> get resolved. Any idea how I can fix this without changing the ant build
> files?
>
> Thanks for your time!
>
> Regards,
> Oliver
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: Problems deploying Jetspeed 2.1 to Tomcat 5.5

Posted by "Timony, Michael" <Mi...@FMR.COM>.
>absolute path in my ~/.m2/settings.xml.

Did you set the <localRepository> in your settings.xml? If you did and
your repository is in the default location, ~/.m2/repository, I've found
that it cause issues with the variables not being read correctly.

Mick Timony

-----Original Message-----
From: Oliver Konz [mailto:mail@OliverKonz.de] 
Sent: Wednesday, March 28, 2007 10:55 AM
To: jetspeed-user@portals.apache.org
Subject: Problems deploying Jetspeed 2.1 to Tomcat 5.5

Hi!

I'm trying to deploy Jetspeed 2.1 to Tomcat 5.5.23 with MySQL on Fedora
Core 6 (Sun Java 1.5.0_11).
Using the installer jar this works like a charm. But since I want to
build my own custom portal I'll have to use the maven build.

When I just type "mvn" all builds well, but when I try "mvn -P
tomcat,min" the fun starts...
The problem seems to be that variables do not get resolved. At first it
complained that it did not find my mysql driver. I fixed this by
supplying an absolute path in my ~/.m2/settings.xml.
But the next error is a bit trickier:

deploy-shared-components:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
/home/oli/jetspeed-2/app-servers/build.xml:93: The following error
occurred while executing this line:
/home/oli/jetspeed-2/app-servers/build.xml:149: The following error
occurred while executing this line:
/home/oli/jetspeed-2/app-servers/tomcat-build.xml:92: The following
error occurred while executing this line:
/home/oli/jetspeed-2/app-servers/tomcat-build.xml:299:
/home/oli/jetspeed-2/app-servers/${org.apache.jetspeed.server.home}/shar
ed/lib
not found.

As you can see the ${org.apache.jetspeed.server.home} variable does not
get resolved. Any idea how I can fix this without changing the ant build
files?

Thanks for your time!

Regards,
Oliver



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org