2 zhaohaibo 1988 zhaohaibo_1988 于 2016.03.03 09:43 提问

启动jboss为什么会出现下标越界呢,tomcat都能正常启动正常登陆!!!!!!

下面是我启动jboss时报的错:
09:23:05,677 ERROR [[/AgentBussinessSys]] Exception sending context initialized event to listener instance of class myschedule.web.WebAppContextListener
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at myschedule.web.AppConfig.init(AppConfig.java:55)
at myschedule.web.WebAppContextListener.contextInitialized(WebAppContextListener.java:30)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy38.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1440)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1158)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1179)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1099)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:782)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:775)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:662)

org.jboss.deployers.spi.DeploymentException: URL file:/D:/download/jboss-eap-5.0.1/jboss-eap-5.0/jboss-as/server/default/deploy/AgentBussinessSys.war/ deployment failed
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

1个回答

devmiao
devmiao   Ds   Rxr 2016.03.08 12:55
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
eclipse启动tomcat正常 ,没有出现错误,但是访问404
eclipse启动tomcat正常 ,没有出现错误,但是访问404
snowdrop-vfs
解决tomcat换jboss 7 项目正常启动但无法正常运行
项目在eclipse运行正常,但单独部署到tomcat上出现乱码解决办法
在bin目录下的catalina.bat文件最开头加上下面这句话 set JAVA_OPTS=-Xms128m -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=UTF8 rem %JAVA_OPTS%
JBOSS无法启动
       JBOSS经常遇到启动问题。这次为了配合所看的EJB3.0的书,就将原来的JBOSS4.0.2换到JBOSS4.0.5。结局是,JBOSS整整有三天启动不了。      在网上搜到的唯一解是调整JDK的安装路径。      于是先将JDK从Program Files路径下重安装到C:/JAVA,不行。今天晚上突然想到,是否是JDK的安装文件夹名为jdk5.0...,难道是路径
IDE 中的tomcat 问题,正常启动访问是404或者无法访问
遇到问题都很烦,静下心来解决才自然。如果对您有用,请回来评论区留言,这样有助于我更有动力分享更多的文章。经验之谈,欢迎来喷。欢迎大神给与指点。本人QQ:949090007        编程中遇到的大部分的问题百度都能解决,就这个问题在百度找了好久都没发现正确的解决办法,最后还是我自己经过研究解决掉了。本人是IT小白,听说IDE工具编程非常好用就自己鼓捣了一下,初学IDE问题多多,Tomcat就遇...
tomcat,jboss使用中遇到的一些问题的解决
开发J2EE的项目已经有一段不短的时间了,可仍然有时候总会遇到一些 让人非常烦的问题,其中以编写程序时与服务器连接中的问题尤为让人闹心,自己对服务器的底层实现又不了解,所以碰到这样的问题时除了google也就没有办法了,于是我们一般称其为“灵异现象”说到服务器,平时使用的基本就是tomcat与jboss两种(前段时间也下了个application server9,跑了跑petstore 2.0
myeclipse异常关闭导致tomcat无法启动如何解决
由于myeclipse出现异常直接在任务管理器里结束进程强制关闭myeclipse,当再次启动tomcat时发现原来的tomcat没有关闭,端口占用了。解决方法:在任务管理器中关闭一个叫javaw.exe的进程,如果你这时已经启动了MyEclipse,那么你的任务管理器中会有两个javaw.exe(java(TM platform se binary))进程,关闭那个占用内存少的就可以了
Eclipse导入项目启动报错(超时或者Exception in thread main)
1、超时解决办法。    找到tomcat修改Timeouts下面Start启动时间。 2、Exception thread in the main解决办法。    找到window---preferences--java--installed jres--找到对应jdk编辑default VM arguments。添加内存设置  -Xms512m -Xmx1024m -XX:MaxPerm
Linux下tomcat启动正常,无法访问
场景:  在Linux 系统 部署 系统时,发现 tomcat 启动正常,但浏览器 却无法访问其8080端口 原因: 开启了Linux防火墙(如何查看防火墙是否开启) 解决方案: 用root 帐号登录 1、修改防火墙配置文件 vi /etc/sysconfig/iptables 2、在打开的文件中添加以下内容: -A INPUT -m state --state NEW
Tomcat正常启动,访问所有页面均报404异常,404异常总结
今天遇到一个问题:Tomcat正常启动,访问所有页面均报404异常 404异常,很常见,大多情况是路径错误、web.xml文件映射路径写错、服务器设置、servlet的jar包未导进去或者没有随项目发布等等。 如果是路径错误,仔细检查即可解决问题。 服务器没设置好也会报这个错误,这一般是新手刚开始学时遇到的问题,就是要把eclipse中的tomcat的server location设置为