Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1-dev
-
None
-
Apache Tomcat 5.5.17
Description
I'm trying to build last version of jetspeed-2 from source. But error occures on demo portlets deployment phase: "ERROR 23502: Column 'MAPPED_NAME' cannot accept a NULL value."
I'm following instructions on page: http://wiki.apache.org/portals/Jetspeed2/QuickstartForTheImpatient/BuildUsingMaven
So, my actions is:
1) I've installed JDK 1.5.0 to C:\Program Files\Java\jdk1.5.0_06
2) I've copied Maven 1.0.2 and Tomcat 5.5.17 to d:\java\bin
3) I've setted next variables:
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_06;
JRE_HOME=C:\Program Files\Java\jdk1.5.0_06\jre;MAVEN_HOME=d:\java\bin\maven-1.0.2;
CATALINA_HOME=D:\java\bin\apache-tomcat-5.5.17
4) I've been downloading sources by "svn co
http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk jetspeed-2" in folder d:\java\src
5) I've Modified my tomcat_users.xml, and now it contains:
<tomcat-users>
<role rolename="manager" />
<user name="tomcat" password="tomcat" roles="tomcat" />
<user name="role1" password="tomcat" roles="role1" />
<user name="both" password="tomcat" roles="tomcat,role1" />
<user username="j2deployer" password="j2deployer" roles="manager" />
</tomcat-users>
6) I've been downloading sources by "svn co
http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk portals-jetspeed-2" in folder d:\java\src
7) I've modified file D:\java\src\portals-jetspeed-2\build.properties:
org.apache.jetspeed.server.home=D:/java/bin/apache-tomcat-5.5.17
org.apache.jetspeed.server.shared=D:/java/bin/apache-tomcat-5.5.17/shared/lib
org.apache.jetspeed.deploy.war.dir=D:/java/bin/apache-tomcat-5.5.17/webapps
org.apache.jetspeed.services.autodeployment.user=j2deployer
org.apache.jetspeed.services.autodeployment.password=j2deployer
org.apache.jetspeed.catalina.version.major=5.5
org.apache.jetspeed.project.home=D:/java/src/portals-jetspeed-2
org.apache.jetspeed.portal.home=D:/java/src/portals-jetspeed-2
maven.proxy.host=proxy.mycompany.net
maven.proxy.port=3128
jetspeed2.home=D:/java/src/portals-jetspeed-2
8) from folder d:\java\src\portals-jetspeed-2 i've runned commands
maven initMavenPlugin
maven allClean allBuild
maven j2:quickStart
9) %CATALINA_HOME%\bin\catalina run
I have an error on console:
INFO: Loading web.xml....demo
JetspeedContainerServlet: starting initialization of Portlet Application at: rss
JetspeedContainerServlet: initialization done for Portlet Application at: rss
ERROR: Failed to register portlet application, demo
org.springframework.dao.DataIntegrityViolationException: (OJB operation): data integrity violated by SQL ''; nested exception is org.apache.derby.impl.jdbc.E
mbedSQLException: Column 'MAPPED_NAME' cannot accept a NULL value.
ERROR 23502: Column 'MAPPED_NAME' cannot accept a NULL value.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.NormalizeResultSet.normalizeRow(Unknown Source)
at org.apache.derby.impl.sql.execute.NormalizeResultSet.getNextRowCore(Unknown Source)
at org.apache.derby.impl.sql.execute.DMLWriteResultSet.getNextRowCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
at org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeInsert(JdbcAccessImpl.java:216)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(PersistenceBrokerImpl.java:1754)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:813)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:726)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeAndLinkOneToMany(PersistenceBrokerImpl.java:1057)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeCollections(PersistenceBrokerImpl.java:928)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(PersistenceBrokerImpl.java:1776)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:813)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:726)
at org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPersistenceBroker.java:175)
at org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPersistenceBroker.java:175)
at org.springframework.orm.ojb.PersistenceBrokerTemplate$9.doInPersistenceBroker(PersistenceBrokerTemplate.java:267)
at org.springframework.orm.ojb.PersistenceBrokerTemplate.execute(PersistenceBrokerTemplate.java:167)
at org.springframework.orm.ojb.PersistenceBrokerTemplate.store(PersistenceBrokerTemplate.java:265)
at org.apache.jetspeed.components.portletregistry.PersistenceBrokerPortletRegistry.registerPortletApplication(PersistenceBrokerPortletRegistry.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
at $Proxy4.registerPortletApplication(Unknown Source)
at org.apache.jetspeed.tools.pamanager.PortletApplicationManager.registerPortletApplication(PortletApplicationManager.java:279)
at org.apache.jetspeed.tools.pamanager.PortletApplicationManager.startPA(PortletApplicationManager.java:372)
at org.apache.jetspeed.tools.pamanager.PortletApplicationManager.startPortletApplication(PortletApplicationManager.java:120)
at org.apache.jetspeed.container.JetspeedContainerServlet.attemptStart(JetspeedContainerServlet.java:168)
at org.apache.jetspeed.container.JetspeedContainerServlet.access$200(JetspeedContainerServlet.java:52)
at org.apache.jetspeed.container.JetspeedContainerServlet$1.run(JetspeedContainerServlet.java:139)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
10) http://localhost:8080/jetspeed/portal
When i open first page, i see error in content of demo portlets:
Failed to retrieve Portlet Definition for demo::PickANumberPortlet
Failed to retrieve Portlet Definition for demo::RoleSecurityTest
Failed to retrieve Portlet Definition for demo::IFramePortlet
Failed to retrieve Portlet Definition for demo::UserInfoTest
Failed to retrieve Portlet Definition for demo::BookmarkPortlet
In D:\java\bin\jetspeed-2.1-dev\webapps\jetspeed\logs\jetspeed.log I can see:
2006-05-03 13:24:35,234 [http-8080-Processor25] INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No portlet entity defined for fragment ID dp-7 attempting to auto-generate...
2006-05-03 13:24:35,234 [http-8080-Processor25] WARN org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess - Failed to retrieve Portlet Definition for demo::PickANumberPortlet
2006-05-03 13:24:35,244 [http-8080-Processor25] INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No portlet entity defined for fragment ID dp-16 attempting to auto-generate...
2006-05-03 13:24:35,244 [http-8080-Processor25] WARN org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess - Failed to retrieve Portlet Definition for demo::RoleSecurityTest
2006-05-03 13:24:35,254 [http-8080-Processor25] INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No portlet entity defined for fragment ID dp-9 attempting to auto-generate...
2006-05-03 13:24:35,254 [http-8080-Processor25] WARN org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess - Failed to retrieve Portlet Definition for demo::IFramePortlet
2006-05-03 13:24:35,254 [http-8080-Processor25] INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No portlet entity defined for fragment ID dp-17 attempting to auto-generate...
2006-05-03 13:24:35,254 [http-8080-Processor25] WARN org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess - Failed to retrieve Portlet Definition for demo::UserInfoTest
2006-05-03 13:24:35,254 [http-8080-Processor25] INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No portlet entity defined for fragment ID dp-18 attempting to auto-generate...
2006-05-03 13:24:35,254 [http-8080-Processor25] WARN org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess - Failed to retrieve Portlet Definition for demo::BookmarkPortlet