2

抱歉,我知道我是新手,不擅长编程,这是我的问题:

我的 Grails 看不到 axis-1.4.jar,即使它定义buildconfig.groovy并放置在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

谢谢帮助:)

4

1 回答 1

1

正如其他人已经提到的,请按此顺序尝试以下操作。

grails clean
grails refresh-dependencies
grails run-app

以上应该足以解决您的问题。

最好指出您通常使用的 Grails 版本。

于 2013-03-06T19:26:24.403 回答