Issue Details (XML | Word | Printable)

Key: JAVAEETUTORIAL-149
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Ian Evans
Reporter: karthikannadurai
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
javaeetutorial

I deployed web service but ESI did not created

Created: 31/Jan/13 01:34 PM   Updated: 06/Feb/13 07:59 PM   Resolved: 06/Feb/13 07:59 PM
Component/s: examples
Affects Version/s: 6.0.8
Fix Version/s: None

Time Tracking:
Not Specified

Environment:

Platform: Linux


Tags:
Participants: Ian Evans and karthikannadurai


 Description  « Hide

I used javaee-tutorial6 for creating web service. I run the deploy command and i got deployed successfully message.
Then i put ESI(Endpoint Service Interface)url in browser, but it shows "The requested resource () is not available."
Pl help to solve this issue.



Ian Evans added a comment - 31/Jan/13 05:37 PM

Which example is causing this error? Please give us the specific example, the steps you took, and error message so we can investigate.


karthikannadurai added a comment - 01/Feb/13 12:50 PM

I am using j2eetutorial6. In that i am using the helloservice examples of jaxws.
Compile: ant
Deploy: ant deploy
I got below mentioned ESI(Endpoint Service Interface)
http://localhost:8080/helloservice
While i put into browser, i got "The requested resource () is not available" error meaasge.


Ian Evans added a comment - 01/Feb/13 07:24 PM

Can you test the service at this URL?
http://localhost:8080/helloservice/HelloService?Tester


karthikannadurai added a comment - 02/Feb/13 05:13 AM

Yes. I already test it and it also give same error.


Ian Evans added a comment - 03/Feb/13 09:37 PM

I'm unable to reproduce this error. Testing at
http://localhost:8080/helloservice/HelloService?Tester
and with the clients works with no errors.

Take a look at your server.log ($glassfish_home/domains/domain1/logs/serverlog) to look for deployment or runtime errors.


karthikannadurai added a comment - 04/Feb/13 11:02 AM

I test it. I got below message in the server.log file.
helloservice was successfully deployed


Ian Evans added a comment - 04/Feb/13 07:12 PM

So the service is definitely deployed. You should be able to see information about the service, then, by going to the endpoint address:
http://localhost:8080/helloservice/HelloService

There is basically no way that the service was deployed correctly AND you get a "The requested resource () is not available" error message at the above URL. There is a lot more information in server.log. You can attach the server.log file and I'll take a look at it.


karthikannadurai added a comment - 05/Feb/13 05:33 AM - edited

This is server log file.
server.log:

Feb 5, 2013 10:59:49 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: JVM invocation command line:
/home/applir12/glassfish3/jdk/bin/java
-cp
/home/applir12/glassfish3/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-XX:NewRatio=2
-Xmx512m
-javaagent:/home/applir12/glassfish3/glassfish/lib/monitor/btrace-agent.jar=unsafe=true,noServer=true
-client
-Dosgi.shell.telnet.maxconn=1
-Dfelix.fileinstall.disableConfigSave=false
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Dfelix.fileinstall.dir=/home/applir12/glassfish3/glassfish/modules/autostart/
-Djavax.net.ssl.keyStore=/home/applir12/glassfish3/glassfish/domains/domain1/config/keystore.jks
-Dosgi.shell.telnet.port=6666
-Djava.security.policy=/home/applir12/glassfish3/glassfish/domains/domain1/config/server.policy
-Dfelix.fileinstall.log.level=2
-Dfelix.fileinstall.poll=5000
-Dcom.sun.aas.instanceRoot=/home/applir12/glassfish3/glassfish/domains/domain1
-Dosgi.shell.telnet.ip=127.0.0.1
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Djava.endorsed.dirs=/home/applir12/glassfish3/glassfish/modules/endorsed:/home/applir12/glassfish3/glassfish/lib/endorsed
-Dcom.sun.aas.installRoot=/home/applir12/glassfish3/glassfish
-Dfelix.fileinstall.bundles.startTransient=true
-Djava.ext.dirs=/home/applir12/glassfish3/jdk/lib/ext:/home/applir12/glassfish3/jdk/jre/lib/ext:/home/applir12/glassfish3/glassfish/domains/domain1/lib/ext
-Dfelix.fileinstall.bundles.new.start=true
-Djavax.net.ssl.trustStore=/home/applir12/glassfish3/glassfish/domains/domain1/config/cacerts.jks
-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Djava.security.auth.login.config=/home/applir12/glassfish3/glassfish/domains/domain1/config/login.conf
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Dgosh.args=--nointeractive
-Djava.library.path=/home/applir12/glassfish3/glassfish/lib:/home/applir12/glassfish3/jdk/jre/lib/i386/server:
/home/applir12/glassfish3/jdk/jre/lib/i386:
/home/applir12/glassfish3/jdk/lib/i386:
/ir12/d01/oracle/ir12/apps/tech_st/10.1.2/jdk/jre/lib/i386:
/ir12/d01/oracle/ir12/apps/tech_st/10.1.2/jdk/jre/lib/i386/server:
/ir12/d01/oracle/ir12/apps/tech_st/10.1.2/jdk/jre/lib/i386/native_threads:
/ir12/d01/oracle/ir12/apps/apps_st/appl/cz/12.0.0/bin:
/ir12/d01/oracle/ir12/apps/tech_st/10.1.2/lib32:
/ir12/d01/oracle/ir12/apps/tech_st/10.1.2/lib:
/usr/X11R6/lib:/usr/openwin/lib:/ir12/d01/oracle/ir12/apps/apps_st/appl/sht/12.0.0/lib:
/usr/java/packages/lib/i386:/lib:/usr/lib
com.sun.enterprise.glassfish.bootstrap.ASMain
-domainname
domain1
-asadmin-args
--host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--echo=false,,,--interactive=true,,,start-domain,,,--verbose=false,,,--debug=false,,,--domaindir,,,/home/applir12/glassfish3/glassfish/domains,,,domain1
-instancename
server
-verbose
false
-debug
false
-asadmin-classpath
/home/applir12/glassfish3/glassfish/modules/admin-cli.jar
-asadmin-classname
com.sun.enterprise.admin.cli.AsadminMain
-upgrade
false
-type
DAS
-domaindir
/home/applir12/glassfish3/glassfish/domains/domain1
-read-stdin
true
Feb 5, 2013 10:59:50 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: Successfully launched in 15 msec.
[#|2013-02-05T11:00:01.505+0530|INFO|glassfish3.1|null|_ThreadID=1;_ThreadName=Thread-1;|Running GlassFish Version: GlassFish Server Open Source Edition 3.1 (build 43)|#]

[#|2013-02-05T11:00:01.719+0530|INFO|glassfish3.1|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=10;_ThreadName=Thread-1;|Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry|#]

[#|2013-02-05T11:00:02.940+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=32;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 396ms - bound to [0.0.0.0:8181]|#]

[#|2013-02-05T11:00:02.941+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=30;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 315ms - bound to [0.0.0.0:3700]|#]

[#|2013-02-05T11:00:02.956+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=31;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 307ms - bound to [0.0.0.0:7676]|#]

[#|2013-02-05T11:00:02.957+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 476ms - bound to [0.0.0.0:8080]|#]

[#|2013-02-05T11:00:02.958+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=29;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 395ms - bound to [0.0.0.0:4848]|#]

[#|2013-02-05T11:00:03.331+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=1;_ThreadName=Thread-1;|The Admin Console is already installed, but not yet loaded.|#]

[#|2013-02-05T11:00:05.785+0530|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=1;_ThreadName=Thread-1;|SEC1002: Security Manager is OFF.|#]

[#|2013-02-05T11:00:06.194+0530|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=1;_ThreadName=Thread-1;|SEC1010: Entering Security Startup Service|#]

[#|2013-02-05T11:00:06.212+0530|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=1;_ThreadName=Thread-1;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]

[#|2013-02-05T11:00:06.370+0530|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=1;_ThreadName=Thread-1;|SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.|#]

[#|2013-02-05T11:00:06.373+0530|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=1;_ThreadName=Thread-1;|SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.|#]

[#|2013-02-05T11:00:06.386+0530|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=1;_ThreadName=Thread-1;|SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.|#]

[#|2013-02-05T11:00:06.412+0530|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=1;_ThreadName=Thread-1;|SEC1011: Security Service(s) Started Successfully|#]

[#|2013-02-05T11:00:07.800+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]|#]

[#|2013-02-05T11:00:07.814+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]|#]

[#|2013-02-05T11:00:07.826+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848]|#]

[#|2013-02-05T11:00:07.925+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0171: Created virtual server [server]|#]

[#|2013-02-05T11:00:07.931+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0171: Created virtual server [__asadmin]|#]

[#|2013-02-05T11:00:10.231+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0172: Virtual server [server] loaded default web module []|#]

[#|2013-02-05T11:00:14.164+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0671: Loading application [helloservice] at [/helloservice]|#]

[#|2013-02-05T11:00:14.167+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-1;|CORE10010: Loading application helloservice done in 10,572 ms|#]

[#|2013-02-05T11:00:14.171+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-1;|GlassFish Server Open Source Edition 3.1 (43) startup time : Felix (9,467ms), startup services(13,799ms), total(23,266ms)|#]

[#|2013-02-05T11:00:14.969+0530|INFO|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=45;_ThreadName=Thread-1;|JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://server2.yantro.com:8686/jndi/rmi://server2.yantro.com:8686/jmxrmi|#]

[#|2013-02-05T11:00:57.371+0530|INFO|glassfish3.1|org.hibernate.validator.util.Version|_ThreadID=17;_ThreadName=Thread-1;|Hibernate Validator 4.1.0.Final|#]

[#|2013-02-05T11:00:57.402+0530|INFO|glassfish3.1|org.hibernate.validator.engine.resolver.DefaultTraversableResolver|_ThreadID=17;_ThreadName=Thread-1;|Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.|#]

[#|2013-02-05T11:00:58.720+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=62;_ThreadName=Thread-1;|WEB0671: Loading application [helloservice] at [/helloservice]|#]

[#|2013-02-05T11:00:58.778+0530|INFO|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=62;_ThreadName=Thread-1;|helloservice was successfully deployed in 1,622 milliseconds.|#]

Ian Evans added a comment - 05/Feb/13 05:50 PM

Something is not right with your WAR. This is the relevant lines from my server.log:

[#|2013-02-03T13:31:53.361-0800|INFO|glassfish3.1.2|javax.enterprise.webservices.org.glassfish.webservices|_ThreadID=34;_ThreadName=Thread-2;|WS00018: Webservice Endpoint deployed
 Hello  listening at address at http://ievans-pc:8080/helloservice/HelloService|#]
[#|2013-02-03T13:31:54.267-0800|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=34;_ThreadName=Thread-2;|WEB0671: Loading application [helloservice] at [/helloservice]|#]
[#|2013-02-03T13:31:54.423-0800|INFO|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=34;_ThreadName=Thread-2;|helloservice was successfully deployed in 2,515 milliseconds.|#]
[#|2013-02-03T13:33:46.032-0800|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=119;_ThreadName=Thread-2;|parsing WSDL...
|#]
[#|2013-02-03T13:33:46.298-0800|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=119;_ThreadName=Thread-2;|
Generating code...
|#]
[#|2013-02-03T13:33:46.360-0800|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=119;_ThreadName=Thread-2;|
Compiling code...
|#]
[#|2013-02-03T13:33:46.891-0800|INFO|glassfish3.1.2|javax.enterprise.webservices.org.glassfish.webservices.monitoring|_ThreadID=119;_ThreadName=Thread-2;|Invoking wsimport with http://localhost:8080/helloservice/HelloService?WSDL|#]
[#|2013-02-03T13:33:46.891-0800|INFO|glassfish3.1.2|javax.enterprise.webservices.org.glassfish.webservices.monitoring|_ThreadID=119;_ThreadName=Thread-2;|wsimport successful|#]

I want you to do a first clean up your environment, then rebuild and deploy the WAR, and see if the same behavior occurs again. If it does, I want you to add the WAR as an attachment to this issue. So please follow these steps:

  1. Undeploy the current helloservice.
    ant undeploy
  2. Restart GlassFish.
    ${glassfish_home}/bin/asadmin stop-domain domain1
    ${glassfish_home}/bin/asadmin start-domain domain1
  3. Clean your workspace.
    ant clean
  4. Build and deploy helloservice.
    ant all
  5. Open the server.log file and look for "Webservice Endpoint deployed Hello listening at http://localhost:8080/helloservice/HelloService". If it's there, test it at http://localhost:8080/helloservice/HelloService?Tester.
  6. If it's not there, and you get the same error at the test URL, attach the helloservice.war in the dist directory to this issue.

karthikannadurai added a comment - 05/Feb/13 06:33 PM

I do not know how to attach a file with this place. Please give any idea.


karthikannadurai added a comment - 05/Feb/13 07:19 PM - edited

I extract my helloservice.war. I got below mentioned files.

META-INF/
META-INF/MANIFEST.MF
WEB-INF/
WEB-INF/classes/
WEB-INF/classes/META-INF/
WEB-INF/sun-web.xml
WEB-INF/web.xml

It did not contains wsdl and class files. What mistake i did?


Ian Evans added a comment - 05/Feb/13 08:00 PM - edited

I've never seen this before. Please send the entire output of the build step:

ant

karthikannadurai added a comment - 05/Feb/13 09:12 PM - edited

While i run ant i got below mentioned messages.

[applir12@server2 helloservice]$ ant
Buildfile: build.xml

-pre-init:

init:

default-ear:

-pre-compile:

bpp-actual-compilation:
     [echo] Compiling helloservice
     [echo] javaee.classpath.prefix is: /home/applir12/glassfish3/glassfish/lib
     [echo] is.glassfish.v3 is: ${is.glassfish.v3}


-post-compile:

compile:

package:
    [mkdir] Created dir: /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/war

bp-copy-classes:
    [mkdir] Created dir: /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/war/WEB-INF/classes
     [copy] Copying 1 file to /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/war/WEB-INF/classes
     [copy] Copying 3 files to /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/war

bpp-package-persistence-unit-war:
    [mkdir] Created dir: /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/war/WEB-INF/classes/META-INF
     [copy] Warning: Could not find file /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/src/conf/persistence.xml to copy.
     [copy] Warning: Could not find file /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/src/conf/persistence.xml to copy.

bpp-package-persistence-unit-ejb-jar:

package-persistence-unit:
   [delete] Deleting: /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/helloservice.war
      [jar] Building jar: /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/helloservice.war
   [delete] Deleting directory /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/war

bpp-copy-dist:
     [copy] Copying 1 file to /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/dist

default-not-ear:

default:

BUILD SUCCESSFUL
Total time: 0 seconds
[applir12@server2 helloservice]$

Ian Evans added a comment - 05/Feb/13 09:40 PM

This line indicates that something is wrong with your configuration:

[echo] javaee.classpath.prefix is: /home/applir12/glassfish3/glassfish/lib
[echo] is.glassfish.v3 is: ${is.glassfish.v3}

The is.glassfish.v3 property should resolve to true. The build files set is.glassfish.v3 based on the javaee.home property, which is likely not correct. How did you install the Tutorial? From the GlassFish Update Center?

What is contents of ${tutorial_home}/examples/bp-project/build.properties?


karthikannadurai added a comment - 06/Feb/13 06:47 AM - edited

This is my build.property file:

# Sets the property javaee.home, using the path to your 
# GlassFish installation.
# 
# If you installed the Tutorial using the Update Tool,
# don't modify this property.
#
javaee.home=/home/applir12/glassfish3/glassfish

# Sets the property javaee.tutorial.home to the location where you 
# installed the Java EE Tutorial bundle.
#
# If you installed the Tutorial using the Update Tool,
# don't modify this property
#
javaee.tutorial.home=/ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial

# machine name (or the IP address) where the applications will be deployed.
javaee.server.name=server2.yantro.com

# port number where GlassFish applications are accessed by users
javaee.server.port=8080

# port number where the Admin Console of GlassFish is available
javaee.adminserver.port=4848


# If you specified an admin username when you installed GlassFish v3
# uncomment the property javaee.server.username, 
# and replace the administrator username of the app-server 
#javaee.server.username=admin

# If specified a password when you installed GlassFish v3
# uncomment the property javaee.server.passwordfile, 
# and replace the following line to point to a file that 
# contains the admin password for your app-server. 
# The file should contain the password in the following line: 
#
#AS_ADMIN_PASSWORD=adminadmin
#
# Notice that the password is adminadmin since this is 
# the default password used by GlassFish.
#
#javaee.server.passwordfile=${javaee.tutorial.home}/examples/common/admin-password.txt

appserver.instance=server

# Uncomment and set this property to the location of the browser you 
# choose to launch when an application is deployed.
# On Windows and Mac OS X the OS default browser is used.
default.browser=/usr/bin/firefox

# Database vendor property for db tasks
# JavaDB is the default database vendor. See the settings in javadb.properties
db.vendor=javadb

Ian Evans added a comment - 06/Feb/13 05:14 PM

Ok, your javaee.home property isn't set correctly. It should be:

javaee.home=/home/applir12/glassfish3

karthikannadurai added a comment - 06/Feb/13 06:06 PM - edited

I modified it.
javaee.home=/home/applir12/glassfish3
Then i got below message while i run the ant.Till now service did not created.

[applir12@server2 helloservice]$ ant
Buildfile: build.xml

-pre-init:

init:

default-ear:

-pre-compile:

bpp-actual-compilation:
     [echo] Compiling helloservice
     [echo] javaee.classpath.prefix is: /home/applir12/glassfish3/glassfish/modules
     [echo] is.glassfish.v3 is: true


-post-compile:

compile:

package:
    [mkdir] Created dir: /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/war

bp-copy-classes:
    [mkdir] Created dir: /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/war/WEB-INF/classes
     [copy] Copying 2 files to /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/web
     [copy] Copying 2 files to /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/war

bpp-package-persistence-unit-war:
    [mkdir] Created dir: /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/war/WEB-INF/classes/META-INF
     [copy] Warning: Could not find file /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/src/conf/persistence.xml to copy.
     [copy] Warning: Could not find file /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/src/conf/persistence.xml to copy.

bpp-package-persistence-unit-ejb-jar:

package-persistence-unit:
      [jar] Building jar: /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/helloservice.war
   [delete] Deleting directory /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/build/war

bpp-copy-dist:
    [mkdir] Created dir: /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/dist
     [copy] Copying 1 file to /ir12/d01/oracle/ir12/apps/apps_st/comn/java/classes/oracle/apps/xxpyx/webservices/javaee-tutorial/examples/jaxws/helloservice/dist

default-not-ear:

default:

BUILD SUCCESSFUL
Total time: 0 seconds
[applir12@server2 helloservice]$

Ian Evans added a comment - 06/Feb/13 06:11 PM

Have you tried deploying it? The output looks correct. The warnings about persistence.xml not being found can be ignored.


karthikannadurai added a comment - 06/Feb/13 06:34 PM - edited

I run the deploy command and i got below message but service did not created.

[applir12@server2 helloservice]$ ant deploy
Buildfile: build.xml

check:

tools:

-pre-deploy:

deploy:
     [echo] Admin: /home/applir12/glassfish3/bin/asadmin
     [exec] Application deployed with name helloservice.
     [exec] Command deploy executed successfully.

deploy-url-message:
     [echo] Application Deployed at: http://server2.yantro.com:8080/helloservice

BUILD SUCCESSFUL
Total time: 6 seconds
[applir12@server2 helloservice]$

Ian Evans added a comment - 06/Feb/13 07:01 PM

I can't help you if you're not going to provide any additional information.

The application deployed, and presumably compiled and built a WAR with the HelloService class. If that is not the case, post the complete server.log entries (wrapped with {code} tags please).


karthikannadurai added a comment - 06/Feb/13 07:15 PM - edited

This is my server log file.

Feb 7, 2013 12:41:49 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: JVM invocation command line:
/home/applir12/glassfish3/jdk/bin/java
-cp
/home/applir12/glassfish3/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-XX:NewRatio=2
-Xmx512m
-javaagent:/home/applir12/glassfish3/glassfish/lib/monitor/btrace-agent.jar=unsafe=true,noServer=true
-client
-Dosgi.shell.telnet.maxconn=1
-Dfelix.fileinstall.disableConfigSave=false
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Dfelix.fileinstall.dir=/home/applir12/glassfish3/glassfish/modules/autostart/
-Djavax.net.ssl.keyStore=/home/applir12/glassfish3/glassfish/domains/domain1/config/keystore.jks
-Dosgi.shell.telnet.port=6666
-Djava.security.policy=/home/applir12/glassfish3/glassfish/domains/domain1/config/server.policy
-Dfelix.fileinstall.log.level=2
-Dfelix.fileinstall.poll=5000
-Dcom.sun.aas.instanceRoot=/home/applir12/glassfish3/glassfish/domains/domain1
-Dosgi.shell.telnet.ip=127.0.0.1
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Djava.endorsed.dirs=/home/applir12/glassfish3/glassfish/modules/endorsed:/home/applir12/glassfish3/glassfish/lib/endorsed
-Dcom.sun.aas.installRoot=/home/applir12/glassfish3/glassfish
-Dfelix.fileinstall.bundles.startTransient=true
-Djava.ext.dirs=/home/applir12/glassfish3/jdk/lib/ext:/home/applir12/glassfish3/jdk/jre/lib/ext:/home/applir12/glassfish3/glassfish/domains/domain1/lib/ext
-Dfelix.fileinstall.bundles.new.start=true
-Djavax.net.ssl.trustStore=/home/applir12/glassfish3/glassfish/domains/domain1/config/cacerts.jks
-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Djava.security.auth.login.config=/home/applir12/glassfish3/glassfish/domains/domain1/config/login.conf
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Dgosh.args=--nointeractive
-Djava.library.path=/home/applir12/glassfish3/glassfish/lib:/home/applir12/glassfish3/jdk/jre/lib/i386/server:
/home/applir12/glassfish3/jdk/jre/lib/i386:/home/applir12/glassfish3/jdk/lib/i386:
/ir12/d01/oracle/ir12/apps/tech_st/10.1.2/jdk/jre/lib/i386:
/ir12/d01/oracle/ir12/apps/tech_st/10.1.2/jdk/jre/lib/i386/server:
/ir12/d01/oracle/ir12/apps/tech_st/10.1.2/jdk/jre/lib/i386/native_threads:
/ir12/d01/oracle/ir12/apps/apps_st/appl/cz/12.0.0/bin:/ir12/d01/oracle/ir12/apps/tech_st/10.1.2/lib32:
/ir12/d01/oracle/ir12/apps/tech_st/10.1.2/lib:/usr/X11R6/lib:
/usr/openwin/lib:/ir12/d01/oracle/ir12/apps/apps_st/appl/sht/12.0.0/lib:
/usr/java/packages/lib/i386:/lib:/usr/lib
com.sun.enterprise.glassfish.bootstrap.ASMain
-domainname
domain1
-asadmin-args
--host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--echo=false,,,--interactive=true,,,start-domain,,,--verbose=false,,,--debug=false,,,--domaindir,,,/home/applir12/glassfish3/glassfish/domains,,,domain1
-instancename
server
-verbose
false
-debug
false
-asadmin-classpath
/home/applir12/glassfish3/glassfish/modules/admin-cli.jar
-asadmin-classname
com.sun.enterprise.admin.cli.AsadminMain
-upgrade
false
-type
DAS
-domaindir
/home/applir12/glassfish3/glassfish/domains/domain1
-read-stdin
true
Feb 7, 2013 12:41:49 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: Successfully launched in 5 msec.
[#|2013-02-07T00:41:57.030+0530|INFO|glassfish3.1|null|_ThreadID=1;_ThreadName=Thread-1;|Running GlassFish Version: GlassFish Server Open Source Edition 3.1 (build 43)|#]

[#|2013-02-07T00:41:57.159+0530|INFO|glassfish3.1|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=10;_ThreadName=Thread-1;|Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry|#]

[#|2013-02-07T00:41:57.944+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=29;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 383ms - bound to [0.0.0.0:8080]|#]

[#|2013-02-07T00:41:57.945+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=1;_ThreadName=Thread-1;|The Admin Console is already installed, but not yet loaded.|#]

[#|2013-02-07T00:41:57.946+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=30;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 332ms - bound to [0.0.0.0:3700]|#]

[#|2013-02-07T00:41:57.947+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=32;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 328ms - bound to [0.0.0.0:7676]|#]

[#|2013-02-07T00:41:57.944+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=31;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 353ms - bound to [0.0.0.0:8181]|#]

[#|2013-02-07T00:41:57.949+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|Grizzly Framework 1.9.31 started in: 349ms - bound to [0.0.0.0:4848]|#]

[#|2013-02-07T00:42:01.493+0530|INFO|glassfish3.1|javax.enterprise.webservices.org.glassfish.webservices.metroglue|_ThreadID=1;_ThreadName=Thread-1;|WS10010: Web service endpoint deployment events listener registered successfully.|#]

[#|2013-02-07T00:42:01.935+0530|WARNING|glassfish3.1|global|_ThreadID=10;_ThreadName=Thread-1;|Cannot load appclient.HelloAppClient reason : appclient.HelloAppClient
java.lang.ClassNotFoundException: appclient.HelloAppClient
	at com.sun.enterprise.loader.ASURLClassLoader.findClassData(ASURLClassLoader.java:808)
	at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:696)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at com.sun.enterprise.deployment.annotation.impl.ModuleScanner.getElements(ModuleScanner.java:361)
	at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:565)
	at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:445)
	at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:432)
	at com.sun.enterprise.deployment.archivist.Archivist.readRestDeploymentDescriptors(Archivist.java:408)
	at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:383)
	at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:246)
	at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:255)
	at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:216)
	at com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:165)
	at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:180)
	at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:93)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:826)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:768)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
	at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:364)
	at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:208)
	at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
	at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
	at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
	at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
	at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
	at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
	at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:243)
	at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:135)
	at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
	at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
	at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
|#]

[#|2013-02-07T00:42:02.840+0530|INFO|glassfish3.1|javax.enterprise.system.container.appclient.org.glassfish.appclient.server.core|_ThreadID=1;_ThreadName=Thread-1;|ACDEPL103: Java Web Start services started for the app client appclient (contextRoot: /appclient)|#]

[#|2013-02-07T00:42:02.845+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-1;|CORE10010: Loading application appclient done in 4,750 ms|#]

[#|2013-02-07T00:42:02.967+0530|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=1;_ThreadName=Thread-1;|SEC1002: Security Manager is OFF.|#]

[#|2013-02-07T00:42:03.181+0530|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=1;_ThreadName=Thread-1;|SEC1010: Entering Security Startup Service|#]

[#|2013-02-07T00:42:03.197+0530|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=1;_ThreadName=Thread-1;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]

[#|2013-02-07T00:42:03.256+0530|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=1;_ThreadName=Thread-1;|SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.|#]

[#|2013-02-07T00:42:03.261+0530|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=1;_ThreadName=Thread-1;|SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.|#]

[#|2013-02-07T00:42:03.265+0530|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=1;_ThreadName=Thread-1;|SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.|#]

[#|2013-02-07T00:42:03.278+0530|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=1;_ThreadName=Thread-1;|SEC1011: Security Service(s) Started Successfully|#]

[#|2013-02-07T00:42:03.660+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]|#]

[#|2013-02-07T00:42:03.665+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]|#]

[#|2013-02-07T00:42:03.669+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848]|#]

[#|2013-02-07T00:42:03.710+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0171: Created virtual server [server]|#]

[#|2013-02-07T00:42:03.713+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0171: Created virtual server [__asadmin]|#]

[#|2013-02-07T00:42:04.059+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0172: Virtual server [server] loaded default web module []|#]

[#|2013-02-07T00:42:05.720+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-1;|WEB0671: Loading application [helloservice] at [/helloservice]|#]

[#|2013-02-07T00:42:05.721+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-1;|CORE10010: Loading application helloservice done in 2,874 ms|#]

[#|2013-02-07T00:42:05.722+0530|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-1;|GlassFish Server Open Source Edition 3.1 (43) startup time : Felix (6,438ms), startup services(9,340ms), total(15,778ms)|#]

[#|2013-02-07T00:42:06.711+0530|INFO|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=49;_ThreadName=Thread-1;|JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://server2.yantro.com:8686/jndi/rmi://server2.yantro.com:8686/jmxrmi|#]

[#|2013-02-07T00:43:35.367+0530|INFO|glassfish3.1|org.hibernate.validator.util.Version|_ThreadID=17;_ThreadName=Thread-1;|Hibernate Validator 4.1.0.Final|#]

[#|2013-02-07T00:43:35.376+0530|INFO|glassfish3.1|org.hibernate.validator.engine.resolver.DefaultTraversableResolver|_ThreadID=17;_ThreadName=Thread-1;|Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.|#]

[#|2013-02-07T00:43:35.678+0530|INFO|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=65;_ThreadName=Thread-1;|WEB0671: Loading application [helloservice] at [/helloservice]|#]

[#|2013-02-07T00:43:35.705+0530|INFO|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=65;_ThreadName=Thread-1;|helloservice was successfully deployed in 411 milliseconds.|#]

Ian Evans added a comment - 06/Feb/13 07:19 PM

What are the contents of the WAR?


Ian Evans added a comment - 06/Feb/13 07:30 PM

Also, make sure you follow the steps I posted above to clean your environment.

If you can't get a WAR file with the HelloService.class file in it after cleaning and rebuilding with the correct javaee.home property set, you're going to have to start with the latest version of the Tutorial examples and SDK.

That means:

  1. Install Java EE 6 SDK update 4 (with GlassFish 3.1.2).
  2. Update to version 6.0.8 of the Java EE 6 Tutorial from the Update Center. This will install the Tutorial in ${glassfish_home}/glassfish/docs/javaee-tutorial.

When you install the Tutorial from the Update Center, you don't have to worry about setting javaee.home or any other configuration. The examples in version 6.0.8 of the Tutorial have been thoroughly tested, including helloservice.


karthikannadurai added a comment - 06/Feb/13 07:46 PM

In the helloservice.war contain below files
META-INF: MANIFEST.MF
WEB-INF: classes/META-INF
sun-web.xml
web.xml

It does not contain wsdl file and class file. I created one war file with one HelloService.wsdl file and Hello.class. I run the deploy command and its worked fine(service created successfully). What i have to do?


Ian Evans added a comment - 06/Feb/13 07:59 PM

I don't know where you got your Tutorial install, as it is in a nonstandard location. I can't verify that it is a version that we've tested based on the information you've given. Therefore I'm closing this as Cannot Reproduce.

You can install Java EE 6 SDK update 4 and version 6.0.8 of the Tutorial, as I've said above. If you get the same error in version 6.0.8 of helloservice, and verify that the output WAR doesn't contain a class file or WSDL, you can reopen this issue.