当前位置: 代码迷 >> Java Web开发 >> MyEclipse6.0.1+tomcat6.0+struts1.3+hibernate3.1如何配置啊??
  详细解决方案

MyEclipse6.0.1+tomcat6.0+struts1.3+hibernate3.1如何配置啊??

热度:929   发布时间:2010-10-26 00:54:54.0
MyEclipse6.0.1+tomcat6.0+struts1.3+hibernate3.1如何配置啊??
   请教高手,MyEclipse6.0.1+tomcat6.0+struts1.3+hibernate3.1如何配置啊??
   struts和hibernate的包都导入到哪里的?
搜索更多相关主题的帖子: 如何  hibernate  

----------------解决方案--------------------------------------------------------
这是个什么意思啊? 包可以放在WEB-INF/lib目录下, 也可以在用的时候中导入(Build Path)

最好去网上搜索一个常用的SSH综合一起的包,不然冲突也够烦人的.

----------------解决方案--------------------------------------------------------
大哥哥,这个问的也太大不吧,我觉得这样问太好、难回答的啊~建议把具体的问题贴出来,有细节的贴出来就好吧,自己还是把大的问题搞定了再说哈!毕竟这个查找的过程就是学习的过程嘛!
----------------解决方案--------------------------------------------------------
嗯,小弟是新手,好多不懂,多多指教。
我是在MyEclipse中新建了web工程,然后将现有的源程序导入到工程中,然后启动tomcat。
我把我启动tomcat的log信息贴上来,让高手们帮分析一下。

2010-10-26 23:25:12 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.20.
2010-10-26 23:25:12 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2010-10-26 23:25:13 org.apache.coyote.http11.Http11AprProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2010-10-26 23:25:13 org.apache.coyote.ajp.AjpAprProtocol init
信息: Initializing Coyote AJP/1.3 on ajp-8009
2010-10-26 23:25:13 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 2213 ms
2010-10-26 23:25:13 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2010-10-26 23:25:13 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.29
2010-10-26 23:25:13 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
2010-10-26 23:25:15 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2010-10-26 23:25:16 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory demo
2010-10-26 23:25:16 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2010-10-26 23:25:16 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory examples
2010-10-26 23:25:16 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2010-10-26 23:25:16 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2010-10-26 23:25:16 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2010-10-26 23:25:18 org.apache.tomcat.util.digester.Digester fatalError
严重: Parse Fatal Error at line 200 column 2: The markup in the document following the root element must be well-formed.
org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
    at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)
    at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1076)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4540)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
    at org.apache.catalina.core.StandardService.start(StandardService.java:519)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)


----------------解决方案--------------------------------------------------------
回复 4楼 yuanzhen_sh
应该是xml的jar包没有引入,尝试引入dom4j-1.6.1.jar

----------------解决方案--------------------------------------------------------
哈哈    下载 myeclipse 7.5 全部集成了+tomcat6.0+struts1.3+hibernate3.1  


不用再为配置  浪费时间
----------------解决方案--------------------------------------------------------
  相关解决方案