eclipse-ee4j / glassfish

Eclipse GlassFish
https://eclipse-ee4j.github.io/glassfish/
385 stars 144 forks source link

Regression. The deployment of webbeans-guess failed, because AnnotationLiteral.class was moved. #8919

Closed glassfishrobot closed 15 years ago

glassfishrobot commented 15 years ago

V3 nightly build 57 07/28. The deployment of webbeans-guess.war from V3 samples failed with a message:

"java.lang.NoClassDefFoundError: javax/inject/AnnotationLiteral"

See all deployment messages at the bellow.

For promoted b56 this issue doesn't exist.

The problem happened, I believe, because before AnnotationLiteral.class in webbeans-osgi-bundle.jar was under javax/inject. But in webbeans-osgi-bundle.jar from b57, AnnotationLiteral.class was moved under javax/enterprise/inject.

I don't know what has to be fixed, V3 webbeans-guess sample or webbeans-osgi-bundle.jar, but this is a regression.

I've attached webbeans-guess.war

=======================================================================

[#|2009-07-28T10:28:03.632-0700|INFO|glassfish|null|_ThreadID=17;_ThreadName=Thread-1;|Deployment expansion took 9|#]

[#|2009-07-28T10:28:03.856-0700|SEVERE|glassfish|global|_ThreadID=17;_ThreadName=Thread-1;|Class [ Ljavax/inject/manager/Manager; ] not found. Error while loading [ class webbeansguess.Game ]|#]

[#|2009-07-28T10:28:03.857-0700|WARNING|glassfish|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=17;_ThreadName=Thread-1;|Error in annotation processing: java.lang.NoClassDefFoundError: Ljavax/inject/manager/Manager;|#]

[#|2009-07-28T10:28:03.861-0700|INFO|glassfish|null|_ThreadID=17;_ThreadName=Thread-1;|DOL Loading time203|#]

[#|2009-07-28T10:28:03.874-0700|SEVERE|glassfish|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=17;_ThreadName=Thread-1;|Error during deployment : javax/inject/AnnotationLiteral java.lang.NoClassDefFoundError: javax/inject/AnnotationLiteral at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:955) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1458) at org.glassfish.webbeans.DeploymentImpl.scan(DeploymentImpl.java:111) at org.glassfish.webbeans.DeploymentImpl.(DeploymentImpl.java:81) at org.glassfish.webbeans.WebBeansDeployer$1.(WebBeansDeployer.java:159) at org.glassfish.webbeans.WebBeansDeployer.load(WebBeansDeployer.java:159) at org.glassfish.webbeans.WebBeansDeployer.load(WebBeansDeployer.java:81) at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:154) at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:178) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:303) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:174) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270) at com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:422) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:437) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:524) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:140) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:313) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:180) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:165) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:208) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:746) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:655) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:905) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:161) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:136) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: javax.inject.AnnotationLiteral at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:987) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1458) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 38 more

| #] |

Environment

Operating System: All Platform: All

Affected Versions

[V3]

glassfishrobot commented 6 years ago
glassfishrobot commented 15 years ago

@glassfishrobot Commented easarina said: Created an attachment (id=3034) webbeans-guess.war

glassfishrobot commented 15 years ago

@glassfishrobot Commented easarina said: It is a regression issue.

glassfishrobot commented 15 years ago

@glassfishrobot Commented @honghzzhang said: web beans issue, assign to roger to take a look

glassfishrobot commented 15 years ago

@glassfishrobot Commented sherryshen said: cc

glassfishrobot commented 15 years ago

@glassfishrobot Commented easarina said: webbeans-guess sample belongs to JavaEE 6 samples. For this reason I will mark this bug P2.

glassfishrobot commented 15 years ago

@glassfishrobot Commented rogerk said: Starting

glassfishrobot commented 15 years ago

@glassfishrobot Commented rogerk said: Updates checked in. Can someone verifies that it works (in addition to me)? The sample should work with the latest Web Beans (1.0.0.PREVIEW2.SP2) integrated into GlassFish v3 on 7/29/09 (should be available in latest nightly).

glassfishrobot commented 15 years ago

@glassfishrobot Commented easarina said: Promoted b58, java_ee_sdk-6-preview-b14-unix.sh.

I've tried to compile this sample using ant 1.6.5 and ant 1.7.1. In both cases the compilation failed. I did not find a work around.

Please see bellow the output from ant all -debug

================================================================== ed-asqe-15#/opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess] ant all -debug Apache Ant version 1.7.1 compiled on June 27 2008 Buildfile: build.xml Adding reference: ant.PropertyHelper Detected Java version: 1.6 in: /opt/jdk1.6.0_13/jre Detected OS: SunOS Adding reference: ant.ComponentHelper Setting ro project property: ant.file -> /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/build.xml Adding reference: ant.projectHelper Adding reference: ant.parsing.context Adding reference: ant.targets parsing buildfile /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/build.xml with URI = file:/opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/build.xml Setting ro project property: ant.project.name -> webbeans-guess Adding reference: webbeans-guess Setting ro project property: ant.file.webbeans-guess -> /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/build.xml Project base dir set to: /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess +Target: +Target: all +Target: -pre-clean +Target: ant-undeploy [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found. Setting project property: is.war.module -> true Setting project property: javadoc.packagenames -> webbeans-guess Importing file /opt/glassfishv3/glassfish/samples/bp-project/main.xml from /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/build.xml parsing buildfile /opt/glassfishv3/glassfish/samples/bp-project/main.xml with URI = file:/opt/glassfishv3/glassfish/samples/bp-project/main.xml Setting ro project property: ant.file.main -> /opt/glassfishv3/glassfish/samples/bp-project/main.xml +Target: dummy-default +Target: main.dummy-default Condition false; setting common-ant-tasks-file to /opt/glassfishv3/glassfish/samples/bp-project/main.xml/../command-line-ant-tasks.xml Setting project property: common-ant-tasks-file -> /opt/glassfishv3/glassfish/samples/bp-project/main.xml/../command-line-ant-tasks.xml Importing file /opt/glassfishv3/glassfish/samples/bp-project/command-line-ant-tasks.xml from /opt/glassfishv3/glassfish/samples/bp-project/main.xml parsing buildfile /opt/glassfishv3/glassfish/samples/bp-project/command-line-ant-tasks.xml with URI = file:/opt/glassfishv3/glassfish/samples/bp-project/command-line-ant-tasks.xml Setting ro project property: ant.file.command-line-ant-tasks -> /opt/glassfishv3/glassfish/samples/bp-project/command-line-ant-tasks.xml +Target: clean +Target: command-line-ant-tasks.clean +Target: compile +Target: command-line-ant-tasks.compile +Target: bpp-actual-compilation +Target: command-line-ant-tasks.bpp-actual-compilation +Target: javadoc +Target: command-line-ant-tasks.javadoc +Target: clean-javadoc +Target: command-line-ant-tasks.clean-javadoc +Target: getBrowser +Target: command-line-ant-tasks.getBrowser +Target: launch +Target: command-line-ant-tasks.launch +Target: if-can-not-launch +Target: command-line-ant-tasks.if-can-not-launch +Target: if-can-launch +Target: command-line-ant-tasks.if-can-launch +Target: init +Target: command-line-ant-tasks.init +Target: -pre-compile +Target: command-line-ant-tasks.-pre-compile +Target: -post-compile +Target: command-line-ant-tasks.-post-compile +Target: -pre-setup +Target: command-line-ant-tasks.-pre-setup +Target: -post-unsetup +Target: command-line-ant-tasks.-post-unsetup +Target: default +Target: command-line-ant-tasks.default +Target: default-ear +Target: command-line-ant-tasks.default-ear +Target: default-not-ear +Target: command-line-ant-tasks.default-not-ear +Target: bpp-copy-dist +Target: command-line-ant-tasks.bpp-copy-dist +Target: run +Target: command-line-ant-tasks.run Importing file /opt/glassfishv3/glassfish/samples/bp-project/common-properties.xml from /opt/glassfishv3/glassfish/samples/bp-project/command-line-ant-tasks.xml parsing buildfile /opt/glassfishv3/glassfish/samples/bp-project/common-properties.xml with URI = file:/opt/glassfishv3/glassfish/samples/bp-project/common-properties.xml Setting ro project property: ant.file.common-properties -> /opt/glassfishv3/glassfish/samples/bp-project/common-properties.xml Already defined in main or a previous import, ignore dummy-default +Target: common-properties.dummy-default [property] Loading /opt/glassfishv3/glassfish/samples/bp-project/common.properties Setting project property: src.conf -> ./src/conf Setting project property: build.dir -> ./build Setting project property: src.dir -> ./src/java Setting project property: default.javac.target -> 1.5 Setting project property: home.dir -> . Setting project property: dist.dir -> ./dist Setting project property: javac.debug -> true Override ignored for property "javadoc.packagenames" Setting project property: build.classes.dir -> ./build/classes Setting project property: default.javac.source -> 1.5 Setting project property: javac.debuglevel -> lines,vars,source Setting project property: module.name -> webbeans-guess [property] Loading /opt/glassfishv3/glassfish/samples/bp-project/build.properties Setting project property: javaee.home -> /opt/glassfishv3/glassfish Setting project property: javaee.server.passwordfile -> /opt/glassfishv3/glassfish/samples/bp-project/passwordfile Setting project property: javaee.server.name -> localhost Setting project property: javaee.server.port -> 8080 Setting project property: javaee.adminserver.name -> localhost Setting project property: appserver.instance -> server Setting project property: javaee.adminserver.port -> 4848 Setting project property: proxy.host -> Setting project property: javaee.server.username -> anonymous Setting project property: proxy.port -> [property] Loading /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/build.properties [property] Unable to find property file: /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/build.properties [property] Loading /build.properties [property] Unable to find property file: /build.properties [property] Loading /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/nbproject/project.properties Setting project property: excludes -> Setting project property: javac.deprecation -> false Setting project property: build.test.results.dir -> ./build/test/results Setting project property: javadoc.nonavbar -> false Setting project property: war.name -> webbeans-guess.war Property "libs.junit.classpath" has not been set Property "libs.junit_4.classpath" has not been set Setting project property: run.test.classpath -> :./build/classes:$

{libs.junit.classpath}:${libs.junit_4.classpath}:./build/test/classes Setting project property: persistence.xml.dir -> src/conf Setting project property: javac.target -> 1.5 Setting project property: j2ee.deploy.on.save -> true Setting project property: j2ee.server.type -> gfv3ee6 Setting project property: client.urlPart -> Setting project property: display.browser -> true Setting project property: javadoc.noindex -> false Setting project property: javadoc.additionalparam -> Setting project property: web.docbase.dir -> web Setting project property: source.root -> src Setting project property: includes -> Override ignored for property "build.classes.dir" Setting project property: source.encoding -> UTF-8 Setting project property: javadoc.author -> false Setting project property: webinf.dir -> web/WEB-INF Setting project property: test.java.dir -> test/src/java Override ignored for property "build.dir" Setting project property: resource.dir -> setup Setting project property: war.ear.name -> webbeans-guess.war Setting project property: build.test.classes.dir -> ./build/test/classes Setting project property: platform.active -> default_platform Setting project property: javac.compilerargs -> Setting project property: javadoc.use -> true Setting project property: lib.dir -> web/WEB-INF/lib Setting project property: build.web.excludes -> /.java,/**.form Property "libs.junit.classpath" has not been set Property "libs.junit_4.classpath" has not been set Setting project property: debug.test.classpath -> :./build/classes:${libs.junit.classpath}

:$

{libs.junit_4.classpath}:./build/test/classes Override ignored for property "dist.dir" Setting project property: build.classes.excludes -> */*.java,/**.form Setting project property: javadoc.splitindex -> true Setting project property: javadoc.encoding -> UTF-8 Setting project property: javac.source -> 1.5 Setting project property: javadoc.preview -> true Setting project property: debug.classpath -> ./build/classes: Setting project property: compile.jsps -> false Setting project property: build.web.dir -> ./build/web Setting project property: runmain.jvmargs -> Setting project property: conf.dir -> src/conf Setting project property: build.generated.dir -> ./build/generated Setting project property: jar.compress -> false Property "libs.junit.classpath" has not been set Property "libs.junit_4.classpath" has not been set Setting project property: javac.test.classpath -> :./build/classes:${libs.junit.classpath}:${libs.junit_4.classpath}

Setting project property: javadoc.private -> false Override ignored for property "javac.debug" Setting project property: war.content.additional -> Property "jspc.classpath" has not been set Setting project property: jspcompilation.classpath -> $

{jspc.classpath}

: Setting project property: dist.javadoc.dir -> ./dist/javadoc Override ignored for property "src.dir" Setting project property: javac.classpath -> Setting project property: j2ee.platform -> 1.5 Setting project property: build.generated.sources.dir -> ./build/generated-sources Setting project property: javadoc.version -> false Setting project property: javadoc.windowtitle -> Setting project property: dist.war -> ./dist/webbeans-guess.war Setting project property: javadoc.notree -> false Setting project property: dist.ear.war -> ./dist/webbeans-guess.war [property] Loading /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/nbproject/private/private.properties [property] Unable to find property file: /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/nbproject/private/private.properties Property "deploy.ant.properties.file" has not been set [property] Loading /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/$

{deploy.ant.properties.file} [property] Unable to find property file: /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/${deploy.ant.properties.file}

[loadfile] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/nbproject/private/private.properties doesn't exist Property "javaee.home.foo" has not been set Condition false; not setting javaee.home Property "sjsas.root" has not been set Condition false; not setting javaee.home Property "com.sun.aas.InstallRoot" has not been set Condition false; not setting javaee.home Importing file /opt/glassfishv3/glassfish/samples/bp-project/app-server-ant.xml from /opt/glassfishv3/glassfish/samples/bp-project/command-line-ant-tasks.xml parsing buildfile /opt/glassfishv3/glassfish/samples/bp-project/app-server-ant.xml with URI = file:/opt/glassfishv3/glassfish/samples/bp-project/app-server-ant.xml Setting ro project property: ant.file.app-server-ant -> /opt/glassfishv3/glassfish/samples/bp-project/app-server-ant.xml +Target: tools +Target: app-server-ant.tools +Target: bpp-run-app-client +Target: app-server-ant.bpp-run-app-client +Target: bpp-run-secure-app-client +Target: app-server-ant.bpp-run-secure-app-client +Target: start-domain +Target: app-server-ant.start-domain +Target: stop-domain +Target: app-server-ant.stop-domain +Target: set-perm-size +Target: app-server-ant.set-perm-size +Target: keygen-common +Target: app-server-ant.keygen-common +Target: keydel-common +Target: app-server-ant.keydel-common +Target: start-db +Target: app-server-ant.start-db +Target: stop-db +Target: app-server-ant.stop-db +Target: create-jdbc-connection-pool +Target: app-server-ant.create-jdbc-connection-pool +Target: create-jdbc-resource +Target: app-server-ant.create-jdbc-resource +Target: create-connector-connection-pool +Target: app-server-ant.create-connector-connection-pool +Target: create-connector-resource +Target: app-server-ant.create-connector-resource +Target: create-persistence-resource +Target: app-server-ant.create-persistence-resource +Target: create-jms-resource +Target: app-server-ant.create-jms-resource +Target: create-jms-connection +Target: app-server-ant.create-jms-connection +Target: create-jms-connection-factory +Target: app-server-ant.create-jms-connection-factory +Target: create-jms-connection-factory-prop +Target: app-server-ant.create-jms-connection-factory-prop +Target: create-javamail-resource +Target: app-server-ant.create-javamail-resource +Target: delete-javamail-resource +Target: app-server-ant.delete-javamail-resource +Target: listJmsDestinations +Target: app-server-ant.listJmsDestinations +Target: delete-persistence-resource +Target: app-server-ant.delete-persistence-resource +Target: delete-jdbc-resource +Target: app-server-ant.delete-jdbc-resource +Target: delete-jdbc-connection-pool +Target: app-server-ant.delete-jdbc-connection-pool +Target: delete-connector-resource +Target: app-server-ant.delete-connector-resource +Target: delete-connector-connection-pool +Target: app-server-ant.delete-connector-connection-pool +Target: delete-jms-resource +Target: app-server-ant.delete-jms-resource +Target: undeploy +Target: app-server-ant.undeploy +Target: deploy +Target: app-server-ant.deploy +Target: deploy-url-message +Target: app-server-ant.deploy-url-message +Target: client-jar +Target: app-server-ant.client-jar +Target: check +Target: app-server-ant.check +Target: -pre-deploy +Target: app-server-ant.-pre-deploy [property] Loading /opt/glassfishv3/glassfish/samples/bp-project/app-server.properties Override ignored for property "javaee.server.name" Setting project property: db.jvmargs -> -ms16m -mx32m Setting project property: db.password -> APP Setting project property: j2ee.adminserver.name -> localhost Setting project property: db.root -> /opt/glassfishv3/glassfish/javadb Setting project property: j2ee.server.name -> localhost Setting project property: j2ee.server.username -> anonymous Override ignored for property "javaee.adminserver.name" Setting project property: db.home -> /opt/glassfishv3/glassfish/javadb Override ignored for property "javaee.home" Setting project property: db.delimiter -> ; Setting project property: db.user -> APP Setting project property: db.datasource -> org.apache.derby.jdbc.ClientDataSource Override ignored for property "appserver.instance" Override ignored for property "javaee.server.port" Setting project property: client.jar.dir -> client-jar Setting project property: j2ee.adminserver.port -> 4848 Setting project property: db.driver -> org.apache.derby.jdbc.ClientDriver Setting project property: j2ee.server.port -> 8080 Override ignored for property "javaee.server.username" Override ignored for property "javaee.adminserver.port" Setting project property: db.url -> jdbc:derby://localhost:1527/sun-appserv-samples;create=true; Setting project property: db.sid -> sun-appserv-samples Setting project property: javaee.orb.port -> 3700 Setting project property: db.vendorname -> SQL92 Setting project property: javaee.domaindir -> /opt/glassfishv3/glassfish/domains/domain1 Setting project property: db.port -> 1527 Setting project property: javaee.jar -> /opt/glassfishv3/glassfish/lib/javaee.jar Setting project property: ac.jar -> appClient.jar Adding reference: javaee.classpath Adding reference: db.classpath Setting project property: run.uri -> webbeans-guess Condition false; not setting module-tasks-file Condition false; not setting module-tasks-file Condition true; setting module-tasks-file to /opt/glassfishv3/glassfish/samples/bp-project/command-line-ant-tasks.xml/../war-ant.xml Setting project property: module-tasks-file -> /opt/glassfishv3/glassfish/samples/bp-project/command-line-ant-tasks.xml/../war-ant.xml Condition false; not setting module-tasks-file Condition false; not setting module-tasks-file Condition false; not setting module-tasks-file Condition false; not setting module-tasks-file Importing file /opt/glassfishv3/glassfish/samples/bp-project/war-ant.xml from /opt/glassfishv3/glassfish/samples/bp-project/command-line-ant-tasks.xml parsing buildfile /opt/glassfishv3/glassfish/samples/bp-project/war-ant.xml with URI = file:/opt/glassfishv3/glassfish/samples/bp-project/war-ant.xml Setting ro project property: ant.file.war-ant -> /opt/glassfishv3/glassfish/samples/bp-project/war-ant.xml Already defined in main or a previous import, ignore -pre-clean +Target: war-ant.-pre-clean +Target: package +Target: war-ant.package +Target: bp-copy-classes +Target: war-ant.bp-copy-classes Already defined in main or a previous import, ignore dummy-default +Target: war-ant.dummy-default Setting project property: app.module -> ./build/webbeans-guess.war Override ignored for property "web.docbase.dir" Setting project property: src.web -> web Setting project property: war.build.dir -> ./build/war Override ignored for property "build.web.dir" Setting project property: web.build.dir -> ./build/web [available] Found: build/classes Setting project property: has-classes -> true Importing file /opt/glassfishv3/glassfish/samples/bp-project/persistence-unit-ant.xml from /opt/glassfishv3/glassfish/samples/bp-project/command-line-ant-tasks.xml parsing buildfile /opt/glassfishv3/glassfish/samples/bp-project/persistence-unit-ant.xml with URI = file:/opt/glassfishv3/glassfish/samples/bp-project/persistence-unit-ant.xml Setting ro project property: ant.file.persistence-unit-ant -> /opt/glassfishv3/glassfish/samples/bp-project/persistence-unit-ant.xml Already defined in main or a previous import, ignore -pre-clean +Target: persistence-unit-ant.-pre-clean +Target: package-persistence-unit +Target: persistence-unit-ant.package-persistence-unit +Target: bpp-package-persistence-unit-war +Target: persistence-unit-ant.bpp-package-persistence-unit-war +Target: bpp-package-persistence-unit-ejb-jar +Target: persistence-unit-ant.bpp-package-persistence-unit-ejb-jar Already defined in main or a previous import, ignore dummy-default +Target: persistence-unit-ant.dummy-default [available] Found: src/java Setting project property: has-java-sources -> true Setting project property: antfile.dir -> /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess Adding reference: classpath Property "extra.classpath" has not been set Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor Adding reference: ant.executor Build sequence for target(s) `all' is [default-ear, -pre-compile, bpp-actual-compilation, -post-compile, compile, package, bpp-copy-dist, default-not-ear, default, check, tools, -pre-deploy, deploy, getBrowser, launch, run, all] Complete build sequence is [default-ear, -pre-compile, bpp-actual-compilation, -post-compile, compile, package, bpp-copy-dist, default-not-ear, default, check, tools, -pre-deploy, deploy, getBrowser, launch, run, all, command-line-ant-tasks.bpp-actual-compilation, delete-connector-connection-pool, command-line-ant-tasks.init, delete-jdbc-resource, create-connector-resource, app-server-ant.stop-db, command-line-ant-tasks.bpp-copy-dist, command-line-ant-tasks.default, bpp-package-persistence-unit-war, app-server-ant.set-perm-size, app-server-ant.create-connector-connection-pool, delete-connector-resource, create-jms-connection-factory-prop, app-server-ant.create-jms-resource, app-server-ant.delete-jms-resource, app-server-ant.create-jdbc-resource, war-ant.bp-copy-classes, app-server-ant.create-jms-connection-factory-prop, if-can-not-launch, dummy-default, keydel-common, persistence-unit-ant.bpp-package-persistence-unit-ejb-jar, command-line-ant-tasks.-post-compile, ant-undeploy, -pre-clean, bpp-package-persistence-unit-ejb-jar, persistence-unit-ant.package-persistence-unit, command-line-ant-tasks.-pre-compile, delete-javamail-resource, create-jdbc-resource, main.dummy-default, app-server-ant.bpp-run-app-client, command-line-ant-tasks.if-can-not-launch, -pre-setup, app-server-ant.create-persistence-resource, command-line-ant-tasks.compile, app-server-ant.delete-javamail-resource, if-can-launch, app-server-ant.keygen-common, create-jdbc-connection-pool, create-jms-resource, war-ant.dummy-default, delete-jms-resource, create-connector-connection-pool, clean-javadoc, stop-db, app-server-ant.delete-persistence-resource, bpp-run-app-client, delete-jdbc-connection-pool, persistence-unit-ant.bpp-package-persistence-unit-war, command-line-ant-tasks.if-can-launch, command-line-ant-tasks.run, create-jms-connection, undeploy, command-line-ant-tasks.-post-unsetup, command-line-ant-tasks.clean-javadoc, war-ant.-pre-clean, -post-unsetup, app-server-ant.bpp-run-secure-app-client, set-perm-size, start-db, package-persistence-unit, persistence-unit-ant.-pre-clean, bp-copy-classes, app-server-ant.listJmsDestinations, command-line-ant-tasks.launch, command-line-ant-tasks.javadoc, command-line-ant-tasks.-pre-setup, app-server-ant.deploy-url-message, deploy-url-message, keygen-common, app-server-ant.undeploy, init, clean, app-server-ant.start-db, bpp-run-secure-app-client, command-line-ant-tasks.default-ear, app-server-ant.stop-domain, listJmsDestinations, app-server-ant.create-jms-connection, app-server-ant.keydel-common, client-jar, app-server-ant.delete-connector-connection-pool, command-line-ant-tasks.clean, app-server-ant.create-jdbc-connection-pool, app-server-ant.client-jar, javadoc, app-server-ant.check, command-line-ant-tasks.default-not-ear, app-server-ant.create-connector-resource, command-line-ant-tasks.getBrowser, war-ant.package, persistence-unit-ant.dummy-default, common-properties.dummy-default, app-server-ant.delete-jdbc-connection-pool, app-server-ant.-pre-deploy, stop-domain, app-server-ant.create-javamail-resource, delete-persistence-resource, create-javamail-resource, create-jms-connection-factory, app-server-ant.delete-connector-resource, create-persistence-resource, app-server-ant.delete-jdbc-resource, app-server-ant.deploy, start-domain, app-server-ant.start-domain, app-server-ant.tools, app-server-ant.create-jms-connection-factory, ]

default-ear: Skipped because property 'is.ear.module' not set.

-pre-compile:

bpp-actual-compilation: [echo] Compiling webbeans-guess [mkdir] Skipping /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/build/classes because it already exists. Property "javac.excludes" has not been set fileset: Setup scanner in dir /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java with patternSet{ includes: [**] excludes: [$

{javac.excludes}

] } [javac] webbeansguess/Game.java added as webbeansguess/Game.class doesn't exist. [javac] webbeansguess/Generator.java added as webbeansguess/Generator.class doesn't exist. [javac] webbeansguess/MaxNumber.java added as webbeansguess/MaxNumber.class doesn't exist. [javac] webbeansguess/Random.java added as webbeansguess/Random.class doesn't exist. [javac] Compiling 4 source files to /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/build/classes [javac] Using modern compiler fileset: Setup scanner in dir /opt/glassfishv3/glassfish with patternSet

{ includes: [lib/javaee.jar, lib/appserv-rt.jar, lib/appserv-ws.jar] excludes: [] }

dirset: Setup scanner in dir /opt/glassfishv3/glassfish/samples/javaee6/webbeans with patternSet

{ includes: [/build/classes, /build/jar] excludes: [] }

fileset: Setup scanner in dir /opt/glassfishv3/glassfish with patternSet

{ includes: [modules/*.jar] excludes: [] }

dropping /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/$

{extra.classpath}

from path as it doesn't exist dropping /opt/glassfishv3/glassfish/lib/javaee.jar from path as it doesn't exist dropping /opt/glassfishv3/glassfish/lib/jsf-api.jar from path as it doesn't exist dropping /opt/glassfishv3/glassfish/lib/jsf-impl.jar from path as it doesn't exist dropping /opt/glassfishv3/glassfish/lib/appserv-jstl.jar from path as it doesn't exist dropping /opt/glassfishv3/glassfish/lib/commons-logging.jar from path as it doesn't exist dropping /opt/glassfishv3/glassfish/lib/webservices-rt.jar from path as it doesn't exist dropping /opt/glassfishv3/glassfish/lib/webservices-tools.jar from path as it doesn't exist [javac] Compilation arguments: [javac] '-d' [javac] '/opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/build/classes' [javac] '-classpath' [javac] '/opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/build/classes:/opt/glassfishv3/glassfish/modules/acc-config.jar:/opt/glassfishv3/glassfish/modules/activation.jar:/opt/glassfishv3/glassfish/modules/admin-cli.jar:/opt/glassfishv3/glassfish/modules/admin-core.jar:/opt/glassfishv3/glassfish/modules/admin-util.jar:/opt/glassfishv3/glassfish/modules/amx-config-impl.jar:/opt/glassfishv3/glassfish/modules/amx-config.jar:/opt/glassfishv3/glassfish/modules/amx-core-impl.jar:/opt/glassfishv3/glassfish/modules/amx-core.jar:/opt/glassfishv3/glassfish/modules/amx-ext-impl.jar:/opt/glassfishv3/glassfish/modules/amx-j2ee-impl.jar:/opt/glassfishv3/glassfish/modules/amx-j2ee.jar:/opt/glassfishv3/glassfish/modules/annotation-framework.jar:/opt/glassfishv3/glassfish/modules/ant.jar:/opt/glassfishv3/glassfish/modules/antlr-repackaged.jar:/opt/glassfishv3/glassfish/modules/apache-commons.jar:/opt/glassfishv3/glassfish/modules/api-exporter.jar:/opt/glassfishv3/glassfish/modules/appclient-connector.jar:/opt/glassfishv3/glassfish/modules/appclient-server-core.jar:/opt/glassfishv3/glassfish/modules/appclient.security.jar:/opt/glassfishv3/glassfish/modules/asm-all-repackaged.jar:/opt/glassfishv3/glassfish/modules/auto-depends.jar:/opt/glassfishv3/glassfish/modules/bean-validator.jar:/opt/glassfishv3/glassfish/modules/branding-fragment.jar:/opt/glassfishv3/glassfish/modules/branding.jar:/opt/glassfishv3/glassfish/modules/cli-framework.jar:/opt/glassfishv3/glassfish/modules/cli-optional.jar:/opt/glassfishv3/glassfish/modules/cmp-ejb-mapping.jar:/opt/glassfishv3/glassfish/modules/cmp-enhancer.jar:/opt/glassfishv3/glassfish/modules/cmp-generator-database.jar:/opt/glassfishv3/glassfish/modules/cmp-model.jar:/opt/glassfishv3/glassfish/modules/cmp-support-ejb.jar:/opt/glassfishv3/glassfish/modules/cmp-support-sqlstore.jar:/opt/glassfishv3/glassfish/modules/cmp-utility.jar:/opt/glassfishv3/glassfish/modules/common-util.jar:/opt/glassfishv3/glassfish/modules/commons-codec-repackaged.jar:/opt/glassfishv3/glassfish/modules/config-api.jar:/opt/glassfishv3/glassfish/modules/config.jar:/opt/glassfishv3/glassfish/modules/connectors-admin.jar:/opt/glassfishv3/glassfish/modules/connectors-inbound-runtime.jar:/opt/glassfishv3/glassfish/modules/connectors-internal-api.jar:/opt/glassfishv3/glassfish/modules/connectors-runtime.jar:/opt/glassfishv3/glassfish/modules/console-common-full-plugin.jar:/opt/glassfishv3/glassfish/modules/console-common.jar:/opt/glassfishv3/glassfish/modules/console-community-branding-plugin.jar:/opt/glassfishv3/glassfish/modules/console-corba-plugin.jar:/opt/glassfishv3/glassfish/modules/console-custom-branding-plugin.jar:/opt/glassfishv3/glassfish/modules/console-ejb-lite-plugin.jar:/opt/glassfishv3/glassfish/modules/console-ejb-plugin.jar:/opt/glassfishv3/glassfish/modules/console-jca-plugin.jar:/opt/glassfishv3/glassfish/modules/console-jdbc-plugin.jar:/opt/glassfishv3/glassfish/modules/console-jms-plugin.jar:/opt/glassfishv3/glassfish/modules/console-jruby-plugin.jar:/opt/glassfishv3/glassfish/modules/console-jts-plugin.jar:/opt/glassfishv3/glassfish/modules/console-plugin-service.jar:/opt/glassfishv3/glassfish/modules/console-updatecenter-plugin.jar:/opt/glassfishv3/glassfish/modules/console-web-plugin.jar:/opt/glassfishv3/glassfish/modules/container-common.jar:/opt/glassfishv3/glassfish/modules/dataprovider.jar:/opt/glassfishv3/glassfish/modules/dbschema-repackaged.jar:/opt/glassfishv3/glassfish/modules/deployment-admin.jar:/opt/glassfishv3/glassfish/modules/deployment-autodeploy.jar:/opt/glassfishv3/glassfish/modules/deployment-client.jar:/opt/glassfishv3/glassfish/modules/deployment-common.jar:/opt/glassfishv3/glassfish/modules/deployment-javaee-core.jar:/opt/glassfishv3/glassfish/modules/deployment-javaee-full.jar:/opt/glassfishv3/glassfish/modules/dol.jar:/opt/glassfishv3/glassfish/modules/ejb-container.jar:/opt/glassfishv3/glassfish/modules/ejb-internal-api.jar:/opt/glassfishv3/glassfish/modules/ejb.security.jar:/opt/glassfishv3/glassfish/modules/el-impl.jar:/opt/glassfishv3/glassfish/modules/extra-jdk-packages.jar:/opt/glassfishv3/glassfish/modules/flashlight-agent.jar:/opt/glassfishv3/glassfish/modules/flashlight-framework.jar:/opt/glassfishv3/glassfish/modules/gf-client-module.jar:/opt/glassfishv3/glassfish/modules/gf-client.jar:/opt/glassfishv3/glassfish/modules/gf-connectors-connector.jar:/opt/glassfishv3/glassfish/modules/gf-ejb-connector.jar:/opt/glassfishv3/glassfish/modules/gf-jruby-connector.jar:/opt/glassfishv3/glassfish/modules/gf-web-connector.jar:/opt/glassfishv3/glassfish/modules/gfprobe-provider-client.jar:/opt/glassfishv3/glassfish/modules/glassfish-api.jar:/opt/glassfishv3/glassfish/modules/glassfish-corba-asm.jar:/opt/glassfishv3/glassfish/modules/glassfish-corba-codegen.jar:/opt/glassfishv3/glassfish/modules/glassfish-corba-csiv2-idl.jar:/opt/glassfishv3/glassfish/modules/glassfish-corba-newtimer.jar:/opt/glassfishv3/glassfish/modules/glassfish-corba-omgapi.jar:/opt/glassfishv3/glassfish/modules/glassfish-corba-orb.jar:/opt/glassfishv3/glassfish/modules/glassfish-corba-orbgeneric.jar:/opt/glassfishv3/glassfish/modules/glassfish-ee-api.jar:/opt/glassfishv3/glassfish/modules/glassfish-extra-jre-packages.jar:/opt/glassfishv3/glassfish/modules/glassfish-mbeanserver.jar:/opt/glassfishv3/glassfish/modules/glassfish-naming.jar:/opt/glassfishv3/glassfish/modules/glassfish-oracle-jdbc-driver-packages.jar:/opt/glassfishv3/glassfish/modules/glassfish-registration.jar:/opt/glassfishv3/glassfish/modules/glassfish.jar:/opt/glassfishv3/glassfish/modules/gmbal.jar:/opt/glassfishv3/glassfish/modules/grizzly-comet.jar:/opt/glassfishv3/glassfish/modules/grizzly-config.jar:/opt/glassfishv3/glassfish/modules/grizzly-container.jar:/opt/glassfishv3/glassfish/modules/grizzly-framework.jar:/opt/glassfishv3/glassfish/modules/grizzly-http-servlet.jar:/opt/glassfishv3/glassfish/modules/grizzly-http.jar:/opt/glassfishv3/glassfish/modules/grizzly-jruby-module.jar:/opt/glassfishv3/glassfish/modules/grizzly-jruby.jar:/opt/glassfishv3/glassfish/modules/grizzly-portunif.jar:/opt/glassfishv3/glassfish/modules/grizzly-rcm.jar:/opt/glassfishv3/glassfish/modules/grizzly-utils.jar:/opt/glassfishv3/glassfish/modules/hk2-core.jar:/opt/glassfishv3/glassfish/modules/hk2.jar:/opt/glassfishv3/glassfish/modules/imqjmx.jar:/opt/glassfishv3/glassfish/modules/inmemory.jacc.provider.jar:/opt/glassfishv3/glassfish/modules/internal-api.jar:/opt/glassfishv3/glassfish/modules/jackson-asl.jar:/opt/glassfishv3/glassfish/modules/javax.annotation.jar:/opt/glassfishv3/glassfish/modules/javax.ejb.jar:/opt/glassfishv3/glassfish/modules/javax.enterprise.deploy.jar:/opt/glassfishv3/glassfish/modules/javax.jms.jar:/opt/glassfishv3/glassfish/modules/javax.mail.jar:/opt/glassfishv3/glassfish/modules/javax.management.j2ee.jar:/opt/glassfishv3/glassfish/modules/javax.persistence.jar:/opt/glassfishv3/glassfish/modules/javax.resource.jar:/opt/glassfishv3/glassfish/modules/javax.security.auth.message.jar:/opt/glassfishv3/glassfish/modules/javax.security.jacc.jar:/opt/glassfishv3/glassfish/modules/javax.servlet.jar:/opt/glassfishv3/glassfish/modules/javax.servlet.jsp.jar:/opt/glassfishv3/glassfish/modules/javax.servlet.jsp.jstl.jar:/opt/glassfishv3/glassfish/modules/javax.transaction.jar:/opt/glassfishv3/glassfish/modules/jaxb-osgi.jar:/opt/glassfishv3/glassfish/modules/jdbc-admin.jar:/opt/glassfishv3/glassfish/modules/jersey-gf-bundle.jar:/opt/glassfishv3/glassfish/modules/jersey-multipart.jar:/opt/glassfishv3/glassfish/modules/jettison.jar:/opt/glassfishv3/glassfish/modules/jms-admin.jar:/opt/glassfishv3/glassfish/modules/jms-core.jar:/opt/glassfishv3/glassfish/modules/jmxremote_optional-repackaged.jar:/opt/glassfishv3/glassfish/modules/jpa-connector.jar:/opt/glassfishv3/glassfish/modules/jsf-api.jar:/opt/glassfishv3/glassfish/modules/jsf-connector.jar:/opt/glassfishv3/glassfish/modules/jsf-impl.jar:/opt/glassfishv3/glassfish/modules/jsftemplating.jar:/opt/glassfishv3/glassfish/modules/jsp-impl.jar:/opt/glassfishv3/glassfish/modules/jspcaching-connector.jar:/opt/glassfishv3/glassfish/modules/jsr109-impl.jar:/opt/glassfishv3/glassfish/modules/jsr311-api.jar:/opt/glassfishv3/glassfish/modules/jstl-connector.jar:/opt/glassfishv3/glassfish/modules/jstl-impl.jar:/opt/glassfishv3/glassfish/modules/jta.jar:/opt/glassfishv3/glassfish/modules/jts.jar:/opt/glassfishv3/glassfish/modules/kernel.jar:/opt/glassfishv3/glassfish/modules/launcher.jar:/opt/glassfishv3/glassfish/modules/ldapbp-repackaged.jar:/opt/glassfishv3/glassfish/modules/mail.jar:/opt/glassfishv3/glassfish/modules/management-api.jar:/opt/glassfishv3/glassfish/modules/mimepull.jar:/opt/glassfishv3/glassfish/modules/monitoring-core.jar:/opt/glassfishv3/glassfish/modules/orb-connector.jar:/opt/glassfishv3/glassfish/modules/orb-iiop.jar:/opt/glassfishv3/glassfish/modules/org.apache.felix.configadmin.jar:/opt/glassfishv3/glassfish/modules/org.apache.felix.fileinstall.jar:/opt/glassfishv3/glassfish/modules/org.apache.felix.scr.jar:/opt/glassfishv3/glassfish/modules/org.apache.felix.shell.jar:/opt/glassfishv3/glassfish/modules/org.apache.felix.shell.remote.jar:/opt/glassfishv3/glassfish/modules/org.apache.felix.shell.tui.jar:/opt/glassfishv3/glassfish/modules/org.eclipse.persistence.antlr.jar:/opt/glassfishv3/glassfish/modules/org.eclipse.persistence.asm.jar:/opt/glassfishv3/glassfish/modules/org.eclipse.persistence.core.jar:/opt/glassfishv3/glassfish/modules/org.eclipse.persistence.jpa.jar:/opt/glassfishv3/glassfish/modules/org.eclipse.persistence.oracle.jar:/opt/glassfishv3/glassfish/modules/osgi-adapter.jar:/opt/glassfishv3/glassfish/modules/osgi-container.jar:/opt/glassfishv3/glassfish/modules/osgi-main.jar:/opt/glassfishv3/glassfish/modules/osgi-web-container.jar:/opt/glassfishv3/glassfish/modules/persistence-common.jar:/opt/glassfishv3/glassfish/modules/pkg-client.jar:/opt/glassfishv3/glassfish/modules/registration-api.jar:/opt/glassfishv3/glassfish/modules/registration-impl.jar:/opt/glassfishv3/glassfish/modules/rest-service.jar:/opt/glassfishv3/glassfish/modules/schema2beans-repackaged.jar:/opt/glassfishv3/glassfish/modules/security.jar:/opt/glassfishv3/glassfish/modules/server-mgmt.jar:/opt/glassfishv3/glassfish/modules/stats77.jar:/opt/glassfishv3/glassfish/modules/sysnet-registration-repackaged.jar:/opt/glassfishv3/glassfish/modules/tiger-types-osgi.jar:/opt/glassfishv3/glassfish/modules/transaction-internal-api.jar:/opt/glassfishv3/glassfish/modules/war-util.jar:/opt/glassfishv3/glassfish/modules/web-ajp.jar:/opt/glassfishv3/glassfish/modules/web-cli.jar:/opt/glassfishv3/glassfish/modules/web-core.jar:/opt/glassfishv3/glassfish/modules/web-embed-api.jar:/opt/glassfishv3/glassfish/modules/web-embed-impl.jar:/opt/glassfishv3/glassfish/modules/web-glue.jar:/opt/glassfishv3/glassfish/modules/web-gui-plugin-common.jar:/opt/glassfishv3/glassfish/modules/web-naming.jar:/opt/glassfishv3/glassfish/modules/webbeans-integration.jar:/opt/glassfishv3/glassfish/modules/webbeans-osgi-bundle.jar:/opt/glassfishv3/glassfish/modules/websecurity.jar:/opt/glassfishv3/glassfish/modules/webservices-osgi.jar:/opt/glassfishv3/glassfish/modules/webservices.security.jar:/opt/glassfishv3/glassfish/modules/work-management.jar:/opt/glassfishv3/glassfish/bin:/opt/apache-ant-1.7.1/lib/ant-launcher.jar:/opt/apache-ant-1.7.1/lib/ant-antlr.jar:/opt/apache-ant-1.7.1/lib/ant-apache-bcel.jar:/opt/apache-ant-1.7.1/lib/ant-apache-bsf.jar:/opt/apache-ant-1.7.1/lib/ant-apache-log4j.jar:/opt/apache-ant-1.7.1/lib/ant-apache-oro.jar:/opt/apache-ant-1.7.1/lib/ant-apache-regexp.jar:/opt/apache-ant-1.7.1/lib/ant-apache-resolver.jar:/opt/apache-ant-1.7.1/lib/ant-commons-logging.jar:/opt/apache-ant-1.7.1/lib/ant-commons-net.jar:/opt/apache-ant-1.7.1/lib/ant-jai.jar:/opt/apache-ant-1.7.1/lib/ant-javamail.jar:/opt/apache-ant-1.7.1/lib/ant-jdepend.jar:/opt/apache-ant-1.7.1/lib/ant-jmf.jar:/opt/apache-ant-1.7.1/lib/ant.jar:/opt/apache-ant-1.7.1/lib/ant-jsch.jar:/opt/apache-ant-1.7.1/lib/ant-junit.jar:/opt/apache-ant-1.7.1/lib/ant-netrexx.jar:/opt/apache-ant-1.7.1/lib/ant-nodeps.jar:/opt/apache-ant-1.7.1/lib/ant-starteam.jar:/opt/apache-ant-1.7.1/lib/ant-stylebook.jar:/opt/apache-ant-1.7.1/lib/ant-swing.jar:/opt/apache-ant-1.7.1/lib/ant-testutil.jar:/opt/apache-ant-1.7.1/lib/ant-trax.jar:/opt/apache-ant-1.7.1/lib/ant-weblogic.jar:/opt/apache-ant-1.7.1/lib/xercesImpl.jar:/opt/apache-ant-1.7.1/lib/xml-apis.jar:/opt/jdk1.6.0_13/lib/tools.jar' [javac] '-sourcepath' [javac] '/opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java' [javac] '-target' [javac] '1.5' [javac] '-g:lines,vars,source' [javac] '-source' [javac] '1.5' [javac] [javac] The ' characters around the executable and arguments are [javac] not part of the command. [javac] Files to be compiled: [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Game.java [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Generator.java [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/MaxNumber.java [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Random.java [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Game.java:44: package javax.context does not exist [javac] import javax.context.Conversation; [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Game.java:45: package javax.context does not exist [javac] import javax.context.ConversationScoped; [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Game.java:46: package javax.context does not exist [javac] import javax.context.SessionScoped; [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Game.java:51: package javax.inject does not exist [javac] import javax.inject.AnnotationLiteral; [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Game.java:52: package javax.inject does not exist [javac] import javax.inject.Current; [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Game.java:53: package javax.inject.manager does not exist [javac] import javax.inject.manager.Manager; [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Game.java:61: cannot find symbol [javac] symbol: class ConversationScoped [javac] @ConversationScoped [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Game.java:74: cannot find symbol [javac] symbol : class Manager [javac] location: class webbeansguess.Game [javac] @Current Manager manager; [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Game.java:76: cannot find symbol [javac] symbol : class Conversation [javac] location: class webbeansguess.Game [javac] private @Current Conversation conversation; [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Generator.java:42: package javax.context does not exist [javac] import javax.context.ApplicationScoped; [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Generator.java:43: package javax.inject does not exist [javac] import javax.inject.Produces; [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Generator.java:45: cannot find symbol [javac] symbol: class ApplicationScoped [javac] @ApplicationScoped [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/MaxNumber.java:50: package javax.inject does not exist [javac] import javax.inject.BindingType; [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/MaxNumber.java:55: cannot find symbol [javac] symbol: class BindingType [javac] @BindingType [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Random.java:50: package javax.inject does not exist [javac] import javax.inject.BindingType; [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Random.java:55: cannot find symbol [javac] symbol: class BindingType [javac] @BindingType [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Game.java:74: cannot find symbol [javac] symbol : class Current [javac] location: class webbeansguess.Game [javac] @Current Manager manager; [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Game.java:76: cannot find symbol [javac] symbol : class Current [javac] location: class webbeansguess.Game [javac] private @Current Conversation conversation; [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Generator.java:58: cannot find symbol [javac] symbol : class Produces [javac] location: class webbeansguess.Generator [javac] @Produces @Random int next() { [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Generator.java:62: cannot find symbol [javac] symbol : class Produces [javac] location: class webbeansguess.Generator [javac] @Produces @MaxNumber int getMaxNumber() { [javac] ^ [javac] /opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess/src/java/webbeansguess/Game.java:152: cannot find symbol [javac] symbol : class AnnotationLiteral [javac] location: class webbeansguess.Game [javac] this.number = manager.getInstanceByType(Integer.class, new AnnotationLiteral(){}); [javac] ^ [javac] 21 errors

BUILD FAILED /opt/glassfishv3/glassfish/samples/bp-project/command-line-ant-tasks.xml:81: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1079) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor1.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:106) 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:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 6 seconds jed-asqe-15#/opt/glassfishv3/glassfish/samples/javaee6/webbeans/webbeans-guess]

glassfishrobot commented 15 years ago

@glassfishrobot Commented rogerk said: I checked in the code to make this work with latest GlassFish/WebBeans inegration. The updated sample code was checked in :

revision 1.3 date: 2009/07/30 17:56:59; author: rogerk; state: Exp; lines: +102 -159 update to work with 1.0.0.PREVIEW2.SP2 of webbeans

Transferring to Jane for investigation as to why this was not included in the sdk build.

glassfishrobot commented 15 years ago

@glassfishrobot Commented janey said: The glassfish-samples project didn't get promoted so it never made it in GlassFish SDK distro. There is a disconnect in the process. When there is a commit in glassfish-samples project, someone needs to be informed so that a build and promotion can happen and thus gets bundled in GlassFish SDK distro.

Anyway, a glassfish-samples is promoted (version 0.9-b4 ) and GlassFish v3 workspace is updated so that the build downloads this version of samples.

Should be fixed in tonight's build.

glassfishrobot commented 15 years ago

@glassfishrobot Commented File: webbeans-guess.war Attached By: easarina

glassfishrobot commented 15 years ago

@glassfishrobot Commented Was assigned to janey

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-8919

glassfishrobot commented 15 years ago

@glassfishrobot Commented Reported by easarina

glassfishrobot commented 15 years ago

@glassfishrobot Commented Marked as fixed on Thursday, August 6th 2009, 8:54:47 pm