[求助]weblogic报404错误,Error 404--Not Found From RFC 2068 Hypertext Transfer Protoco

Black-rabbit 2014-01-27 09:39:30
求高手指点,解决了奉献高分~

访问的时候报这个错误:

Error 404--Not Found



From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:

10.4.5 404 Not Found

The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.

If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.


weblogic控制台报错:
2014-01-24 10:56:37,423 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel
.Default (self-tuning)'] ERROR com.kenoah.service.business.ServiceManager - java
.sql.SQLException: Io 异常: The Network Adapter could not establish the connecti
on
<2014-1-24 上午10时56分37秒 CST> <Error> <HTTP> <BEA-101216> <Servlet: "ServiceM
anager" failed to preload on startup in Web application: "web".
java.sql.SQLException: Io 异常: The Network Adapter could not establish the conn
ection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:255)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
414)
Truncated. see log file for complete stacktrace
>
<2014-1-24 上午10时56分37秒 CST> <Error> <Deployer> <BEA-149231> <Unable to set
the activation state to true for the application 'web'.
weblogic.application.ModuleException: [HTTP:101216]Servlet: "ServiceManager" fai
led to preload on startup in Web application: "web".
java.sql.SQLException: Io 异常: The Network Adapter could not establish the conn
ection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:255)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
414)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSou
rce.java:297)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java
:221)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection
(OracleConnectionPoolDataSource.java:157)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(O
racleConnectionPoolDataSource.java:94)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(O
racleConnectionPoolDataSource.java:75)
at com.kenoah.base.dbaccess.connectionpool.ConnectionPoolImpl.b(Unknown
Source)
at com.kenoah.base.dbaccess.connectionpool.ConnectionPoolImpl.a(Unknown
Source)
at com.kenoah.base.dbaccess.connectionpool.ConnectionPoolImpl.getDBConne
ction(Unknown Source)
at com.kenoah.base.dbaccess.connectionpool.PoolManager.getDBConnection(U
nknown Source)
at com.kenoah.base.dbaccess.connectionpool.PoolManager.getDBConnection(U
nknown Source)
at com.kenoah.base.dbaccess.transaction.TransactionContext.getDBConnecti
onByDatasourceName(Unknown Source)
at com.kenoah.base.dbaccess.transaction.TransactionContext.getDBConnecti
on(Unknown Source)
at com.kenoah.base.business.DefaultBeanHome.findByFilterSort(Unknown Sou
rce)
at com.kenoah.service.bean.ServiceHome.findByFilterSort(Unknown Source)
at com.kenoah.base.business.DefaultBeanHome.findAll(Unknown Source)
at com.kenoah.service.business.ServiceDataFactory.getServiceDatas(Unknow
n Source)
at com.kenoah.service.business.ServiceManager.init(Unknown Source)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(St
ubSecurityHelper.java:278)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecuri
tyHelper.java:64)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubL
ifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHel
per.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:507)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:1723)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(
WebAppServletContext.java:1700)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
pServletContext.java:1620)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletCon
text.java:2761)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.jav
a:889)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta
teDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat
eDriver.java:60)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedMod
uleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(Module
ListenerInvoker.java:117)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta
teDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat
eDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartMod
ulesFlow.java:26)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.ja
va:635)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:26)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.
java:212)
at weblogic.application.internal.DeploymentStateChecker.activate(Deploym
entStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(Ap
pContainerInvoker.java:80)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicD
eployment.java:181)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromSer
verLifecycle(BasicDeployment.java:358)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(De
ploymentAdapter.java:52)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(Deploy
mentAdapter.java:186)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(App
Transition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionA
pps(ConfiguredDeployments.java:233)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(Co
nfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(Conf
iguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(De
ploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServerService.start(Dep
loymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.jav
a:891)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta
teDriver.java:204)
...全文
10604 14 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
聚悟能 2016-01-05
  • 打赏
  • 举报
回复
谢谢,有参考价值
Black-rabbit 2014-02-06
  • 打赏
  • 举报
回复
引用 12 楼 hzw2312 的回复:
[quote=引用 11 楼 zhangli865621030 的回复:] [quote=引用 10 楼 hzw2312 的回复:] [quote=引用 9 楼 zhangli865621030 的回复:] [quote=引用 7 楼 hzw2312 的回复:] [quote=引用 5 楼 zhangli865621030 的回复:] [quote=引用 3 楼 hzw2312 的回复:] java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection 检查你的数据库连接是否OK!
数据库oracle连接我都重启了,还是报错[/quote] 如果数据库连接没有错误的话,就试试改改你Oracle的listener.ora跟tnsnames.ora的配置!把HOST都改成主机名称[/quote]之前没出这个问题,上线很多年,跟这个有关的吗[/quote] 这个就不知道了~万一呢?是不是改了IP啊什么的![/quote]对了,我又到weblogic里面部署,出现这个错误 激活更改期间出错,有关详细信息,请查看日志。 消息图标 - 错误 Context path '' is already in use by the module: mainWebApp application: mainWebApp 消息图标 - 错误 Context path '' is already in use by the module: mainWebApp application: mainWebApp [/quote] 没遇到过呢!我觉得你还是先搞定数据库连接的问题吧! 确认你的数据库连接可用!主要是在你部署Weblogic的那台服务器上可用!很简单,配置个数据源就知道了。[/quote]检查出来什么错了,有人改了数据库所在电脑主机的ip地址,也谢谢你,我只是考虑数据库是否有问题,却忽略了这个~
BUG胡汉三 2014-01-27
  • 打赏
  • 举报
回复
引用 11 楼 zhangli865621030 的回复:
[quote=引用 10 楼 hzw2312 的回复:] [quote=引用 9 楼 zhangli865621030 的回复:] [quote=引用 7 楼 hzw2312 的回复:] [quote=引用 5 楼 zhangli865621030 的回复:] [quote=引用 3 楼 hzw2312 的回复:] java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection 检查你的数据库连接是否OK!
数据库oracle连接我都重启了,还是报错[/quote] 如果数据库连接没有错误的话,就试试改改你Oracle的listener.ora跟tnsnames.ora的配置!把HOST都改成主机名称[/quote]之前没出这个问题,上线很多年,跟这个有关的吗[/quote] 这个就不知道了~万一呢?是不是改了IP啊什么的![/quote]对了,我又到weblogic里面部署,出现这个错误 激活更改期间出错,有关详细信息,请查看日志。 消息图标 - 错误 Context path '' is already in use by the module: mainWebApp application: mainWebApp 消息图标 - 错误 Context path '' is already in use by the module: mainWebApp application: mainWebApp [/quote] 没遇到过呢!我觉得你还是先搞定数据库连接的问题吧! 确认你的数据库连接可用!主要是在你部署Weblogic的那台服务器上可用!很简单,配置个数据源就知道了。
Black-rabbit 2014-01-27
  • 打赏
  • 举报
回复
引用 10 楼 hzw2312 的回复:
[quote=引用 9 楼 zhangli865621030 的回复:] [quote=引用 7 楼 hzw2312 的回复:] [quote=引用 5 楼 zhangli865621030 的回复:] [quote=引用 3 楼 hzw2312 的回复:] java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection 检查你的数据库连接是否OK!
数据库oracle连接我都重启了,还是报错[/quote] 如果数据库连接没有错误的话,就试试改改你Oracle的listener.ora跟tnsnames.ora的配置!把HOST都改成主机名称[/quote]之前没出这个问题,上线很多年,跟这个有关的吗[/quote] 这个就不知道了~万一呢?是不是改了IP啊什么的![/quote]对了,我又到weblogic里面部署,出现这个错误 激活更改期间出错,有关详细信息,请查看日志。 消息图标 - 错误 Context path '' is already in use by the module: mainWebApp application: mainWebApp 消息图标 - 错误 Context path '' is already in use by the module: mainWebApp application: mainWebApp
BUG胡汉三 2014-01-27
  • 打赏
  • 举报
回复
引用 9 楼 zhangli865621030 的回复:
[quote=引用 7 楼 hzw2312 的回复:] [quote=引用 5 楼 zhangli865621030 的回复:] [quote=引用 3 楼 hzw2312 的回复:] java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection 检查你的数据库连接是否OK!
数据库oracle连接我都重启了,还是报错[/quote] 如果数据库连接没有错误的话,就试试改改你Oracle的listener.ora跟tnsnames.ora的配置!把HOST都改成主机名称[/quote]之前没出这个问题,上线很多年,跟这个有关的吗[/quote] 这个就不知道了~万一呢?是不是改了IP啊什么的!
Black-rabbit 2014-01-27
  • 打赏
  • 举报
回复
引用 7 楼 hzw2312 的回复:
[quote=引用 5 楼 zhangli865621030 的回复:] [quote=引用 3 楼 hzw2312 的回复:] java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection 检查你的数据库连接是否OK!
数据库oracle连接我都重启了,还是报错[/quote] 如果数据库连接没有错误的话,就试试改改你Oracle的listener.ora跟tnsnames.ora的配置!把HOST都改成主机名称[/quote]之前没出这个问题,上线很多年,跟这个有关的吗
Black-rabbit 2014-01-27
  • 打赏
  • 举报
回复
引用 6 楼 fangmingshijie 的回复:
你的项目是myeclipse自动生成的吗?web.xml看看。好像weblogic支持的头信息是<web-app xmlns:j2ee="http://java.sun.com/xml/ns/j2ee">
这是个上线项目,以前都正常运行的,大概前几天出了这个问题
BUG胡汉三 2014-01-27
  • 打赏
  • 举报
回复
引用 5 楼 zhangli865621030 的回复:
[quote=引用 3 楼 hzw2312 的回复:] java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection 检查你的数据库连接是否OK!
数据库oracle连接我都重启了,还是报错[/quote] 如果数据库连接没有错误的话,就试试改改你Oracle的listener.ora跟tnsnames.ora的配置!把HOST都改成主机名称
  • 打赏
  • 举报
回复
你的项目是myeclipse自动生成的吗?web.xml看看。好像weblogic支持的头信息是<web-app xmlns:j2ee="http://java.sun.com/xml/ns/j2ee">
Black-rabbit 2014-01-27
  • 打赏
  • 举报
回复
引用 3 楼 hzw2312 的回复:
java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection 检查你的数据库连接是否OK!
数据库oracle连接我都重启了,还是报错
Black-rabbit 2014-01-27
  • 打赏
  • 举报
回复
引用 2 楼 fangmingshijie 的回复:
weblogic几?J2EE 1.几?
weblogic9.2,jdk1.5.0_12
BUG胡汉三 2014-01-27
  • 打赏
  • 举报
回复
java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection 检查你的数据库连接是否OK!
  • 打赏
  • 举报
回复
weblogic几?J2EE 1.几?
Black-rabbit 2014-01-27
  • 打赏
  • 举报
回复
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD river.java:26) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat eDriver.java:60) Truncated. see log file for complete stacktrace java.sql.SQLException: Io 异常: The Network Adapter could not establish the conn ection at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java :112) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java :146) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java :255) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java: 414) Truncated. see log file for complete stacktrace > <2014-1-24 上午10时56分37秒 CST> <Notice> <Log Management> <BEA-170027> <The ser ver initialized the domain log broadcaster successfully. Log messages will now b e broadcasted to the domain log.> <2014-1-24 上午10时56分37秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN> <2014-1-24 上午10时56分37秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING> <2014-1-24 上午10时56分38秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defaul t[1]" is now listening on 192.168.1.234:80 for protocols iiop, t3, ldap, http.> <2014-1-24 上午10时56分38秒 CST> <Warning> <Server> <BEA-002611> <Hostname "WIN- 6QHG9LRI7QG", maps to multiple IP addresses: 192.168.1.201, 192.168.1.234, 127.0 .0.1> <2014-1-24 上午10时56分38秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defaul t" is now listening on 192.168.1.201:80 for protocols iiop, t3, ldap, http.> <2014-1-24 上午10时56分38秒 CST> <Warning> <Server> <BEA-002611> <Hostname "127. 0.0.1", maps to multiple IP addresses: 192.168.1.201, 192.168.1.234, 127.0.0.1> <2014-1-24 上午10时56分38秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defaul t[2]" is now listening on 127.0.0.1:80 for protocols iiop, t3, ldap, http.> <2014-1-24 上午10时56分38秒 CST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "base_domain" running in Develop ment Mode> <2014-1-24 上午10时56分38秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> <2014-1-24 上午10时56分38秒 CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧