portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikko Wuokko <mikko.wuo...@evtek.fi>
Subject Exception when populating the database with Maven2
Date Mon, 15 Jan 2007 13:17:15 GMT
Hi.

I encountered this exception (see also the longer log below)

      [java] java.lang.IllegalArgumentException: Resource path 
[/home/slim/workspace_portal/jetspeed-apache-trunk/etc/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/assembly/boot]

does not denote a directory

I tried to figure it out why this is happening, but couldn't get it 
sorted by myself. It starts from JetspeedSerializerApplication call on

maven-archetypes/portal/src/archetype/archetype-resources/etc/build.xml:530

and must be somehow related to the sent parameters or their handling. 
Can you figure out anything else from it?

I use MySQL and was building with Maven2 from the latest trunk version.

Thanks,

Mikko

....

sql-execute-derby:

sql-execute-hsql:

sql-execute:

sql-test-database-classpath:

sql-execute-drivers-path:
       [sql] Executing file: 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/sql/mysql/schema/phase1-schema.sql
       [sql] Executing file: 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/sql/mysql/schema/phase2-schema.sql
       [sql] Executing file: 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/sql/mysql/schema/phase3ojb-schema.sql
       [sql] Executing file: 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/sql/mysql/schema/prefs-schema.sql
       [sql] Executing file: 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/sql/mysql/schema/registry-schema.sql
       [sql] Executing file: 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/sql/mysql/schema/security-schema.sql
       [sql] 166 of 166 SQL statements executed successfully

sql-execute-derby:

sql-execute-hsql:

sql-execute:
      [echo] END CREATE-DB

test-populate-skip:

populate-db:
      [echo] START-POPULATE-DB

populate-seed-data:
      [echo] called seed data with directory 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc
     [mkdir] Created dir: 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed
     [mkdir] Created dir: 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/data
      [copy] Copying 1 file to 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/data
      [copy] Copying 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/sql/j2-seed.xml to 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/data/j2-seed.xml
     [mkdir] Created dir: 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/classes
      [copy] Copying 7 files to 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/classes
     [mkdir] Created dir: 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/assembly
      [echo] Running Jetspeed Seed Importer with -b 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/assembly//boot/ 
-c 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/assembly// 

      [copy] Copying 11 files to 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/assembly
     [mkdir] Created dir: 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/assembly/boot
      [copy] Copying 1 file to 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/assembly/boot
      [echo] calling serializer with data in 
/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/data , 
assembly and b 
oot:/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/assembly// 
database:-dc com.mysql.jdbc.Driver -ds 
jdbc:mysql://localhost/j2?useServerPrepStmts=false -du root -dp root
      [java] starter framework created 
org.apache.jetspeed.components.jndi.SpringJNDIStarter@ef22f8
      [java]  INFO: 
org.apache.jetspeed.components.jndi.TyrexJNDIComponent - JNDI 
successfully initiallized
      [java]  INFO: 
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent - 
Setting up data source pooling for com.mysql.jdbc.Driver
      [java]  INFO: 
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent - Max 
active connnections set to: 20
      [java]  INFO: 
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent - Pool 
is set to "2" when all connections are exhausted.
      [java]  INFO: 
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent - 
Attempting to start DBCPCDatasourceComponent.
      [java]  INFO: 
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent - 
DBCPCDatasourceComponent successfuly started!
      [java] DEBUG: 
org.apache.jetspeed.components.jndi.TyrexJNDIComponent - Binding 
org.apache.commons.dbcp.PoolingDataSource@929206 to name 
comp/env/jdbc/jetspeed
      [java] DEBUG: 
org.apache.jetspeed.components.jndi.TyrexJNDIComponent - Binding 
org.apache.commons.dbcp.PoolingDataSource@929206 to name jdbc/jetspeed
      [java] java.lang.IllegalArgumentException: Resource path 
[/home/slim/workspace_portal/jetspeed-apache-trunk/etc/home/slim/workspace_portal/jetspeed-apache-trunk/etc/target/seed/assembly/boot]

does not denote a directory
      [java] 	at 
org.springframework.core.io.support.PathMatchingResourcePatternResolver.retrieveMatchingFiles(PathMatchingResourcePatternResolver.java:489)
      [java] 	at 
org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindMatchingFileSystemResources(PathMatchingResourcePatternResolver.java:469)
      [java] 	at 
org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindPathMatchingFileResources(PathMatchingResourcePatternResolver.java:452)
      [java] 	at 
org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:321)
      [java] 	at 
org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:255)
      [java] 	at 
org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:768)
      [java] 	at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
      [java] 	at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:168)
      [java] 	at 
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
      [java] 	at 
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)
      [java] 	at 
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
      [java] 	at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294)
      [java] 	at 
org.apache.jetspeed.components.SpringComponentManager.<init>(SpringComponentManager.java:109)
      [java] 	at 
org.apache.jetspeed.components.jndi.SpringJNDIStarter.setUp(SpringJNDIStarter.java:90)
      [java] 	at 
org.apache.jetspeed.serializer.JetspeedSerializerApplication.main(JetspeedSerializerApplication.java:340)
      [echo] END POPULATE-DB
[INFO] Executed tasks
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Jetspeed-2 Components
[INFO]    task-segment: [install]
[INFO] 
----------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing 
/home/slim/workspace_portal/jetspeed-apache-trunk/components/pom.xml to 
/home/slim/.m2/repository/org/apache/portals/jetspeed-2/components/2.1-dev/components-2.1-dev.pom
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Jetspeed-2 Component Manager
[INFO]    task-segment: [install]
[INFO] 
----------------------------------------------------------------------------

.....

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


Mime
View raw message