发帖    主题    评论    推荐    标签    作者    订阅    查搜    注册   登陆   关注
 
面向对象 设计模式 领域驱动设计 企业架构 框架 开发教程 微服务 大数据 扩展性 并发编程 事件驱动 分布式 SOA
1 2 3 4 下一页 Go 4

tomcat中部署seam期待高手告诉小弟

    
2008-10-27 13:52
赞助商链接

小弟按照下面的步骤部署seam但是却出错了,高手给指点下,或者告诉我其他的部署方法,不胜感激啊!
步骤:
为了让Seam应用程序在Tomcat上正确运行,必须将嵌入式JBoss装载到Tomcat中。 嵌入式的JBoss可以在 这里 下载。将嵌入式的JBoss安装到Tomcat 6的过程非常简单。首先,你必须将嵌入式JBoss的JAR和配置文件都拷贝到Tomcat中。

将嵌入式JBoss的 bootstrap 和 lib 目录下的所有文件和目录,除了 jndi.properties 文件之外,都拷贝到Tomcat的 lib 目录下。

从Tomcat的 lib 目录中移除 annotations-api.jar 文件。

接下来,需要更新两个配置文件,用来增加嵌入式JBoss特有的功能。

将嵌入式JBoss listener增加到 conf/server.xml 中。它在文件中应该排列在所有其他listener的后面。

<Listener className="org.jboss.embedded.tomcat.EmbeddedJBossBootstrapListener" />
应该通过增加一个listener到 conf/context.xml 文件中来启用WAR文件扫描功能。

<Listener className="org.jboss.embedded.tomcat.WebinfScanner" />
异常:
2008-10-27 13:47:57 org.apache.catalina.core.AprLifecycleListener init
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\MyEclipse 6.5M1 Blue\bin;D:\Tomcat 6.0\bin
2008-10-27 13:47:57 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2008-10-27 13:47:57 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 828 ms
ERROR 27-10 13:47:58,468 (AbstractController.java:incrementState:456) -Error installing to Start: name=ServerConfig state=Create
java.net.URISyntaxException: Illegal character in path at index 15: file:/D:/Tomcat 6.0/lib/
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.<init>(Unknown Source)
at java.net.URL.toURI(Unknown Source)
at org.jboss.embedded.adapters.ServerConfig.initializeByFile(ServerConfig.java:93)
at org.jboss.embedded.adapters.ServerConfig.start(ServerConfig.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)

2008-10-27 14:01

>Illegal character in path
配置tomcat/lib路径出现非法字符,够累的,就直接用JBoss会怎么样呢?你这样做就是手工合成一个JBoss。

2008-10-28 09:36

不好意思啊,这个问题解决了,但是接着又来了很多问题呀。
我狂晕,开JBOSS完全没问题,可惜我的机子开不了啊,开一下内存使用1.05G我的机子才1G啊。!!
不知道怎么搞了...问题不断啊.....可爱的seam

2008-10-28 09:42

按照上面的步骤进行,然后报错了:

严重: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/seamtest,J2EEApplication=none,J2EEServer=none
2008-10-28 9:35:16 org.apache.catalina.startup.HostConfig deployWAR
严重: Error deploying web application archive seamtest.war
java.lang.RuntimeException: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

*** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}

persistence.units:unitName=seamtest
-> <UNKNOWN>{Described:** UNRESOLVED Demands 'jboss.jca:name=seamtestDatasource,service=DataSourceBinding **}


*** CONTEXTS IN ERROR: Name -> Error

<UNKNOWN> -> ** UNRESOLVED Demands 'jboss.jca:name=seamtestDatasource,service=DataSourceBinding **


at org.jboss.embedded.tomcat.WebinfScanner.lifecycleEvent(WebinfScanner.java:94)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4238)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

*** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}

persistence.units:unitName=seamtest
-> <UNKNOWN>{Described:** UNRESOLVED Demands 'jboss.jca:name=seamtestDatasource,service=DataSourceBinding **}

这应该是presistence.xml出错了吧,我不知道具体是错在那里,于是把presistence.xml文件给删除了,
然后下面又报错了:

2008-10-28 09:45

2008-10-28 9:38:46 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
java.lang.IllegalStateException: Two components with the same name and precedence: authenticator
at org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:479)
at org.jboss.seam.init.Initialization.installScannedComponentAndRoles(Initialization.java:742)
at org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:689)
at org.jboss.seam.init.Initialization.init(Initialization.java:562)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2008-10-28 9:38:46 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2008-10-28 9:38:46 org.apache.catalina.core.StandardContext start
严重: Context [/seamtest.war] startup failed due to previous errors

那位高手能否给出给tomcat部署seam的完美例子啊,谷歌搜不到,这几天把我头都搞大了,异常不断呀...伤心咯...

4Go 1 2 3 4 下一页

赞助商链接

赞助商链接

返回顶部

移动版 关于本站 使用帮助 联系管理员 最佳分辨率1366x768
OpenSource JIVEJDON Powered by JdonFramework Code © 2002-20 jdon.com