2013-10-01 74 views
0

我已經刪除了META-INF中的所有文件(10)。之後,我運行服務生成器,它顯示org.springframework.beans.factory.nosuchbeandefinitionexception沒有bean命名。並且它不會生成META-INF下的所有文件(10),即使我重新啓動服務器。甚至還要清理捆綁中的臨時文件,甚至刪除了項目。org.springframework.beans.factory.nosuchbeandefinitionexception沒有名爲bean的bean。在Liferay

Buildfile: F:\sudheer-workspace\eclipse\workspace\plugins\portlets\LibraryPortlet-portlet\build.xml 
    build-service: 
     [copy] Copied 1 empty directory to 1 empty directory under F:\sudheer-workspace\eclipse\workspace\plugins\portlets\LibraryPortlet-portlet\docroot\WEB-INF\classes 
     [java] Loading jar:file:/F:/sudheer-workspace/eclipse/workspace/bundles/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties 
     [java] Loading jar:file:/F:/sudheer-workspace/eclipse/workspace/bundles/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties 
     [java] Loading file:/F:/sudheer-workspace/eclipse/workspace/bundles/tomcat-6.0.29/webapps/ROOT/WEB-INF/classes/portal-ext.properties 
     [java] Loading jar:file:/F:/sudheer-workspace/eclipse/workspace/bundles/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties 
     [java] 13:48:22,125 INFO [PortalImpl:278] Global lib directory /F:/sudheer-workspace/eclipse/workspace/bundles/tomcat-6.0.29/lib/ext/ 
     [java] 13:48:22,125 INFO [PortalImpl:298] Portal lib directory /F:/sudheer-workspace/eclipse/workspace/bundles/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/ 
     [java] Building Library 
     [java] Building FileUploader 
     [java] Error on line 73, column 33 in com/liferay/portal/tools/servicebuilder/dependencies/model_impl.ftl 
     [java] serviceBuilder.getSqlType(packagePath + ".model." + entity.getName(), column.getName(), column.getType()) is undefined. 
     [java] It cannot be assigned to sqlType 
     [java] The problematic instruction: 
     [java] ---------- 
     [java] ==> assignment: sqlType=serviceBuilder.getSqlType(packagePath + ".model." + entity.getName(), column.getName(), column.getType()) [on line 73, column 33 in com/liferay/portal/tools/servicebuilder/dependencies/model_impl.ftl] 
     [java] ---------- 
     [java] Java backtrace for programmers: 
     [java] ---------- 
     [java] freemarker.core.InvalidReferenceException: Error on line 73, column 33 in com/liferay/portal/tools/servicebuilder/dependencies/model_impl.ftl 
     [java] serviceBuilder.getSqlType(packagePath + ".model." + entity.getName(), column.getName(), column.getType()) is undefined. 
     [java] It cannot be assigned to sqlType 
     [java]  at freemarker.core.Assignment.accept(Assignment.java:111) 
     [java]  at freemarker.core.Environment.visit(Environment.java:210) 
     [java]  at freemarker.core.MixedContent.accept(MixedContent.java:92) 
     [java]  at freemarker.core.Environment.visit(Environment.java:210) 
     [java]  at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179) 
     [java]  at freemarker.core.Environment.visit(Environment.java:417) 
     [java]  at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) 
     [java]  at freemarker.core.Environment.visit(Environment.java:210) 
     [java]  at freemarker.core.MixedContent.accept(MixedContent.java:92) 
     [java]  at freemarker.core.Environment.visit(Environment.java:210) 
     [java]  at freemarker.core.Environment.visit(Environment.java:299) 
     [java]  at freemarker.core.CompressedBlock.accept(CompressedBlock.java:73) 
     [java]  at freemarker.core.Environment.visit(Environment.java:210) 
     [java]  at freemarker.core.MixedContent.accept(MixedContent.java:92) 
     [java]  at freemarker.core.Environment.visit(Environment.java:210) 
     [java]  at freemarker.core.Environment.process(Environment.java:190) 
     [java]  at freemarker.template.Template.process(Template.java:237) 
     [java]  at com.liferay.portal.freemarker.FreeMarkerUtil.process(FreeMarkerUtil.java:49) 
     [java]  at com.liferay.portal.freemarker.FreeMarkerUtil.process(FreeMarkerUtil.java:39) 
     [java]  at com.liferay.portal.tools.servicebuilder.ServiceBuilder._processTemplate(ServiceBuilder.java:4446) 
     [java]  at com.liferay.portal.tools.servicebuilder.ServiceBuilder._createModelImpl(ServiceBuilder.java:2420) 
     [java]  at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:1023) 
     [java]  at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:396) 
     [java]  at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:176) 
     [mkdir] Created dir: F:\sudheer-workspace\eclipse\workspace\plugins\portlets\LibraryPortlet-portlet\docroot\WEB-INF\service-classes 
     [delete] Deleting: F:\sudheer-workspace\eclipse\workspace\plugins\portlets\LibraryPortlet-portlet\docroot\WEB-INF\lib\LibraryPortlet-portlet-service.jar 
    compile-java: 
     [javac] Compiling 27 source files to F:\sudheer-workspace\eclipse\workspace\plugins\portlets\LibraryPortlet-portlet\docroot\WEB-INF\service-classes 
     [javac] Note: Some input files use or override a deprecated API. 
     [javac] Note: Recompile with -Xlint:deprecation for details. 
     [javac] Note: Some input files use unchecked or unsafe operations. 
     [javac] Note: Recompile with -Xlint:unchecked for details. 
      [zip] Building zip: F:\sudheer-workspace\eclipse\workspace\plugins\portlets\LibraryPortlet-portlet\docroot\WEB-INF\lib\LibraryPortlet-portlet-service.jar 
     [delete] Deleting directory F:\sudheer-workspace\eclipse\workspace\plugins\portlets\LibraryPortlet-portlet\docroot\WEB-INF\service-classes 
    BUILD SUCCESSFUL 
    Total time: 7 seconds 
+0

粘貼你的'service.xml'並且請提及你正在使用的liferay版本。謝謝 –

回答

0

從錯誤看來,您的LibraryPortlet-portlet無法正確編譯,請檢查以下兩項內容。

  1. 你service.xml中寫到,您的日食使用建立在運行Ant構建服務類文件似乎有版本衝突正確
  2. 檢查javac的版本。試試javac運行時1.6 希望它有幫助!
相關問題