I'm doing the psml importer, from the file system to a database. I've changed things here so that I can run this from the deployed webapps folder, rather than the jetspeed source tree, since my deploy process builds stuff there.
It almost works. It finds all my psml files and tries to add them to the database, but for each one gets this error (from jetspeed.log): [19 Sep 2002 15:05:46 INFO] - Running with Importer Service: class org.apache.jetspeed.services.psmlmanager.db.DatabasePsmlManagerService [19 Sep 2002 15:05:46 INFO] - Running with Exporter Service: class org.apache.jetspeed.services.psmlmanager.CastorPsmlManagerService [19 Sep 2002 15:05:46 INFO] - PSML-Man: calculated resource:user/admin/html/default.psml. Base: /usr/local/jakarta- tomcat-4.0.3/webapps/chef/WEB-INF/psml [19 Sep 2002 15:05:46 WARN] - DatabasePsmlManagerService.createOrSaveDocument: profile: BaseProfile[user/admin/html/default.psml] tableName: JETSPEED_USER_PROFILE java.lang.NullPointerException at org.exolab.castor.xml.Marshaller.setMapping(Marshaller.java:323) at org.apache.jetspeed.services.psmlmanager.db.DBUtils.portletsToBytes (DBUtils.java:146) at org.apache.jetspeed.om.dbpsml.JetspeedUserProfilePeer.doInsertOrUpdate (JetspeedUserProfilePeer.java:101) at org.apache.jetspeed.om.dbpsml.JetspeedUserProfilePeer.insert (JetspeedUserProfilePeer.java:66) at org.apache.jetspeed.services.psmlmanager.db.DatabasePsmlManagerService.createOrSaveDocument( DatabasePsmlManagerService.java:622) at org.apache.jetspeed.services.psmlmanager.db.DatabasePsmlManagerService.createDocument( DatabasePsmlManagerService.java:582) at org.apache.jetspeed.services.psmlmanager.CastorPsmlManagerService.export (CastorPsmlManagerService.java:1240) at org.apache.jetspeed.services.psmlmanager.PsmlImporter.run(PsmlImporter.java: 210) at org.apache.jetspeed.services.psmlmanager.PsmlImporter.main(PsmlImporter.java: 179) [19 Sep 2002 15:05:46 WARN] - DatabasePsmlManagerService.createOrSaveDocument: profile: BaseProfile[user/admin/html/default.psml] tableName: JETSPEED_USER_PROFILE java.lang.NullPointerException at org.exolab.castor.xml.Marshaller.setMapping(Marshaller.java:323) at org.apache.jetspeed.services.psmlmanager.db.DBUtils.portletsToBytes (DBUtils.java:146) at org.apache.jetspeed.om.dbpsml.JetspeedUserProfilePeer.doInsertOrUpdate (JetspeedUserProfilePeer.java:101) at org.apache.jetspeed.om.dbpsml.JetspeedUserProfilePeer.update (JetspeedUserProfilePeer.java:77) at org.apache.jetspeed.services.psmlmanager.db.DatabasePsmlManagerService.createOrSaveDocument( DatabasePsmlManagerService.java:626) at org.apache.jetspeed.services.psmlmanager.db.DatabasePsmlManagerService.store( DatabasePsmlManagerService.java:593) at org.apache.jetspeed.services.psmlmanager.CastorPsmlManagerService.export (CastorPsmlManagerService.java:1247) at org.apache.jetspeed.services.psmlmanager.PsmlImporter.run(PsmlImporter.java: 210) at org.apache.jetspeed.services.psmlmanager.PsmlImporter.main(PsmlImporter.java: 179) [19 Sep 2002 15:05:46 ERROR] - Failed to export profiles to DB: BaseProfile[user/admin/html/default.psml] java.lang.RuntimeException: Could not create new profile in DB at org.apache.jetspeed.services.psmlmanager.db.DatabasePsmlManagerService.createOrSaveDocument( DatabasePsmlManagerService.java:671) at org.apache.jetspeed.services.psmlmanager.db.DatabasePsmlManagerService.createDocument( DatabasePsmlManagerService.java:582) at org.apache.jetspeed.services.psmlmanager.CastorPsmlManagerService.export (CastorPsmlManagerService.java:1240) at org.apache.jetspeed.services.psmlmanager.PsmlImporter.run(PsmlImporter.java: 210) at org.apache.jetspeed.services.psmlmanager.PsmlImporter.main(PsmlImporter.java: 179) I don't have the castor code or know what it is doing - but it might be something not setup right? Here's the ant target: <target name="import" description="Import PSML"> <java fork="true" classname="org.apache.jetspeed.services.psmlmanager.PsmlImporter" > <arg value="true" /> <arg value="${catalina.home}/webapps/chef" /> <arg value="/WEB-INF/conf/chef_site_resources.properties" /> <classpath> <pathelement location="${catalina.home}/webapps/chef/WEB-INF/db/hsql.jar"/> <pathelement location="${catalina.home}/common/lib/classes12.jar"/> <pathelement location="${catalina.home}/webapps/chef/WEB-INF/classes"/> <path refid="classpath"/> </classpath> </java> </target> I've added <arg>s to the importer, to point it at the deploy area and at my master resources.properties file. Does anyone know what's going on here, what I might be missing to get that particular null pointer? Thanks. - Glenn --------------------------------------------------------------------- Glenn R. Golden Systems Research Programmer School of Information University of Michigan [EMAIL PROTECTED] 734-615-1419 --------------------------------------------------------------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>