2013-03-06 78 views
2

對不起,我知道我是新的編程壞了,這裏是我的問題:的Grails無法看到軸1.4.jar

我的Grails無法看到,即使其在buildconfig.groovy定義的軸1.4.jar並放置在lib文件夾中。

我做了什麼:

我覈實axis-1.4.jar及其包含的TypeMappingRegistryImpl.class

下面的結果:

| Error 2013-03-06 11:17:58,786 [localhost-startStop-1] ERROR [localhost].[/SpagoJEEGrails] - StandardWrapper.Throwable 
Message: org/apache/axis/encoding/TypeMappingRegistryImpl 
    Line | Method 
->> 449 | <init>   in org.apache.axis.deployment.wsdd.WSDDDeployment 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
| 139 | setDocument  in org.apache.axis.deployment.wsdd.WSDDDocument 
|  65 | <init> . . . . in  '' 
| 179 | configureEngine in org.apache.axis.configuration.FileProvider 
| 172 | init . . . . . in org.apache.axis.AxisEngine 
| 156 | <init>   in  '' 
|  88 | <init> . . . . in org.apache.axis.server.AxisServer 
| 109 | createServer in org.apache.axis.server.DefaultAxisServerFactory 
|  73 | getServer . . . in  '' 
| 185 | getEngine  in org.apache.axis.transport.http.AxisServletBase 
| 396 | getOption . . . in  '' 
| 112 | init   in  '' 
| 334 | innerRun . . . in java.util.concurrent.FutureTask$Sync 
| 166 | run    in java.util.concurrent.FutureTask 
| 1146 | runWorker . . . in java.util.concurrent.ThreadPoolExecutor 
| 615 | run    in java.util.concurrent.ThreadPoolExecutor$Worker 
^ 679 | run . . . . . . in java.lang.Thread 

Caused by ClassNotFoundException: org.apache.axis.encoding.TypeMappingRegistryImpl 
->> 217 | run    in java.net.URLClassLoader$1 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
| 205 | findClass  in java.net.URLClassLoader 
| 321 | loadClass . . . in java.lang.ClassLoader 
| 266 | loadClass  in  '' 
| 449 | <init> . . . . in org.apache.axis.deployment.wsdd.WSDDDeployment 
| 139 | setDocument  in org.apache.axis.deployment.wsdd.WSDDDocument 
|  65 | <init> . . . . in  '' 
| 179 | configureEngine in org.apache.axis.configuration.FileProvider 
| 172 | init . . . . . in org.apache.axis.AxisEngine 
| 156 | <init>   in  '' 
|  88 | <init> . . . . in org.apache.axis.server.AxisServer 
| 109 | createServer in org.apache.axis.server.DefaultAxisServerFactory 
|  73 | getServer . . . in  '' 
| 185 | getEngine  in org.apache.axis.transport.http.AxisServletBase 
| 396 | getOption . . . in  '' 
| 112 | init   in  '' 
| 334 | innerRun . . . in java.util.concurrent.FutureTask$Sync 
| 166 | run    in java.util.concurrent.FutureTask 
| 1146 | runWorker . . . in java.util.concurrent.ThreadPoolExecutor 
| 615 | run    in java.util.concurrent.ThreadPoolExecutor$Worker 
^ 679 | run . . . . . . in java.lang.Thread 
| Error 2013-03-06 11:17:58,843 [localhost-startStop-1] ERROR [localhost].[/SpagoJEEGrails] - Servlet /SpagoJEEGrails threw load() exception 
Message: org.apache.axis.encoding.TypeMappingRegistryImpl 
    Line | Method 
->> 217 | run    in java.net.URLClassLoader$1 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
| 205 | findClass  in java.net.URLClassLoader 
| 321 | loadClass . . . in java.lang.ClassLoader 
| 266 | loadClass  in  '' 
| 449 | <init> . . . . in org.apache.axis.deployment.wsdd.WSDDDeployment 
| 139 | setDocument  in org.apache.axis.deployment.wsdd.WSDDDocument 
|  65 | <init> . . . . in  '' 
| 179 | configureEngine in org.apache.axis.configuration.FileProvider 
| 172 | init . . . . . in org.apache.axis.AxisEngine 
| 156 | <init>   in  '' 
|  88 | <init> . . . . in org.apache.axis.server.AxisServer 
| 109 | createServer in org.apache.axis.server.DefaultAxisServerFactory 
|  73 | getServer . . . in  '' 
| 185 | getEngine  in org.apache.axis.transport.http.AxisServletBase 
| 396 | getOption . . . in  '' 
| 112 | init   in  '' 
| 334 | innerRun . . . in java.util.concurrent.FutureTask$Sync 
| 166 | run    in java.util.concurrent.FutureTask 
| 1146 | runWorker . . . in java.util.concurrent.ThreadPoolExecutor 
| 615 | run    in java.util.concurrent.ThreadPoolExecutor$Worker 
^ 679 | run . . . . . . in java.lang.Thread 
| Server running. Browse to http://localhost:8080/SpagoJEEGrails 
| Error 2013-03-06 11:20:00,897 [http-bio-8080-exec-4] ERROR common.SsoServiceFactory - Error occurred 
Message: null 
    Line | Method 
->> 55 | getConfigValue  in it.eng.spagobi.commons.SingletonConfig 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|  44 | createProxyService in it.eng.spagobi.services.common.SsoServiceFactory 
| 151 | findUserId . . . . in it.eng.spagobi.commons.filters.ProfileFilter 
|  71 | doFilter   in  '' 
|  82 | doFilter . . . . . in it.eng.spagobi.commons.filters.SpagoBICoreCheckSessionFilter 
| 1146 | runWorker   in java.util.concurrent.ThreadPoolExecutor 
| 615 | run . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker 
^ 679 | run    in java.lang.Thread 
| Error 2013-03-06 11:20:00,905 [http-bio-8080-exec-4] ERROR filters.ProfileFilter - java.lang.NullPointerException 
| Error 2013-03-06 11:20:01,932 [http-bio-8080-exec-4] ERROR utilities.GeneralUtilities - Error while recovering SpagoBI context address 
Message: null 
    Line | Method 
->> 55 | getConfigValue in it.eng.spagobi.commons.SingletonConfig 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
| 657 | getSpagoBiContext in it.eng.spagobi.commons.utilities.GeneralUtilities 
| 104 | _jspService . . . in org.apache.jsp.WEB_002dINF.jsp.commons.sessionExpired_jsp 
|  70 | service   in org.apache.jasper.runtime.HttpJspBase 
| 432 | service . . . . . in org.apache.jasper.servlet.JspServletWrapper 
| 390 | serviceJspFile in org.apache.jasper.servlet.JspServlet 
| 334 | service . . . . . in  '' 
| 146 | route    in it.eng.spago.dispatching.httpchannel.Router 
|  91 | render . . . . . in it.eng.spago.presentation.rendering.AbstractServletModelRenderer 
| 546 | render   in it.eng.spago.dispatching.httpchannel.AdapterHTTP 
| 449 | service . . . . . in  '' 
| 109 | doFilter   in it.eng.spagobi.commons.filters.ProfileFilter 
|  82 | doFilter . . . . in it.eng.spagobi.commons.filters.SpagoBICoreCheckSessionFilter 
| 1146 | runWorker   in java.util.concurrent.ThreadPoolExecutor 
| 615 | run . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker 
^ 679 | run    in java.lang.Thread 
| Error 2013-03-06 11:20:01,937 [http-bio-8080-exec-4] ERROR utilities.GeneralUtilities - Error while recovering SpagoBI context address 
Message: null 
    Line | Method 
->> 55 | getConfigValue in it.eng.spagobi.commons.SingletonConfig 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
| 657 | getSpagoBiContext in it.eng.spagobi.commons.utilities.GeneralUtilities 
| 117 | _jspService . . . in org.apache.jsp.WEB_002dINF.jsp.commons.sessionExpired_jsp 
|  70 | service   in org.apache.jasper.runtime.HttpJspBase 
| 432 | service . . . . . in org.apache.jasper.servlet.JspServletWrapper 
| 390 | serviceJspFile in org.apache.jasper.servlet.JspServlet 
| 334 | service . . . . . in  '' 
| 146 | route    in it.eng.spago.dispatching.httpchannel.Router 
|  91 | render . . . . . in it.eng.spago.presentation.rendering.AbstractServletModelRenderer 
| 546 | render   in it.eng.spago.dispatching.httpchannel.AdapterHTTP 
| 449 | service . . . . . in  '' 
| 109 | doFilter   in it.eng.spagobi.commons.filters.ProfileFilter 
|  82 | doFilter . . . . in it.eng.spagobi.commons.filters.SpagoBICoreCheckSessionFilter 
| 1146 | runWorker   in java.util.concurrent.ThreadPoolExecutor 
| 615 | run . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker 
^ 679 | run    in java.lang.Thread 
| Error 2013-03-06 11:20:02,229 [http-bio-8080-exec-5] ERROR common.SsoServiceFactory - Error occurred 
Message: null 
    Line | Method 
->> 55 | getConfigValue  in it.eng.spagobi.commons.SingletonConfig 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|  44 | createProxyService in it.eng.spagobi.services.common.SsoServiceFactory 
| 151 | findUserId . . . . in it.eng.spagobi.commons.filters.ProfileFilter 
|  71 | doFilter   in  '' 
|  82 | doFilter . . . . . in it.eng.spagobi.commons.filters.SpagoBICoreCheckSessionFilter 
| 1146 | runWorker   in java.util.concurrent.ThreadPoolExecutor 
| 615 | run . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker 
^ 679 | run    in java.lang.Thread 
| Error 2013-03-06 11:20:02,233 [http-bio-8080-exec-5] ERROR filters.ProfileFilter - java.lang.NullPointerException 

THX的幫助:)

+0

以防萬一:你運行刷新依賴關係嗎? – eugene82 2013-03-06 11:43:43

+0

我做了:grails乾淨。 什麼是刷新依賴關係? – 2013-03-06 15:52:08

+0

它應該添加到您的本地jar高速緩存所有應用程序依賴的jar。 (這也在文檔中描述)。 – eugene82 2013-03-06 16:07:28

回答

1

如前所述由他人提到,請按此順序嘗試以下內容。

grails clean 
grails refresh-dependencies 
grails run-app 

以上應該足以解決您的問題。

這也很好地指出您一般使用的Grails版本。

+0

Thx尋求幫助: ),我想給你+1,但他們說「需要15個聲望才能投票」..... – 2013-03-07 09:50:34