Я начал новый проект в веб-сервисах Java в NetBeans с Tomcat 5.5 в качестве сервера. Когда я пытаюсь запустить, я получаю эту ошибку
Deployment is in progress...
deploy?config=file:/C:/Users/sadesh/AppData/Local/Temp/context46924.xml&war=file:/C:/Users/sadesh/Documents/NetBeansProjects/TambramBuzz/build/web/
FAIL - Invalid context path null was specified
Deployment error:
The module has not been deployed.
See the server log for details.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:163)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: The module has not been deployed.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:157)
... 16 more
BUILD FAILED (total time: 0 seconds)
Как я могу решить это?
В журнале сервера написано
SEVERE: Ошибка запуска статического
Ресурсы
java.lang.IllegalArgumentException:
База документов
C: \ Users \ sadesh \ Documents \ NetBeansProjects \ cssjquery \ построить \ веб
не существует или не читается
каталог
в org.apache.naming.resources.FileDirContext.setDocBase (FileDirContext.java:141)
в org.apache.catalina.core.StandardContext.resourcesStart (StandardContext.java:3855)
в org.apache.catalina.core.StandardContext.start (StandardContext.java:4024)
в org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase.java:760)
в org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:740)
в org.apache.catalina.core.StandardHost.addChild (StandardHost.java:544)
в org.apache.catalina.startup.HostConfig.deployDescriptor (HostConfig.java:626)
в org.apache.catalina.startup.HostConfig.deployDescriptors (HostConfig.java:553)
в org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:488)
в org.apache.catalina.startup.HostConfig.start (HostConfig.java:1149)
в org.apache.catalina.startup.HostConfig.lifecycleEvent (HostConfig.java:311)
в org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:120)
в org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1022)
в org.apache.catalina.core.StandardHost.start (StandardHost.java:736)
в org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1014)
в org.apache.catalina.core.StandardEngine.start (StandardEngine.java:443)
в org.apache.catalina.core.StandardService.start (StandardService.java:448)
в org.apache.catalina.core.StandardServer.start (StandardServer.java:700)
в org.apache.catalina.startup.Catalina.start (Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native
Метод)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
в java.lang.reflect.Method.invoke (Method.java:597)
в org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:295)
в org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:433)