Hi Boys, thank you for your advise
This is the error message the compiler throws to my just created and not edited web application
ant -f "C:\\Documents and Settings\\xp\\Mis documentos\\NetBeansProjects\\Mi Web App" -DforceRedeploy=false dist
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
Created dir: C:\Documents and Settings\xp\Mis documentos\NetBeansProjects\Mi Web App\build\web\WEB-INF\classes
Created dir: C:\Documents and Settings\xp\Mis documentos\NetBeansProjects\Mi Web App\build\web\META-INF
Copying 1 file to C:\Documents and Settings\xp\Mis documentos\NetBeansProjects\Mi Web App\build\web\META-INF
Copying 2 files to C:\Documents and Settings\xp\Mis documentos\NetBeansProjects\Mi Web App\build\web
library-inclusion-in-archive:
library-inclusion-in-manifest:
Created dir: C:\Documents and Settings\xp\Mis documentos\NetBeansProjects\Mi Web App\build\empty
Created dir: C:\Documents and Settings\xp\Mis documentos\NetBeansProjects\Mi Web App\build\generated-sources\ap-source-output
C:\Documents and Settings\xp\Mis documentos\NetBeansProjects\Mi Web App\nbproject\build-impl.xml:851: The following error occurred while executing this line:
C:\Documents and Settings\xp\Mis documentos\NetBeansProjects\Mi Web App\nbproject\build-impl.xml:284: Class not found: javac1.8
BUILD FAILED (total time: 0 seconds)
****************************************************************************************************************************
And when trying to start GlassFish, this. If I'm not wrong, this means that even if my web app had compiled fine, it wouldn't have run
Launching GlassFish on Felix platform
ERROR: Bundle jaxb-api [2]: Error starting file:/C:/Archivos%20de%20programa/glassfish-3.1.1/glassfish/modules/endorsed/jaxb-api-osgi.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle jaxb-api [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=javax.activation))
org.osgi.framework.BundleException: Unresolved constraint in bundle jaxb-api [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=javax.activation)
ERROR: Bundle org.glassfish.metro.webservices-api-osgi [3]: Error starting file:/C:/Archivos%20de%20programa/glassfish-3.1.1/glassfish/modules/endorsed/webservices-api-osgi.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.metro.webservices-api-osgi [3]: Unable to resolve 3.0: missing requirement [3.0] package; (&(package=javax.xml.bind)(version>=2.2.0)) [caused by: Unable to resolve 2.0: missing requirement [2.0] package; (package=javax.activation)])
ERROR: Bundle org.glassfish.core.glassfish [149]: Error starting file:/C:/Archivos%20de%20programa/glassfish-3.1.1/glassfish/modules/glassfish.jar (org.osgi.framework.BundleException: Activator start error in bundle org.glassfish.core.glassfish [149].)
ERROR: Bundle com.sun.enterprise.osgi-adapter [256]: Error starting file:/C:/Archivos%20de%20programa/glassfish-3.1.1/glassfish/modules/osgi-adapter.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle com.sun.enterprise.osgi-adapter [256]: Unable to resolve 256.0: missing requirement [256.0] package; (&(package=com.sun.enterprise.module)(version>=1.1.0)) [caused by: Unable to resolve 170.0: missing requirement [170.0] package; (&(package=org.jvnet.hk2.config)(version>=1.1.0)) [caused by: Unable to resolve 55.0: missing requirement [55.0] package; (package=javax.management)]])
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1727)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:722)
org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.metro.webservices-api-osgi [3]: Unable to resolve 3.0: missing requirement [3.0] package; (&(package=javax.xml.bind)(version>=2.2.0)) [caused by: Unable to resolve 2.0: missing requirement [2.0] package; (package=javax.activation)]
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1727)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:722)
java.lang.NoClassDefFoundError: com/sun/enterprise/module/bootstrap/BootException
at com.sun.enterprise.glassfish.bootstrap.osgi.GlassFishMainActivator.start(GlassFishMainActivator.java:103)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1835)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1752)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: com.sun.enterprise.module.bootstrap.BootException not found by org.glassfish.core.glassfish [149]
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 7 more
org.osgi.framework.BundleException: Unresolved constraint in bundle com.sun.enterprise.osgi-adapter [256]: Unable to resolve 256.0: missing requirement [256.0] package; (&(package=com.sun.enterprise.module)(version>=1.1.0)) [caused by: Unable to resolve 170.0: missing requirement [170.0] package; (&(package=org.jvnet.hk2.config)(version>=1.1.0)) [caused by: Unable to resolve 55.0: missing requirement [55.0] package; (package=javax.management)]]
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1727)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:722)
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
Caused by: org.glassfish.embeddable.GlassFishException: org.glassfish.embeddable.GlassFishException: No GlassFishRuntime available
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:164)
at org.glassfish.embeddable.GlassFishRuntime._bootstrap(GlassFishRuntime.java:157)
at org.glassfish.embeddable.GlassFishRuntime.bootstrap(GlassFishRuntime.java:110)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:112)
... 6 more
Caused by: org.glassfish.embeddable.GlassFishException: No GlassFishRuntime available
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.getGlassFishRuntime(OSGiGlassFishRuntimeBuilder.java:202)
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFishRuntimeBuilder.java:162)
... 9 more
Error stopping framework: java.lang.NullPointerException
java.lang.NullPointerException
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher$1.run(GlassFishMain.java:203)
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
********************************************************************************************************************************
Actually, I found out that I don't know what files I need to make a web app, neither which the project main file is, neither how to draw the controls nor where
(But, I was able to do some win forms, and its code, then I supose I'll learn this)
Thanks for your help
I'm not following a tutorial neither reading a book
I saw by there it said "No GlassFish Runtime available" ... I'll check out my GlassFish installation
The link to Bear's mooseage is broken, the other one I read it
Pablo