Hi.... Need help to solve.......

am using

1. uportal 4.0.4
2. ant 1.8.2
3. maven 3.0.3
4. mysql


when i excute ant initportal


am when the followiing error after a while...




   [java]  INFO Importing Data from:
/root/uPortal-4.0.4/uportal-war/src/main/
data/required_entities
     [java]  WARN SQL Error: 1064, SQLState: 42000
     [java] ERROR You have an error in your SQL syntax; check the manual
that co
rresponds to your MySQL server version for the right syntax to use near ')
AND U
P_USER.USER_ID=0' at line 1
     [java]  INFO Scanning for files to Import from:
/root/uPortal-4.0.4/uportal
-war/src/main/data/required_entities
     [java]  INFO Found 17 files to Import from:
/root/uPortal-4.0.4/uportal-war
/src/main/data/required_entities
     [java]  INFO Importing 7 files of type <entity-type
script="classpath://org
/jasig/portal/io/import-entity-type_v3-2.crn">
     [java]  INFO Looking up bean 'counterStore' in ApplicationContext due
to co
ntext not yet being initialized
     [java]  INFO Imported :
entity-type/org.jasig.portal.security.IPermissionSe
t.entity-type.xml
     [java]  INFO Imported :
entity-type/org.jasig.portal.security.IPerson.entit
y-type.xml
     [java]  INFO Imported :
entity-type/org.jasig.portal.portlet.om.IPortletDef
inition.entity-type.xml
     [java]  INFO Imported :
entity-type/org.jasig.portal.services.entitypropert
ies.EntityProperties.entity-type.xml
     [java]  INFO Imported :
entity-type/org.jasig.portal.groups.IEntityGroup.en
tity-type.xml
     [java]  INFO Imported :
entity-type/org.jasig.portal.groups.IEntity.entity-
type.xml
     [java]  INFO Imported : entity-type/java.lang.Object.entity-type.xml
     [java]  INFO Importing 2 files of type <{
https://source.jasig.org/schemas/u
portal/io/stylesheet-descriptor}stylesheet-descriptor version="4.0">
     [java]  INFO Imported :
stylesheet-descriptor/DLMXHTML.stylesheet-descripto
r.xml
     [java]  INFO Imported :
stylesheet-descriptor/DLMTabsColumns.stylesheet-des
criptor.xml
     [java]  INFO Importing 1 files of type <{
https://source.jasig.org/schemas/u
portal/io/user}template-user version="4.0">
     [java]  INFO Imported : user/defaultTemplateUser.user.xml
     [java]  INFO Importing 2 files of type <{
https://source.jasig.org/schemas/u
portal/io/user}user version="4.0">
     [java]  INFO Imported : user/system.user.xml
     [java]  INFO Imported : user/guest.user.xml
     [java]  INFO Importing 1 files of type <{
https://source.jasig.org/schemas/u
portal/io/portlet-type}portlet-type version="4.0">
     [java]  INFO Imported : portlet-type/Portlet.portlet-type.xml
     [java]  INFO Importing 2 files of type <profile
script="classpath://org/jas
ig/portal/io/import-profile_v3-2.crn">
     [java]  WARN SQL Error: 1213, SQLState: 40001
     [java] ERROR Deadlock found when trying to get lock; try restarting
transac
tion
     [java]  INFO Imported : profile/defaultTemplateUser_default.profile.xml
     [java] ERROR Failed: importing file
[/root/uPortal-4.0.4/uportal-war/src/ma
in/data/required_entities/profile/system_default.profile.xml]
     [java] Exception in thread "main" java.lang.RuntimeException:
data-import f
rom /root/uPortal-4.0.4/uportal-war/src/main/data/required_entities
matching nul
l failed
     [java]     at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
     [java]     at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
onstructorAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
egatingConstructorAccessorImpl.java:27)
     [java]     at
java.lang.reflect.Constructor.newInstance(Constructor.java:51
3)
     [java]     at
org.codehaus.groovy.reflection.CachedConstructor.invoke(Cache
dConstructor.java:77)
     [java]     at
org.codehaus.groovy.runtime.callsite.ConstructorSite$Construc
torSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
     [java]     at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCal
lConstructor(CallSiteArray.java:54)
     [java]     at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCon
structor(AbstractCallSite.java:182)
     [java]     at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCon
structor(AbstractCallSite.java:194)
     [java]     at upshell_1955242786.run(upshell_1955242786.groovy:113)
     [java]     at
groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(Groov
yShell.java:266)
     [java]     at groovy.lang.GroovyShell.run(GroovyShell.java:229)
     [java]     at
org.jasig.portal.shell.PortalShell.main(PortalShell.java:84)
     [java] Caused by: java.lang.RuntimeException: 1 <profile
script="classpath:
//org/jasig/portal/io/import-profile_v3-2.crn"> entities failed to import.
     [java]
     [java]     Per entity exception logs and a full report can be found in
/roo
t/uPortal-4.0.4/target/data-import-reports
     [java]
     [java]     at
org.jasig.portal.io.xml.JaxbPortalDataHandlerService.importDa
ta(JaxbPortalDataHandlerService.java:422)
     [java]     at
org.jasig.portal.io.xml.IPortalDataHandlerService$importData.
call(Unknown Source)
     [java]     at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCal
l(CallSiteArray.java:42)
     [java]     at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(Ab
stractCallSite.java:108)
     [java]     at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(Ab
stractCallSite.java:124)
     [java]     at upshell_1955242786.run(upshell_1955242786.groovy:109)
     [java]     ... 3 more
     [copy] Copying 1 file to /root/uPortal-4.0.4/target

BUILD FAILED
/root/uPortal-4.0.4/build.xml:142: The following error occurred while
executing
this line:
/root/uPortal-4.0.4/build.xml:148: The following error occurred while
executing
this line:
/root/uPortal-4.0.4/build.xml:1253: The following error occurred while
executing
 this line:
/root/uPortal-4.0.4/build.xml:1017: The following error occurred while
executing
 this line:
/root/uPortal-4.0.4/build.xml:467: The following error occurred while
executing
this line:
/root/uPortal-4.0.4/build.xml:1430: The following error occurred while
executing
 this line:
/root/uPortal-4.0.4/build.xml:1403: The following error occurred while
executing
 this line:
/root/uPortal-4.0.4/build.xml:1406: The following error occurred while
executing
 this line:
/root/uPortal-4.0.4/build.xml:1433: The following error occurred while
executing
 this line:
/root/uPortal-4.0.4/build.xml:473: /root/uPortal-4.0.4/build.xml:476: Java
retur
ned: 1

Total time: 3 minutes 51 seconds
[root@olk20 uPortal-4.0.4]#

-- 
Regards:

J.PRABHU,
RedHat Certified Engineer,
Cisco Ceritified Network Associate,
Coimbatore.

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

Reply via email to