>-----Original Message-----
>From: David Sean Taylor [mailto:[email protected]] 
>Sent: 18 May 2010 22:56
>To: Jetspeed Users List
>Subject: Re: Installing Jetspeed 2.2.1 into existing Tomcat
installation
>
>On Tue, May 18, 2010 at 1:22 PM, Havard, Nick <[email protected]>
wrote:
>> Hi
>>
>> How to install Jetspeed 2.2.1 into an existing tomcat installation?
The
>> installer seems to create its own tomcat container, however I already
>> have tomcat running on the same server.
>>
>First to get some background, if interested, you may want to read how
>Jetspeed runs in Tomcat:
>
>http://portals.apache.org/jetspeed-2/deployguide/guide-tomcat.html
>
>For evaluation, it might be easiest to:
>
>1. run the installer
>1. copy all webapps placed in $JETSPEED_TOMCAT/webapps/ into your
Tomcat i
>2. copy the shared libraries (found under $JETSPEED_TOMCAT/lib) and
>copy them into your Tomcat
>
>apa-logging-1.0.jar
>ccpp-1.0.jar
>jetspeed-api-2.2.1.jar
>jetspeed-commons-2.2.1.jar
>pluto-container-api-2.0.1.jar
>pluto-taglib-2.0.1.jar
>portals-bridges-common-2.0.jar
>portlet-api_2.0_spec-1.0.jar
>+ database driver
>
>3. copy any context files placed in
>$JETSPEED_TOMCAT/conf/Catalina/localhost to your Tomcat
>4. restart
>
>If you need to change or reseed the database, you can always re-run
>the database script with Ant found under the database directory of
>your installation. See docs at bottom of page here for more info:
>
>http://portals.apache.org/jetspeed-2/getting-started-installer.html
>
>Also, there is a more formal approach to building and deploying, with
>Maven-2 archetypes, designed for maintaining a jetspeed project in a
>developers build environment:
>
>http://portals.apache.org/jetspeed-2/buildguide/jetspeed-archetype.html


Hi David,

Thanks for your quick reponse. I went through the steps that you listed,
however when running the processes to create/populate new database using
the "ant" command I received the following errors. The SQL errors are
simply because existing objects don't exist and cannot be dropped. That
is fine. Then it creates the schema objects which is successful and I
can see those objects in the database; so the database connection is
successful.

However when "seeding" the database the mechanism fails. Any ideas why
this may be failing?

     [sql] Failed to execute:    DROP TABLE OJB_NRM CASCADE CONSTRAINTS
PURGE
      [sql] java.sql.SQLSyntaxErrorException: ORA-00942: table or view
does not exist
      [sql] Failed to execute:    DROP TABLE OJB_LOCKENTRY CASCADE
CONSTRAINTS PURGE
      [sql] java.sql.SQLSyntaxErrorException: ORA-00942: table or view
does not exist
      [sql] Failed to execute:    DROP TABLE OJB_HL_SEQ CASCADE
CONSTRAINTS PURGE
      [sql] java.sql.SQLSyntaxErrorException: ORA-00942: table or view
does not exist
      [sql] 0 of 96 SQL statements executed successfully
     [echo] Starting database generation
      [sql] Executing resource:
/data01/app/apache/Jetspeed-2.2.1/database/oracle10/create-schema.sql
      [sql] 207 of 207 SQL statements executed successfully
     [echo] Database generation done!

generateDerbyDB:

copyJetspeedContext:
     [copy] Copying 1 file to
/data01/app/apache/Jetspeed-2.2.1/conf/Catalina/localhost

filterSpringFilterKey:
   [delete] Deleting:
/data01/app/apache/Jetspeed-2.2.1/webapps/jetspeed/WEB-INF/conf/spring-f
ilter-key.properties

filterSpringFilterKey_db:

filterSpringFilterKey_file:
     [copy] Copying 1 file to
/data01/app/apache/Jetspeed-2.2.1/webapps/jetspeed/WEB-INF/conf

seedDB:
     [echo] Seeding the database
     [echo] Importing: ${_seedDataFile}
     [java] org.apache.jetspeed.serializer.SerializerException: Error
creating Reader for
/data01/app/apache/Jetspeed-2.2.1/database/resources/${_seedDataFile} :
null
     [java]     at
org.apache.jetspeed.serializer.JetspeedSerializerImpl.readSnapshot(Jetsp
eedSerializerImpl.java:287)
     [java]     at
org.apache.jetspeed.serializer.JetspeedSerializerImpl.importData(Jetspee
dSerializerImpl.java:132)
     [java]     at
org.apache.jetspeed.tools.db.serializer.JetspeedSerializerApplicationImp
l.importFiles(JetspeedSerializerApplicationImpl.java:197)
     [java]     at
org.apache.jetspeed.tools.db.serializer.JetspeedSerializerApplicationImp
l.main(JetspeedSerializerApplicationImpl.java:120)
     [java] Exception in thread "main"
org.apache.jetspeed.serializer.SerializerException: Error creating
Reader for
/data01/app/apache/Jetspeed-2.2.1/database/resources/${_seedDataFile} :
null
     [java]     at
org.apache.jetspeed.serializer.JetspeedSerializerImpl.readSnapshot(Jetsp
eedSerializerImpl.java:287)
     [java]     at
org.apache.jetspeed.serializer.JetspeedSerializerImpl.importData(Jetspee
dSerializerImpl.java:132)
     [java]     at
org.apache.jetspeed.tools.db.serializer.JetspeedSerializerApplicationImp
l.importFiles(JetspeedSerializerApplicationImpl.java:197)
     [java]     at
org.apache.jetspeed.tools.db.serializer.JetspeedSerializerApplicationImp
l.main(JetspeedSerializerApplicationImpl.java:120)

BUILD FAILED
/data01/app/apache/Jetspeed-2.2.1/database/build.xml:98: The following
error occurred while executing this line:
/data01/app/apache/Jetspeed-2.2.1/database/build.xml:215: The following
error occurred while executing this line:
/data01/app/apache/Jetspeed-2.2.1/database/build.xml:335: Java returned:
1

Total time: 34 seconds



Nick.

This message contains information which may be confidential and/or privileged. 
Unless you are the intended recipient (or authorized to receive for the 
intended recipient), you may not read, use, copy or disclose to anyone the 
message or any information contained in the message. If you have received the 
message in error, please advise the sender by reply e-mail and delete the 
message and any attachment(s) thereto without retaining any copies.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to