Не Компилится Webapp В Netbeans

Тема в разделе "Java", создана пользователем Kanstantsin, 16 фев 2012.

Статус темы:
Закрыта.
  1. Kanstantsin

    Kanstantsin Гость

    Вобщем, создаю чистый проект. WebApplication. Создаю новый контейнер и в него новый сервлет.
    Далее (сохранившись) пытаюсь запустить отладку проекта или запуск (результат один) и Netbeans начинает запускать Tomcat (пробывал на всякий случай сам до запуска Netbeans включать Tomcat - не помогло) -> Netbeans удаляет папку с вебприложением -> после чего выдаёт сообщение, что по такому адресу ничего нету.
    Пробовал, на всякий случай, переустановить IDE - не помогло.

    Кстати, examples запускаются (из Neatbeans'a не пробовал открывать/компилить, но сразу через браузер - всё гут).



    Ниже прилагаю логи Netbeans'a:

    <div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">"webApp(run) "</div></div><div class="sp-body"><div class="sp-content">Запуск процесса Tomcat...
    Ожидание Tomcat...
    Сервер Tomcat запущен.
    Отмена развертывания...
    OK - Undeployed application at context path /webServlet
    Развертывание на месте на C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.35\webapps\webServlet\build\web
    C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.35\webapps\webServlet\build\web\META-INF\context.xml (Системе не удается найти указанный путь)
    C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.35\webapps\webServlet\nbproject\build-impl.xml:721:
    Модуль не развернут.
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment
    .java:210)
    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
    a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
    41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
    ПОСТРОЕНИЕ ЗАВЕРШЕНО СО СБОЕМ (общее время: 17 секунд)

    <div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">"Apache Tomcat log"</div></div><div class="sp-body"><div class="sp-content">Using CATALINA_BASE: "C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.35"
    Using CATALINA_HOME: "C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.35"
    Using CATALINA_TMPDIR: "C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.35\temp"
    Using JRE_HOME: "C:\Program Files\Java\jdk1.6.0_17"
    Using CLASSPATH: "C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.35\bin\bootstrap.jar"
    16.02.2012 1:11:28 org.apache.catalina.core.AprLifecycleListener init
    INFO: Loaded APR based Apache Tomcat Native library 1.1.22.
    16.02.2012 1:11:28 org.apache.catalina.core.AprLifecycleListener init
    INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].
    16.02.2012 1:11:31 org.apache.coyote.http11.Http11AprProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8082
    16.02.2012 1:11:31 org.apache.coyote.ajp.AjpAprProtocol init
    INFO: Initializing Coyote AJP/1.3 on ajp-8009
    16.02.2012 1:11:31 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 4009 ms
    16.02.2012 1:11:31 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    16.02.2012 1:11:31 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
    16.02.2012 1:11:31 org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor host-manager.xml
    16.02.2012 1:11:32 org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor manager.xml
    16.02.2012 1:11:32 org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor Servlet_for_ajax_and_servlet.xml
    16.02.2012 1:11:32 org.apache.catalina.core.StandardContext resourcesStart
    SEVERE: Error starting static Resources
    java.lang.IllegalArgumentException: Document base C:\Users\1\Documents\NetBeansProjects\Servlet_for_ajax_and_servlet\build\web does not exist or is not a readable directory
    at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
    at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:432
    0)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4489)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja
    va:142)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    at org.apache.catalina.core.StandardService.start(StandardService.java:525)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
    a: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)
    16.02.2012 1:11:32 org.apache.catalina.core.StandardContext start
    SEVERE: Error in resourceStart()
    16.02.2012 1:11:32 org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    16.02.2012 1:11:32 org.apache.catalina.core.StandardContext start
    SEVERE: Context [/Servlet_for_ajax_and_servlet] startup failed due to previous errors
    16.02.2012 1:11:32 org.apache.catalina.core.StandardContext stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/Servlet_for_ajax_and_servlet] has not been started
    16.02.2012 1:11:32 org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor test_for_ajax_and_servlet.xml
    16.02.2012 1:11:32 org.apache.catalina.core.StandardContext resourcesStart
    SEVERE: Error starting static Resources
    java.lang.IllegalArgumentException: Document base C:\Users\1\Documents\NetBeansProjects\test_for_ajax_and_servlet\build\web does not exist or is not a readable directory
    at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
    at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:432
    0)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4489)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja
    va:142)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    at org.apache.catalina.core.StandardService.start(StandardService.java:525)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
    a: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)
    16.02.2012 1:11:33 org.apache.catalina.core.StandardContext start
    SEVERE: Error in resourceStart()
    16.02.2012 1:11:33 org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    16.02.2012 1:11:33 org.apache.catalina.core.StandardContext start
    SEVERE: Context [/test_for_ajax_and_servlet] startup failed due to previous errors
    16.02.2012 1:11:33 org.apache.catalina.core.StandardContext stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test_for_ajax_and_servlet] has not been started
    16.02.2012 1:11:33 org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor WebApplication1.xml
    16.02.2012 1:11:33 org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor webServlet.xml
    16.02.2012 1:11:33 org.apache.catalina.startup.HostConfig deployDescriptor
    WARNING: A docBase C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.35\webapps\webServlet - копия\build\web inside the host appBase has been specified, and will be ignored
    16.02.2012 1:11:33 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory docs
    16.02.2012 1:11:33 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory examples
    16.02.2012 1:11:34 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory ROOT
    16.02.2012 1:11:34 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory webServlet - копия
    16.02.2012 1:11:34 org.apache.coyote.http11.Http11AprProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8082
    16.02.2012 1:11:34 org.apache.coyote.ajp.AjpAprProtocol start
    INFO: Starting Coyote AJP/1.3 on ajp-8009
    16.02.2012 1:11:34 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2780 ms
    16.02.2012 1:11:38 org.apache.catalina.startup.HostConfig checkResources
    INFO: Undeploying context [/webServlet]

    Помогите плиз, кто-нибудь:eek:fftop:
     
  2. Kanstantsin

    Kanstantsin Гость

    спасибо, всем, кто откликнулся=\
     
Загрузка...
Статус темы:
Закрыта.

Поделиться этой страницей