Skip to main content

Thread: netbeans web application


i installed netbeans
created new web application project
did not else
, tried run it
not run , here logs: (application log , tomcat log). surprised empty project cannot run because there nothing wrong have done it. please help.

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
in-place deployment @ /home/robik/netbeansprojects/webapplication1/build/web
deployment in progress...
deploy?config=file%3a%2ftmp%2fcontext1959296253389 793810.xml&path=/webapplication1
http://localhost:8080/manager/deploy...ebapplication1
/home/robik/netbeansprojects/webapplication1/nbproject/build-impl.xml:683: module has not been deployed.
build failed (total time: 36 seconds)








listening transport dt_socket @ address: 11550
java.util.logging.errormanager: 4
java.io.filenotfoundexception: /usr/local/apache-tomcat-6.0.26/logs/catalina.2011-05-31.log (permission denied)
@ java.io.fileoutputstream.openappend(native method)
@ java.io.fileoutputstream.<init>(fileoutputstream.j ava:207)
@ java.io.fileoutputstream.<init>(fileoutputstream.j ava:131)
@ org.apache.juli.filehandler.openwriter(filehandler .java:328)
@ org.apache.juli.filehandler.<init>(filehandler.jav a:65)
@ org.apache.juli.filehandler.<init>(filehandler.jav a:56)
@ sun.reflect.nativeconstructoraccessorimpl.newinsta nce0(native method)
@ sun.reflect.nativeconstructoraccessorimpl.newinsta nce(nativeconstructoraccessorimpl.java:57)
@ sun.reflect.delegatingconstructoraccessorimpl.newi nstance(delegatingconstructoraccessorimpl.java:45)
@ java.lang.reflect.constructor.newinstance(construc tor.java:532)
@ java.lang.class.newinstance0(class.java:372)
@ java.lang.class.newinstance(class.java:325)
@ org.apache.juli.classloaderlogmanager.readconfigur ation(classloaderlogmanager.java:515)
@ org.apache.juli.classloaderlogmanager.readconfigur ation(classloaderlogmanager.java:460)
@ org.apache.juli.classloaderlogmanager.readconfigur ation(classloaderlogmanager.java:286)
@ java.util.logging.logmanager$2.run(logmanager.java :278)
@ java.security.accesscontroller.doprivileged(native method)
@ java.util.logging.logmanager.readprimordialconfigu ration(logmanager.java:276)
@ java.util.logging.logmanager.getlogmanager(logmana ger.java:259)
@ java.util.logging.logger.<init>(logger.java:245)
@ java.util.logging.logmanager$rootlogger.<init>(log manager.java:1104)
@ java.util.logging.logmanager$rootlogger.<init>(log manager.java:1101)
@ java.util.logging.logmanager$1.run(logmanager.java :199)
@ java.security.accesscontroller.doprivileged(native method)
@ java.util.logging.logmanager.<clinit>(logmanager.j ava:176)
@ java.util.logging.logger.getlogger(logger.java:307 )
@ org.apache.juli.logging.directjdklog.<init>(direct jdklog.java:71)
@ org.apache.juli.logging.directjdklog.getinstance(d irectjdklog.java:17
@ org.apache.juli.logging.logfactory.getinstance(log factory.java:171)
@ org.apache.juli.logging.logfactory.getinstance(log factory.java:243)
@ org.apache.juli.logging.logfactory.getlog(logfacto ry.java:29
@ org.apache.catalina.startup.bootstrap.<clinit>(boo tstrap.java:55)
java.util.logging.errormanager: 4
java.io.filenotfoundexception: /usr/local/apache-tomcat-6.0.26/logs/localhost.2011-05-31.log (permission denied)
@ java.io.fileoutputstream.openappend(native method)
@ java.io.fileoutputstream.<init>(fileoutputstream.j ava:207)
@ java.io.fileoutputstream.<init>(fileoutputstream.j ava:131)
@ org.apache.juli.filehandler.openwriter(filehandler .java:32
@ org.apache.juli.filehandler.<init>(filehandler.jav a:65)
@ org.apache.juli.filehandler.<init>(filehandler.jav a:56)
@ sun.reflect.nativeconstructoraccessorimpl.newinsta nce0(native method)
@ sun.reflect.nativeconstructoraccessorimpl.newinsta nce(nativeconstructoraccessorimpl.java:57)
@ sun.reflect.delegatingconstructoraccessorimpl.newi nstance(delegatingconstructoraccessorimpl.java:45)
@ java.lang.reflect.constructor.newinstance(construc tor.java:532)
@ java.lang.class.newinstance0(class.java:372)
@ java.lang.class.newinstance(class.java:325)
@ org.apache.juli.classloaderlogmanager.readconfigur ation(classloaderlogmanager.java:515)
@ org.apache.juli.classloaderlogmanager.readconfigur ation(classloaderlogmanager.java:460)
@ org.apache.juli.classloaderlogmanager.readconfigur ation(classloaderlogmanager.java:286)
@ java.util.logging.logmanager$2.run(logmanager.java :27
@ java.security.accesscontroller.doprivileged(native method)
@ java.util.logging.logmanager.readprimordialconfigu ration(logmanager.java:276)
@ java.util.logging.logmanager.getlogmanager(logmana ger.java:259)
@ java.util.logging.logger.<init>(logger.java:245)
@ java.util.logging.logmanager$rootlogger.<init>(log manager.java:1104)
@ java.util.logging.logmanager$rootlogger.<init>(log manager.java:1101)
@ java.util.logging.logmanager$1.run(logmanager.java :199)
@ java.security.accesscontroller.doprivileged(native method)
@ java.util.logging.logmanager.<clinit>(logmanager.j ava:176)
@ java.util.logging.logger.getlogger(logger.java:307 )
@ org.apache.juli.logging.directjdklog.<init>(direct jdklog.java:71)
@ org.apache.juli.logging.directjdklog.getinstance(d irectjdklog.java:17
@ org.apache.juli.logging.logfactory.getinstance(log factory.java:171)
@ org.apache.juli.logging.logfactory.getinstance(log factory.java:243)
@ org.apache.juli.logging.logfactory.getlog(logfacto ry.java:29
@ org.apache.catalina.startup.bootstrap.<clinit>(boo tstrap.java:55)
java.util.logging.errormanager: 4
java.io.filenotfoundexception: /usr/local/apache-tomcat-6.0.26/logs/manager.2011-05-31.log (permission denied)
@ java.io.fileoutputstream.openappend(native method)
@ java.io.fileoutputstream.<init>(fileoutputstream.j ava:207)
@ java.io.fileoutputstream.<init>(fileoutputstream.j ava:131)
@ org.apache.juli.filehandler.openwriter(filehandler .java:32
@ org.apache.juli.filehandler.<init>(filehandler.jav a:65)
@ org.apache.juli.filehandler.<init>(filehandler.jav a:56)
@ sun.reflect.nativeconstructoraccessorimpl.newinsta nce0(native method)
@ sun.reflect.nativeconstructoraccessorimpl.newinsta nce(nativeconstructoraccessorimpl.java:57)
@ sun.reflect.delegatingconstructoraccessorimpl.newi nstance(delegatingconstructoraccessorimpl.java:45)
@ java.lang.reflect.constructor.newinstance(construc tor.java:532)
@ java.lang.class.newinstance0(class.java:372)
@ java.lang.class.newinstance(class.java:325)
@ org.apache.juli.classloaderlogmanager.readconfigur ation(classloaderlogmanager.java:515)
@ org.apache.juli.classloaderlogmanager.readconfigur ation(classloaderlogmanager.java:460)
@ org.apache.juli.classloaderlogmanager.readconfigur ation(classloaderlogmanager.java:286)
@ java.util.logging.logmanager$2.run(logmanager.java :27
@ java.security.accesscontroller.doprivileged(native method)
@ java.util.logging.logmanager.readprimordialconfigu ration(logmanager.java:276)
@ java.util.logging.logmanager.getlogmanager(logmana ger.java:259)
@ java.util.logging.logger.<init>(logger.java:245)
@ java.util.logging.logmanager$rootlogger.<init>(log manager.java:1104)
@ java.util.logging.logmanager$rootlogger.<init>(log manager.java:1101)
@ java.util.logging.logmanager$1.run(logmanager.java :199)
@ java.security.accesscontroller.doprivileged(native method)
@ java.util.logging.logmanager.<clinit>(logmanager.j ava:176)
@ java.util.logging.logger.getlogger(logger.java:307 )
@ org.apache.juli.logging.directjdklog.<init>(direct jdklog.java:71)
@ org.apache.juli.logging.directjdklog.getinstance(d irectjdklog.java:17
@ org.apache.juli.logging.logfactory.getinstance(log factory.java:171)
@ org.apache.juli.logging.logfactory.getinstance(log factory.java:243)
@ org.apache.juli.logging.logfactory.getlog(logfacto ry.java:29
@ org.apache.catalina.startup.bootstrap.<clinit>(boo tstrap.java:55)
java.util.logging.errormanager: 4
java.io.filenotfoundexception: /usr/local/apache-tomcat-6.0.26/logs/host-manager.2011-05-31.log (permission denied)
@ java.io.fileoutputstream.openappend(native method)
@ java.io.fileoutputstream.<init>(fileoutputstream.j ava:207)
@ java.io.fileoutputstream.<init>(fileoutputstream.j ava:131)
@ org.apache.juli.filehandler.openwriter(filehandler .java:328)
@ org.apache.juli.filehandler.<init>(filehandler.jav a:65)
@ org.apache.juli.filehandler.<init>(filehandler.jav a:56)
@ sun.reflect.nativeconstructoraccessorimpl.newinsta nce0(native method)
@ sun.reflect.nativeconstructoraccessorimpl.newinsta nce(nativeconstructoraccessorimpl.java:57)
@ sun.reflect.delegatingconstructoraccessorimpl.newi nstance(delegatingconstructoraccessorimpl.java:45)
@ java.lang.reflect.constructor.newinstance(construc tor.java:532)
@ java.lang.class.newinstance0(class.java:372)
@ java.lang.class.newinstance(class.java:325)
@ org.apache.juli.classloaderlogmanager.readconfigur ation(classloaderlogmanager.java:515)
@ org.apache.juli.classloaderlogmanager.readconfigur ation(classloaderlogmanager.java:460)
@ org.apache.juli.classloaderlogmanager.readconfigur ation(classloaderlogmanager.java:286)
@ java.util.logging.logmanager$2.run(logmanager.java :27
@ java.security.accesscontroller.doprivileged(native method)
@ java.util.logging.logmanager.readprimordialconfigu ration(logmanager.java:276)
@ java.util.logging.logmanager.getlogmanager(logmana ger.java:259)
@ java.util.logging.logger.<init>(logger.java:245)
@ java.util.logging.logmanager$rootlogger.<init>(log manager.java:1104)
@ java.util.logging.logmanager$rootlogger.<init>(log manager.java:1101)
@ java.util.logging.logmanager$1.run(logmanager.java :199)
@ java.security.accesscontroller.doprivileged(native method)
@ java.util.logging.logmanager.<clinit>(logmanager.j ava:176)
@ java.util.logging.logger.getlogger(logger.java:307 )
@ org.apache.juli.logging.directjdklog.<init>(direct jdklog.java:71)
@ org.apache.juli.logging.directjdklog.getinstance(d irectjdklog.java:178)
@ org.apache.juli.logging.logfactory.getinstance(log factory.java:171)
@ org.apache.juli.logging.logfactory.getinstance(log factory.java:243)
@ org.apache.juli.logging.logfactory.getlog(logfacto ry.java:298)
@ org.apache.catalina.startup.bootstrap.<clinit>(boo tstrap.java:55)
may 31, 2011 8:57:34 pm org.apache.catalina.core.aprlifecyclelistener init
info: apr based apache tomcat native library allows optimal performance in production environments not found on java.library.path: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/java/packages/lib/i386:/usr/lib/i386-linux-gnu/jni:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu:/usr/lib/jni:/lib:/usr/lib
may 31, 2011 8:57:34 pm org.apache.coyote.http11.http11protocol init
info: initializing coyote http/1.1 on http-8080
may 31, 2011 8:57:34 pm org.apache.catalina.startup.catalina load
info: initialization processed in 1096 ms
may 31, 2011 8:57:34 pm org.apache.catalina.core.standardservice start
info: starting service catalina
may 31, 2011 8:57:34 pm org.apache.catalina.core.standardengine start
info: starting servlet engine: apache tomcat/6.0.26
may 31, 2011 8:57:34 pm org.apache.catalina.startup.hostconfig deploydirectory
info: deploying web application directory examples
may 31, 2011 8:57:36 pm org.apache.jasper.embeddedservletoptions <init>
severe: scratchdir specified: /usr/local/apache-tomcat-6.0.26/work/catalina/localhost/examples unusable.
may 31, 2011 8:57:36 pm org.apache.catalina.startup.hostconfig deploydirectory
info: deploying web application directory docs
may 31, 2011 8:57:36 pm org.apache.jasper.embeddedservletoptions <init>
severe: scratchdir specified: /usr/local/apache-tomcat-6.0.26/work/catalina/localhost/docs unusable.
may 31, 2011 8:57:36 pm org.apache.catalina.startup.hostconfig deploydirectory
info: deploying web application directory manager
may 31, 2011 8:57:36 pm org.apache.catalina.startup.hostconfig deploydirectory
severe: error deploying web application directory manager
java.io.filenotfoundexception: /usr/local/apache-tomcat-6.0.26/conf/catalina/localhost/manager.xml (no such file or directory)
@ java.io.fileoutputstream.open(native method)
@ java.io.fileoutputstream.<init>(fileoutputstream.j ava:209)
@ java.io.fileoutputstream.<init>(fileoutputstream.j ava:160)
@ org.apache.catalina.startup.hostconfig.deploydirec tory(hostconfig.java:1013)
@ org.apache.catalina.startup.hostconfig.deploydirec tories(hostconfig.java:964)
@ org.apache.catalina.startup.hostconfig.deployapps( hostconfig.java:502)
@ org.apache.catalina.startup.hostconfig.start(hostc onfig.java:1277)
@ org.apache.catalina.startup.hostconfig.lifecycleev ent(hostconfig.java:321)
@ org.apache.catalina.util.lifecyclesupport.firelife cycleevent(lifecyclesupport.java:119)
@ org.apache.catalina.core.containerbase.start(conta inerbase.java:1053)
@ org.apache.catalina.core.standardhost.start(standa rdhost.java:785)
@ org.apache.catalina.core.containerbase.start(conta inerbase.java:1045)
@ org.apache.catalina.core.standardengine.start(stan dardengine.java:443)
@ org.apache.catalina.core.standardservice.start(sta ndardservice.java:519)
@ org.apache.catalina.core.standardserver.start(stan dardserver.java:710)
@ org.apache.catalina.startup.catalina.start(catalin a.java:581)
@ sun.reflect.nativemethodaccessorimpl.invoke0(nativ e method)
@ sun.reflect.nativemethodaccessorimpl.invoke(native methodaccessorimpl.java:57)
@ sun.reflect.delegatingmethodaccessorimpl.invoke(de legatingmethodaccessorimpl.java:43)
@ java.lang.reflect.method.invoke(method.java:616)
@ org.apache.catalina.startup.bootstrap.start(bootst rap.java:289)
@ org.apache.catalina.startup.bootstrap.main(bootstr ap.java:414)
may 31, 2011 8:57:36 pm org.apache.catalina.startup.hostconfig deploydirectory
info: deploying web application directory host-manager
may 31, 2011 8:57:36 pm org.apache.catalina.startup.hostconfig deploydirectory
severe: error deploying web application directory host-manager
java.io.filenotfoundexception: /usr/local/apache-tomcat-6.0.26/conf/catalina/localhost/host-manager.xml (no such file or directory)
@ java.io.fileoutputstream.open(native method)
@ java.io.fileoutputstream.<init>(fileoutputstream.j ava:209)
@ java.io.fileoutputstream.<init>(fileoutputstream.j ava:160)
@ org.apache.catalina.startup.hostconfig.deploydirec tory(hostconfig.java:1013)
@ org.apache.catalina.startup.hostconfig.deploydirec tories(hostconfig.java:964)
@ org.apache.catalina.startup.hostconfig.deployapps( hostconfig.java:502)
@ org.apache.catalina.startup.hostconfig.start(hostc onfig.java:1277)
@ org.apache.catalina.startup.hostconfig.lifecycleev ent(hostconfig.java:321)
@ org.apache.catalina.util.lifecyclesupport.firelife cycleevent(lifecyclesupport.java:119)
@ org.apache.catalina.core.containerbase.start(conta inerbase.java:1053)
@ org.apache.catalina.core.standardhost.start(standa rdhost.java:785)
@ org.apache.catalina.core.containerbase.start(conta inerbase.java:1045)
@ org.apache.catalina.core.standardengine.start(stan dardengine.java:443)
@ org.apache.catalina.core.standardservice.start(sta ndardservice.java:519)
@ org.apache.catalina.core.standardserver.start(stan dardserver.java:710)
@ org.apache.catalina.startup.catalina.start(catalin a.java:581)
@ sun.reflect.nativemethodaccessorimpl.invoke0(nativ e method)
@ sun.reflect.nativemethodaccessorimpl.invoke(native methodaccessorimpl.java:57)
@ sun.reflect.delegatingmethodaccessorimpl.invoke(de legatingmethodaccessorimpl.java:43)
@ java.lang.reflect.method.invoke(method.java:616)
@ org.apache.catalina.startup.bootstrap.start(bootst rap.java:289)
@ org.apache.catalina.startup.bootstrap.main(bootstr ap.java:414)
may 31, 2011 8:57:36 pm org.apache.catalina.startup.hostconfig deploydirectory
info: deploying web application directory root
may 31, 2011 8:57:36 pm org.apache.jasper.embeddedservletoptions <init>
severe: scratchdir specified: /usr/local/apache-tomcat-6.0.26/work/catalina/localhost/_ unusable.
may 31, 2011 8:57:36 pm org.apache.coyote.http11.http11protocol start
info: starting coyote http/1.1 on http-8080
may 31, 2011 8:57:36 pm org.apache.jk.common.channelsocket init
info: jk: ajp13 listening on /0.0.0.0:8009
may 31, 2011 8:57:36 pm org.apache.jk.server.jkmain start
info: jk running id=0 time=0/64 config=null
may 31, 2011 8:57:36 pm org.apache.catalina.startup.catalina start
info: server startup in 1579 ms

if controlling tomcat netbeans better download apache tomcat website, unpack under home directory somewhere, , let netbeans control there. add server withion netbeans (you might need create admin user in tomcat-users.xml).

this:

code:
java.io.filenotfoundexception: /usr/local/apache-tomcat-6.0.26/logs/catalina.2011-05-31.log (permission denied)
suggests me tomcat can't control repository installed version.

should able example running deploying war file repository installed tomcat development/debugging it's better suggested above.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] netbeans web application


Ubuntu

Comments