Asant problem- building the hello1 example

I am trying to run the first example from the tutorial.I followed the instructions as described in the tutorial and configured the environment variables. However, when I am trying to build the hello1 example I get the following message:
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
where options include:
    -client       to select the "client" VM
    -server       to select the "server" VM
    -hotspot      is a synonym for the "client" VM  [deprecated]
                  The default VM is client.
    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A ; separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -showversion  print product version and continue
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertionsWhat am I doing wrong?
Thank you,
Itay

Thanks for your quick reply.
My environment variables are:
J2EE_HOME = E:\Java\J2EE\AppServer
JAVA_HOME = %J2EE_HOME%\jdk
So as you can see I have no spaces in the directories names.

Similar Messages

  • NullPointerException problem when  deploying hello1 example.

    I am running Sun AppServer Edition 8.0 on Windows 2000 platform. When I
    executed asant build command, Build Successful message was displayed.
    To configure the Web application, I followed the steps outlined on how
    to package the application using the deploytool in Chapter 3 of the
    tutorial. Again I used the steps outlined on how to deploy the
    packaged web module using the deploytool to deploy the application
    on the Sun AppServer. However the deployment failed with
    NullPointerException message.
    Here is a listing of the error message:
    DetailsTimestamp:Nov 30, 2004 08:13:41.174
    Log Level: WARNING
    Logger:javax.enterprise.system.tools.admin
    Name-Value Pairs:_ThreadID=11;
    Record Number:106
    Message ID:ADM1026
    Complete Message
    Redeployment failed - Detailed Message:java.lang.NullPointerException     at
    com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.getHostName(ApplicationsConfigMBean.java:3045)     at
    com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.setHostAndPort(ApplicationsConfigMBean.java:3038)     at
    com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:274)     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:324)     at
    com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:287)     at
    com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:280)     at
    com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:221)     at
    com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:228)     at
    com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:823)     at
    com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)     at
    sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)     at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at
    java.lang.reflect.Method.invoke(Method.java:324)     at
    com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)     at $Proxy1.invoke(Unknown Source)     at
    com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:282)     at
    com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)     at
    com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)     at
    com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:
    69)     at
    com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)     at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:768)     at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:861)     at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown
    Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at
    java.lang.reflect.Method.invoke(Method.java:324)     at
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)     at
    java.security.AccessController.doPrivileged(Native Method)     at
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)     at
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)     at
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)     at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)     at
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:102)     at
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:192)     at
    java.security.AccessController.doPrivileged(Native Method)     at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)     at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)     at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)     at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)     at
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:261)     at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)     at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)     at
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:583)     at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)     at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)     at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:200)     at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)     at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:180)     at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)     at
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:582)     at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)     at
    com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)     at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)     at
    com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)     at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)     at
    com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)     at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)     at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)     at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:161)     at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)     at
    com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)     at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)     at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)     at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:979)     at
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)     at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:692)     at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:647)     at
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)     at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:691)     at
    java.lang.Thread.run(Thread.java:534)
    Here is the output from asant listprops command.
    Buildfile: build.xml
    listprops:
    [echo] Path information
    [echo] j2ee.home = C:/Sun/AppServer
    [echo] env.Path = .;
    c:\oracle\ora92\bin;
    c:\oracle\ora92\sqlj\bin;
    C:\Program Files\Oracle\jre\1.3.1\bin;
    C:\Program Files\Oracle\jre\1.1.8\bin;
    C:\Ant\apache-ant-1.6.2\bin;
    C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Microsoft SQL
    Server\80\Tools\Binn\;
    c:\mysql\bin;
    c:\j2sdk1.4.2_06\bin;
    c:\Sun\AppServer\bin;
    c:\Sun\AppServer\bin;c:\Sun\AppServer\jdk\bin;
    C:\Documents and Settings\sam darko\jwsdp-1.1\jwsdp-shared\bin;
    C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;
    C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual
    Studio\Common\Tools;
    C:\Program Files\Microsoft Visual Studio\VC98\bin;
    C:\Program Files\MSXML 4.0;
    C:\Ant\apache-ant-1.6.2\bin;
    c:\mysql\bin;
    c:\bea\weblogic81\server\bin;
    C:\;
    C:\ERCDTMP;C:\ERCDTMP\BIN;C:\ERCDTMP\TOOLS\PT1
    [echo] env.PATH = ${env.PATH}
    [echo] Classpath information
    [echo] classpath = .;
    c:\Sun\AppServer\lib\j2ee.jar;
    c:\Sun\AppServer\jdk\lib\tools.jar;
    C:\Program Files\Altova\xmlspy\XMLSpyInterface.jar;
    c:\bea\weblogic81\server\lib\weblogic_sp.jar;
    c:\bea\weblogic81\server\lib\weblogic.jar;
    C:\jakarta-struts-1.1\lib\struts.jar;
    c:\JSTL1.1\jstl-1.1.2\lib\jstl.jar;
    c:\JSTL1.1\jstl-1.1.2\lib\standard.jar
    [echo] Admin information
    [echo] admin.password = ${admin.password}
    [echo] admin.host = localhost
    [echo] admin.user = admin
    [echo] admin.port = 4848
    [echo] https.port = 8090
    [echo] Domain information
    [echo] domain.resources = "domain.resources"
    [echo] domain.resources.port = 8091
    [echo] Database information
    [echo] db.root = C:/Sun/AppServer/pointbase
    [echo] db.driver = com.pointbase.jdbc.jdbcUniversalDriver
    [echo] db.host = localhost
    [echo] db.port = 9092
    [echo] db.sid = sun-appserv-samples
    [echo] db.url = jdbc:pointbase:server://localhost:9092/sun-appserv-samples
    [echo] db.user = pbpublic
    [echo] db.pwd = pbpublic
    [echo] url.prop = DatabaseName
    [echo] ds.class = com.pointbase.jdbc.jdbcDataSource
    [echo] db.jvmargs = -ms16m -mx32m
    BUILD SUCCESSFUL
    Total time: 5 seconds

    I just ran the hello1 example on a Win2K system from the command line without seeing the problems that you encountered. I am running a later version of the Application Server than you are (8.1 PE vs. 8.0) and am using the tutorial sources that were designed to be used with that version of the tutorial:
    - Use Update 3 version of the tutorial with Application Server 8.1
    - Use Update 2 version of the tutorial with Application Server 8.0 Update 1
    I haven't tried it with deploytool yet, but built, packaged, and deployed using the asant instructions, as follows.
    1. Start the Application Server.
    2. In a terminal window, change to the j2eetutorial14/examples/web/hello1 directory.
    3. Build the example: asant build
    4. Package the example: asant create-war
    5. Deploy the example: asant deploy-war
    6. In your browser, go to http://localhost:8080/hello1and enter your name.
    If you do this do you see the same problem? If you do, where do you encounter that problem? On deployment?
    In the meantime, I'll try to package and deploy with deploytool and report back with my results.
    Hope this helps.
    ~Eric

  • Can not build the client example of the webservices/rpc-example

    Hi!
    I have some problems with building the client example of the webservices rpc example.
    I followed the instructions of the readme and was able to build the weatherejb,
    after I saved the client.jar in %WL_HOME%\samples\examples\webservices\rpc\javaClient
    I put the cleint.jar into the classpath of the setExamplesEnv.cmd:
    set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\lib\weblogic_sp.jar;%WL_HOME%\lib\weblogic.jar;%WL_HOME%\lib\xmlx.jar;%WL_HOME%\samples\eval\cloudscape\lib\cloudscape.jar;%WL_HOME%\samples\examples\webservices\rpc\javaClient\client.jar;%CLIENT_CLASSES%;%SERVER_CLASSES%;%EX_WEBAPP_CLASSES%;C:\bea
    but if I now change to
    $ cd %WL_HOME%\samples\examples\webservices\rpc\javaClient
    and try to build the ear -files by typing:
    ant
    I get the message:
    C:\bea\samples\examples\webservices\rpc\javaClient>ant
    Buildfile: build.xml
    compile:
    [javac] Compiling 3 source files to C:\bea\config\examples\clientclasses
    [javac] C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:8:
    ca
    nnot resolve symbol
    [javac] symbol : class Weather
    [javac] location: package weatherEJB
    [javac] import examples.webservices.rpc.weatherEJB.Weather;
    [javac] ^
    [javac] C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:28:
    c
    annot resolve symbol
    [javac] symbol : class Weather
    [javac] location: class examples.webservices.rpc.javaClient.Client
    [javac] Weather.class.getName() );
    [javac] ^
    [javac] C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:34:
    c
    annot resolve symbol
    [javac] symbol : class Weather
    [javac] location: class examples.webservices.rpc.javaClient.Client
    [javac] Weather service = (Weather)context.lookup("http://localhost:7001
    /weather/statelessSession.WeatherHome/statelessSession.WeatherHome.wsdl");
    [javac] ^
    [javac] C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:34:
    c
    annot resolve symbol
    [javac] symbol : class Weather
    [javac] location: class examples.webservices.rpc.javaClient.Client
    [javac] Weather service = (Weather)context.lookup("http://localhost:7001
    /weather/statelessSession.WeatherHome/statelessSession.WeatherHome.wsdl");
    [javac] ^
    [javac] 4 errors
    BUILD FAILED
    C:\bea\samples\examples\webservices\rpc\javaClient\build.xml:13: Compile failed,
    messages should have been provided.
    Total time: 3 seconds
    thanx

    Well, Remember(you might have done this) u have to run the
    setExamplesEnv.cmd after u add the client.jar in the classpath. Also, the
    ant command will work only in the window where u ran the setExamplesEnv.cmd.
    Thats what i didnt and it works perfect for me.
    Hope this helps u.
    Regards
    Elangovan
    Naz wrote in message <[email protected]>...
    >
    Hi!
    I have some problems with building the client example of the webservicesrpc example.
    I followed the instructions of the readme and was able to build theweatherejb,
    after I saved the client.jar in%WL_HOME%\samples\examples\webservices\rpc\javaClient
    I put the cleint.jar into the classpath of the setExamplesEnv.cmd:
    setCLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\lib\weblogic_sp.jar;%WL_HOME%\
    lib\weblogic.jar;%WL_HOME%\lib\xmlx.jar;%WL_HOME%\samples\eval\cloudscape\li
    b\cloudscape.jar;%WL_HOME%\samples\examples\webservices\rpc\javaClient\clien
    t.jar;%CLIENT_CLASSES%;%SERVER_CLASSES%;%EX_WEBAPP_CLASSES%;C:\bea
    >
    but if I now change to
    $ cd %WL_HOME%\samples\examples\webservices\rpc\javaClient
    and try to build the ear -files by typing:
    ant
    I get the message:
    C:\bea\samples\examples\webservices\rpc\javaClient>ant
    Buildfile: build.xml
    compile:
    [javac] Compiling 3 source files toC:\bea\config\examples\clientclasses
    [javac]C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:8:
    ca
    nnot resolve symbol
    [javac] symbol : class Weather
    [javac] location: package weatherEJB
    [javac] import examples.webservices.rpc.weatherEJB.Weather;
    [javac] ^
    [javac]C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:28:
    c
    annot resolve symbol
    [javac] symbol : class Weather
    [javac] location: class examples.webservices.rpc.javaClient.Client
    [javac] Weather.class.getName() );
    [javac] ^
    [javac]C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:34:
    c
    annot resolve symbol
    [javac] symbol : class Weather
    [javac] location: class examples.webservices.rpc.javaClient.Client
    [javac] Weather service =(Weather)context.lookup("http://localhost:7001
    /weather/statelessSession.WeatherHome/statelessSession.WeatherHome.wsdl");
    [javac] ^
    [javac]C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:34:
    c
    annot resolve symbol
    [javac] symbol : class Weather
    [javac] location: class examples.webservices.rpc.javaClient.Client
    [javac] Weather service =(Weather)context.lookup("http://localhost:7001
    /weather/statelessSession.WeatherHome/statelessSession.WeatherHome.wsdl");
    [javac] ^
    [javac] 4 errors
    BUILD FAILED
    C:\bea\samples\examples\webservices\rpc\javaClient\build.xml:13: Compilefailed,
    messages should have been provided.
    Total time: 3 seconds
    thanx

  • Problems building the sample Apps for JSF

    I m trying to build the sample Apps provided as part of the JWSDP 1.3 for jsp after making some changes.
    The JSF tutorial says to run tne "ant" command after making changes to the build.properties file.
    The problems i am facing are:
    1. It says to specify the username/passowrd . I do not see anything like that in build.properties.
    2. For building it says to excute "ant" command. But that comes back with errors just specifying the usage which is similar to java usage. I have set all the variables like JSF_HOME, ANT_HOME, JWSDP_HOME etc to the correct values..
    Can anyhelp me by pointing me to how to rebuild these samples..
    BTW i am using the Tomcat that cam bundled with JWSDP 1.4
    Thanks
    SJ

    I also had some problems building the examples. As I use WinXP, I can't really help unfortunately. But I would like to mention, that a stand-alone JSF EA Version wouldl be great and definitely make it easier for newbies to get contac to this technology.
    Another recommendation would be to have a jsf-blank.war, that contains all necessary libs, config files, etc. without references to other downloads. This way I am sure, that many people more would be fascinated.
    I guess that JSF will be available as such a standalone version in the end, but it would also be nice to have it right now, even as an EA.
    cu
    sven

  • Problem building the Schema...

    Hi,
    I have two BPEL processes..Say 'BPELProcess1' and 'BPELProcess2'..I am trying to invoke the 'BPELProcess1' in 'BPELProcess2'..I am able to create the partner link..but the problem here is when I try to assign the values to the 'BPELProcess1' using an assign activity..It is not showing the variables of the 'BPELProcess1'....Instead it is displaying 'Exception:problem building the schema', Any how I am able to solve this by importing the schema of the 'BPELProcess1'...but Is there any way that we can overcome this problem with out importing the schema....
    Note: I am using the JDeveloper 10.1.3.3

    I have the same problem - Exception: Problem building schema! I assume something's wrong with the schema (:) but no clue as to how to fix it. Don't see anything helpful on the discussion forum so far, except previous post by Feroz without reply. Anyone?
    Thanks
    S (newbie)

  • Error While building the Sample Example

    Hi,
    I'm trying to run the first example in the following tutorial:
    http://docs.oracle.com/cd/E17904_01/web.1111/e13758/toc.htm
    Getting the following error:
    java.lang.NoClassDefFoundError: com/sun/xml/ws/model/RuntimeModeler
    at weblogic.wsee.util.ClassUtil.getNamespaceFromClass(ClassUtil.java:151
    at weblogic.wsee.jws.WebServiceRuntimeDecl.initNamespaces(WebServiceRunt
    imeDecl.java:253)
    at weblogic.wsee.jws.WebServiceRuntimeDecl.<init>(WebServiceRuntimeDecl.
    java:77)
    at weblogic.wsee.tools.jws.decl.WebServiceDecl.<init>(WebServiceDecl.jav
    a:48)
    at weblogic.wsee.tools.jws.decl.WebServiceSEIDecl.<init>(WebServiceSEIDe
    cl.java:81)
    at weblogic.wsee.tools.jws.decl.WebServiceSEIDecl.<init>(WebServiceSEIDe
    cl.java:68)
    at weblogic.wsee.tools.jws.decl.WebServiceDeclFactory.newInstance(WebSer
    viceDeclFactory.java:54)
    at weblogic.wsee.tools.anttasks.JwsModule.buildAndValidate(JwsModule.jav
    a:583)
    at weblogic.wsee.tools.anttasks.JwsModule.loadWebServices(JwsModule.java
    *:574)*
    at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:369)
    at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:256)
    at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:184)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a: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(DefaultExe
    cutor.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)
    Caused by: java.lang.ClassNotFoundException: com.sun.xml.ws.model.RuntimeModeler
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    *... 29 more*
    Kindly help me out in how to run the example, please let me know where I'm going wrong.
    I'm beginning to feel oracle has the most pathetic documentation, even when u following exactly as told in the tutorial, still its code does not work, personally I feel oracle products are the most complex and most useless while at the same time very expensive.

    Hi,
    you see that message: "The password must be at least 8 alphanumeric characters with at least one number or special character." ?
    The password: The weblogic password you provide when prompted
    must be at least: minimal condition for secure passwords enforced on WLS by default
    at least 8 alphanumeric characters: no 7 but eight or more characters
    with at least one number or special character: password should have a number in it or an "@" "-" or similar
    E.g.
    weblogic1
    is one password option that would meet that requirement
    Frank

  • Problem building the J2sdk-1_4_1

    I am trying to perform a build of the J2sdk using the source code and build instructions provided by sun. However there are errors in the files used by Make. Has anyone built the j2skd using suns source.
    Does anyone know of any projects in this area.?
    Any information would be very useful as I am finding it difficult to find any information in this area.
    Thanks in advance,
    David.

    The error message seems to be a problem with the C++ path. I have checked the installation and used short directory names but still get these errors:
    C:/j2sdk-1_4_2/j2sdk-1_4_2-src-scsl/hotspot\build\windows\.\vm\release\Makefile(
    16) : fatal error U1052: file '../generated/Dependencies' not found
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'C:\PROGRA~1\MIAF9D~1\VC98\Bin\nmake.exe' : return co
    de '0x2'
    Stop.
    gmake[1]: *** [hotspot-compiler2] Error 2
    gmake: *** [scsl-build] Error 2
    Has anyone encountered this before? Any ideas would be helpful.
    Thanks ,
    Dave.

  • Problem running the bookstore6 example from J2EE 1.5  Tutorial

    Hi,
    I got the bookstore6 example running on my windows XP box within glassfish. I am able access the URL http://localhost:8080/bookstore6. But whenever I click on the map or a link to pick a locale, I get an exception. Below is what I see in the server log file. Any help is appreciated.
    [#|2006-08-15T15:15:59.147-0700|WARNING|sun-appserver-pe9.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=13;_ThreadName=httpWorkerThread-8080-0;_RequestID=fcb38d2f-9e92-4a7b-a439-0715d61ed98a;|executePhase(INVOKE_APPLICATION 5,com.sun.faces.context.FacesContextImpl@135b92e) threw exception
    javax.faces.FacesException: javax.faces.FacesException: com.sun.enterprise.InjectionException: Exception attempting to inject Env-Prop: books@Field-Injectable Resource. Class name = com.sun.bookstore6.backing.AbstractBean Field [email protected]@@@ into class com.sun.bookstore6.backing.AbstractBean
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:105)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:246)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:619)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:550)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:780)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
    Caused by: javax.faces.FacesException: javax.faces.FacesException: com.sun.enterprise.InjectionException: Exception attempting to inject Env-Prop: books@Field-Injectable Resource. Class name = com.sun.bookstore6.backing.AbstractBean Field [email protected]@@@ into class com.sun.bookstore6.backing.AbstractBean
         at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:521)
         at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:82)
         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:62)
         at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
         at com.sun.el.parser.AstValue.getTarget(AstValue.java:63)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:153)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:88)
         at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
         at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:776)
         at javax.faces.component.UICommand.broadcast(UICommand.java:368)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:471)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:783)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
         ... 28 more
    Caused by: javax.faces.FacesException: com.sun.enterprise.InjectionException: Exception attempting to inject Env-Prop: books@Field-Injectable Resource. Class name = com.sun.bookstore6.backing.AbstractBean Field [email protected]@@@ into class com.sun.bookstore6.backing.AbstractBean
         at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:325)
         at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:510)
         ... 42 more
    Caused by: com.sun.enterprise.InjectionException: Exception attempting to inject Env-Prop: books@Field-Injectable Resource. Class name = com.sun.bookstore6.backing.AbstractBean Field [email protected]@@@ into class com.sun.bookstore6.backing.AbstractBean
         at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:373)
         at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:193)
         at com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:87)
         at com.sun.faces.vendor.GlassFishInjectionProvider.inject(GlassFishInjectionProvider.java:65)
         at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:312)
         ... 43 more
    Caused by: com.sun.enterprise.InjectionException: Illegal use of static field private static javax.persistence.EntityManager com.sun.bookstore6.backing.AbstractBean.em on class that only supports instance-based injection
         at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:292)
         ... 47 more
    |#]
    [#|2006-08-15T15:15:59.163-0700|SEVERE|sun-appserver-pe9.1|javax.enterprise.system.container.web|_ThreadID=13;_ThreadName=httpWorkerThread-8080-0;_RequestID=fcb38d2f-9e92-4a7b-a439-0715d61ed98a;|StandardWrapperValve[FacesServlet]: PWC1406: Servlet.service() for servlet FacesServlet threw exception
    com.sun.enterprise.InjectionException: Illegal use of static field private static javax.persistence.EntityManager com.sun.bookstore6.backing.AbstractBean.em on class that only supports instance-based injection
         at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:292)
         at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:193)
         at com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:87)
         at com.sun.faces.vendor.GlassFishInjectionProvider.inject(GlassFishInjectionProvider.java:65)
         at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:312)
         at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:510)
         at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:82)
         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:62)
         at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
         at com.sun.el.parser.AstValue.getTarget(AstValue.java:63)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:153)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:88)
         at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
         at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:776)
         at javax.faces.component.UICommand.broadcast(UICommand.java:368)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:471)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:783)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:246)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:619)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:550)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:780)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
    |#]
    Message was edited by:
    hongyan99
    Message was edited by:
    hongyan99

    I got this same problem. But when I droped static from the original code I get another error. Please help.
    [#|2006-12-13T14:37:41.806+0100|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=13;_ThreadName=httpWorkerThread-8080-1;_RequestID=66d98196-7004-4c04-8255-0391a8077d16;|StandardWrapperValve[FacesServlet]: Servlet.service() for servlet FacesServlet threw exception
    javax.faces.FacesException: Could not get book details com.sun.bookstore.exception.BooksNotFoundException: Could not get books: Unable to retrieve EntityManagerFactory for unitName null
         at com.sun.bookstore6.backing.BookstoreBean.getFeatured(BookstoreBean.java:58)
         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:585)
         at javax.el.BeanELResolver.getValue(BeanELResolver.java:273)
         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:62)
         at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
         at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
         at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
         at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:100)
         at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:279)
         at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:207)
         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
         at com.sun.faces.renderkit.html_basic.CommandLinkRenderer.encodeChildren(CommandLinkRenderer.java:203)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:883)
         at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:883)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:182)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    |#]
    Message was edited by:
    dujemalenica

  • Problem building the service with jwsc task on bea 9.2

    i am trying to build a web service from a wsdl file,
    Firstly i generate the proper artifacts with the wsdlc task as described on bea 9.2 docs,then i run the wsdl task trying to build the service from the artifacts previously generated,
    here is the wsdl file,and after there are the error i get trying to build the service.
    <?xml version="1.0" encoding="utf-8" ?>
    <wsdl:definitions xmlns:types="http://emcs.dgtaxud.ec/webservice/types"
    xmlns:ref="http://ws-i.org/profiles/basic/1.1/xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    targetNamespace="http://emcs.dgtaxud.ec/webservice"
    xmlns:ws="http://emcs.dgtaxud.ec/webservice"
    xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/">
    <wsdl:types>
    <xsd:schema elementFormDefault="qualified" targetNamespace="http://emcs.dgtaxud.ec/webservice/types"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="startEntityAction">
    <xsd:complexType>
    <xsd:sequence/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="startEntityActionResponse">
    <xsd:complexType>
    <xsd:sequence/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="getEntityActionResult">
    <xsd:complexType>
    <xsd:sequence/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="getEntityActionResultResponse">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ActionSucceeded" type="xsd:boolean"/>
    <xsd:element name="ActionResult" minOccurs="0" >
    <xsd:simpleType>
    <xsd:restriction base="xsd:token">
    <xsd:enumeration value="Success" />
    <xsd:enumeration value="Error" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="stopEntityAction">
    <xsd:complexType>
    <xsd:sequence/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="stopEntityActionResponse">
    <xsd:complexType>
    <xsd:sequence/>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    <xsd:schema elementFormDefault="qualified"
    targetNamespace="http://www.openuri.org/2002/04/soap/conversation/">
    <xsd:element name="StartHeader" type="conv:StartHeader"/>
    <xsd:element name="ContinueHeader" type="conv:ContinueHeader"/>
    <xsd:element name="CallbackHeader" type="conv:CallbackHeader"/>
    <xsd:complexType name="StartHeader">
    <xsd:sequence>
    <xsd:element name="conversationID" type="xsd:string" minOccurs="0"/>
    <xsd:element name="callbackLocation" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ContinueHeader">
    <xsd:sequence>
    <xsd:element name="conversationID" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="CallbackHeader">
    <xsd:sequence>
    <xsd:element name="conversationID" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name="StartHeader_literal">
    <wsdl:part name="StartHeader" element="conv:StartHeader"/>
    </wsdl:message>
    <wsdl:message name="ContinueHeader_literal">
    <wsdl:part name="ContinueHeader" element="conv:ContinueHeader"/>
    </wsdl:message>
    <wsdl:message name="startEntityActionSoapIn">
    <wsdl:part name="startEntityActionParameters" element="types:startEntityAction"/>
    <wsdl:part name="entities" type="xsd:base64Binary"/>
    </wsdl:message>
    <wsdl:message name="startEntityActionSoapOut">
    <wsdl:part name="startEntityActionResponseParameters" element="types:startEntityActionResponse"/>
    </wsdl:message>
    <wsdl:message name="getEntityActionResultSoapIn">
    <wsdl:part name="getEntityActionResultParameters" element="types:getEntityActionResult"/>
    </wsdl:message>
    <wsdl:message name="getEntityActionResultSoapOut">
    <wsdl:part name="getEntityActionResultResponseParameters" element="types:getEntityActionResultResponse"/>
    <wsdl:part name="report" type="xsd:base64Binary"/>
    </wsdl:message>
    <wsdl:message name="stopEntityActionSoapIn">
    <wsdl:part name="stopEntityActionParameters" element="types:stopEntityAction"/>
    </wsdl:message>
    <wsdl:message name="stopEntityActionSoapOut">
    <wsdl:part name="stopEntityActionResponseParameters" element="types:stopEntityActionResponse"/>
    </wsdl:message>
    <wsdl:portType name="MaintainEntitySoap">
    <wsdl:operation name="startEntityAction">
    <wsdl:input message="ws:startEntityActionSoapIn"/>
    <wsdl:output message="ws:startEntityActionSoapOut"/>
    </wsdl:operation>
    <wsdl:operation name="getEntityActionResult">
    <wsdl:input message="ws:getEntityActionResultSoapIn"/>
    <wsdl:output message="ws:getEntityActionResultSoapOut"/>
    </wsdl:operation>
    <wsdl:operation name="stopEntityAction">
    <wsdl:input message="ws:stopEntityActionSoapIn" />
    <wsdl:output message="ws:stopEntityActionSoapOut" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="MaintainEntitySoap" type="ws:MaintainEntitySoap">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="startEntityAction">
    <soap:operation soapAction="http://emcs.dgtaxud.ec/startEntityAction"/>
    <conv:transition phase="start"/>
    <wsdl:input>
    <mime:multipartRelated>
    <mime:part>
    <soap:body parts="startEntityActionParameters" use="literal"/>
    <soap:header wsdl:required="true" message="ws:StartHeader_literal"
    part="StartHeader" use="literal" />
    </mime:part>
    <mime:part>
    <mime:content part="entities" type="application/octet-stream"/>
    </mime:part>
    </mime:multipartRelated>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getEntityActionResult">
    <soap:operation soapAction="http://emcs.dgtaxud.ec/getEntityActionResult"/>
    <conv:transition phase="continue"/>
    <wsdl:input>
    <soap:body use="literal"/>
    <soap:header wsdl:required="true" message="ws:ContinueHeader_literal"
    part="ContinueHeader" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <mime:multipartRelated>
    <mime:part>
    <soap:body parts="getEntityActionResultResponseParameters" use="literal"/>
    </mime:part>
    <mime:part>
    <mime:content part="report" type="application/octet-stream"/>
    </mime:part>
    </mime:multipartRelated>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="stopEntityAction">
    <soap:operation soapAction="http://emcs.dgtaxud.ec/stopEntityAction" style="document" />
    <conv:transition phase="finish" />
    <wsdl:input>
    <soap:body use="literal" />
    <soap:header wsdl:required="true" message="ws:ContinueHeader_literal"
    part="ContinueHeader" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="MaintainEntity">
    <wsdl:documentation>Asynchronous web service for maintaining entities.</wsdl:documentation>
    <wsdl:port name="MaintainEntitySoap" binding="ws:MaintainEntitySoap">
    <soap:address location="https://seed.dgtaxud.ec:8443/SEEDWS/entity/MaintainEntity.jws"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    the errors i get:
    build-service:
    [jwsc] JWS: processing module /MaintainEntitySoapImpl
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 1 JWS files being processed for module /MaintainEntitySoapImpl
    [jwsc] C:\DOCUME~1\PAPAGE~1\LOCALS~1\Temp\_1mu7ug\seed\webservices\maintainecontract\MaintainEntitySoap.java 31:69
    [jwsc] [ERROR] - A Document Bare style operation must have exactly one non header IN Parameter.
    [jwsc] C:\DOCUME~1\PAPAGE~1\LOCALS~1\Temp\_1mu7ug\seed\webservices\maintainecontract\MaintainEntitySoap.java 41:15
    [jwsc] [ERROR] - A Document Bare style operation must be declared Oneway if it returns void.
    [jwsc] C:\Documents and Settings\papageorgopoulos\Desktop\emcs latest\MaintainEntityContractServ\webservicefiles\MaintainEntitySoa
    pImpl.java 28:21
    [jwsc] [ERROR] - A document style operation must not have a non header INOUT or OUT Parameter.
    [jwsc] C:\DOCUME~1\PAPAGE~1\LOCALS~1\Temp\_1mu7ug\seed\webservices\maintainecontract\MaintainEntitySoap.java 41:15
    [jwsc] [ERROR] - A Document Bare style operation must have exactly one non header IN Parameter.
    [jwsc] C:\Documents and Settings\papageorgopoulos\Desktop\emcs latest\MaintainEntityContractServ\webservicefiles\MaintainEntitySoa
    pImpl.java 13:8
    [jwsc] [ERROR] - javax.jws.WebService.endpointInterface seed.webservices.maintainecontract.MaintainEntitySoap is invalid.
    [AntUtil.deleteDir] Deleting directory C:\DOCUME~1\PAPAGE~1\LOCALS~1\Temp\_1mu7ug
    for any ideas i would be grateful

    Ok, thanks Shay. It is ok when I use ' instead of " in my rendering condition, but the page also crashes when there is an ADF table with Empty text attribute value for example: #{bindings.TmetaformatMprogramView1.viewable ? 'No rows yet.' : 'Access Denied.'}. It crashes, says it cannot parse ? same as \ before.
    Edited by: nermin on Oct 31, 2008 10:20 AM

  • Building the bookstore example in the JEE tutorial

    Hi:
    I am going through the SUN JEE tutorial with Netbeans 6.1 Beta
    I am trying to define the DB connectivity.
    After defining the JDBC resource as jdcb/BookDB with the Derby Pool in the glassfish app server
    I run the bookstore1 project. This is supposed to populate the tables and run the application
    I get the following error:
    Null component com.sun.appserv:type=JspMonitor,name=jsp,WebModule=//server/bookstore1,J2EEApplication=null,J2EEServer=server
    WEB0123: WebModule [bookstore1] failed to deploy and has been disabled
    java.lang.RuntimeException: java.lang.RuntimeException: Persistence unit named [book] is configured as JTA, yet only non-jta-data-source name is supplied in persistence.xml.
    this is the persistence.xml supplied with the application:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
    <persistence-unit name="book" transaction-type="JTA">
    <non-jta-data-source>jdbc/BookDB </non-jta-data-source>
    </persistence-unit>
    </persistence>Is there anything else that am I supposed to do?
    Thanks for your time

    Thanks for your reply:
    I am new to persistence API and JEE
    Could you please show me how to define this JTA data source?

  • Build problem with Hello1 example.

    Hi,
    I have installed j2ee1.4 and trying to run the j2eetutorial1.4
    I am facing a problem in building the hello1 example.
    1) When I build the hello1 example, the build fails with the following error message
    C:\java-works\j2eetutorial14\examples\web\hello1>asant build
    Buildfile: build.xml
    init:
    prepare:
    copy:
    build:
    [javac] Compiling 2 source files to
    C:\java-works\j2eetutorial14\examples\we
    b\hello1\build
    BUILD FAILED
    file:C:/java-works/j2eetutorial14/examples/web/hello1/build.xml:52:
    C:\java-work
    s\j2eetutorial14\examples\web\hello1\${j2ee.home}\lib not found.
    Total time: 1 second
    2)) Editing the build.proerties file to include the j2ee.home property.When I save the file it gets a .txt extension.Could this cause a problem , while I try to build the examples? if so How can I avoid this?
    Could anyone please help me in this?
    Thanks,
    Ann

    To save the file without .txt extension
    just enclose the file with double quotes
    "build.properties" in the File save dialog box

  • Java EE Tutorial - problem with the example Bookstore

    Hi,
    I've been working few days on a problem running the Bookstore example from the Java EE Tutorial. When I run the application, I'm redirected from the servlet BookStoreServlet to errorpage.html with the following message: The application is unavailable. Please try later. The tutorial troubleshooting reads: ... a servlet can’t retrieve the web context attribute representing the bookstore. This will occur if the database server hasn’t been started. But the database server is running (I'm running Derby bundled into NetBeans 6.5). The Glassfish admin console reads:
    StandardWrapperValve[BookStoreServlet]: PWC1406: Servlet.service() for servlet BookStoreServlet threw exception
    com.sun.bookstore.exception.BookNotFoundException: Couldn't find book: 203
            at com.sun.bookstore1.database.BookDBAO.getBook(BookDBAO.java:58)
            at com.sun.bookstore1.servlets.BookStoreServlet.doGet(BookStoreServlet.java:76)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
            at com.sun.bookstore1.filters.HitCounterFilter.doFilter(HitCounterFilter.java:71)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
            at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
            at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
            at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)This would indicate that the tables are empty, but they were created according to the tutorial, with the command ant create-tables, and I can see their content in NetBeans. Please help, I really need to run the examples.
    Best regards,
    Rene Puchinger

    I solved the problem running the command that is correctly explained in the page 97 of the tutorial:
    Ant create-tables
    My mistake was that until that day, I was believing that I could do everything inside Netbeans.
    For this you explicitly need to use ant.
    Then I got some error which I solved fixing the file
    C:\Java\JavaEETutorial5\examples\bp-project\ build.properties
    ( like set correctly the path to the server and so on)

  • Asant problem with some tutorials

    Hey!
    I have a problem with asant build in the 1.4 tutorial and the chapter with SAAJ and MyUddiPing.java. I have done the changes in BUILD.PROPERTIES (j2ee.home=c:\\sun\\appserver). I can use asant on the Hello1 example but it doesn�t work with this example or asant build-registry and asant build-service in the Coffe Application. I can use it on some tutorials but not on others. Here is my PATH: C:\j2sdk1.4.2_04\bin;C:\sun\AppServer\lib;c:\jwsdp-1.3\jwsdp-shared\bin;C:\sun\appserver\bin;C:\sun\appserver\share\bin.
    And here is the message from the "dos" window;
    C:\Sun\j2eetutorial14\examples\saaj\myuddiping>asant build
    Buildfile: build.xml
    init:
    prepare:
    build:
    [javac] Compiling 1 source file to C:\Sun\j2eetutorial14\examples\saaj\myudd
    iping\build
    BUILD FAILED
    file:C:/Sun/j2eetutorial14/examples/saaj/common/targets.xml:9: C:\Sun\j2eetutori
    al14\examples\saaj\myuddiping\${j2ee.home}\lib not found.
    Thanks for the help!
    /Marcus

    Thanks for the help!
    Now it seems to work though. Haven�t done any changes what I know. Wierd...
    /Marcus

  • Problem with "asant build" in J2EE hello1 example

    Hi all,
    I'm trying to follow the J2EE tutorials the examples contained within,
    but I seem to have a hurdle with the very first example!
    Basically, when I type "asant build", nothing happens - nothing is echoed back, and it looks like the build process has hung.
    As far as I can see, I've defined my PATH etc. OK - as follows:
    E:\Sun\j2eesdk1.4_beta2\bin;E:\Sun\j2eesdk1.4_beta2\share\bin;F:\bea\jdk141_03\bin
    I've defined the following in build.properties as follows:
    j2ee.home=E:\Sun\j2eesdk1.4_beta2\
    sunone.home=${j2ee.home}
    admin.password= (removed for obvious reasons!)
    admin.host=localhost
    admin.user=admin
    Does anyone have any ideas?
    Best wishes
    Paul

    Honestly I must say everything is a bit suspicious. I think there is a bug more walking around.
    j2ee.home=E:\Sun\j2eesdk1.4_beta2
    should work but I saw with this asant tool that the \ is not recognized as a directory separator.
    j2ee.home=E:\\Sun\\j2eesdk1.4_beta2
    works because asant recognizes \\ as a directory separator. For my taste this a wrong representation, because it is the internal representation in the program.
    The entry should not use the internal program representation, so it is a bug.

  • How to use ant1.3 in Wndows ME to build the examples in J2EE Tutorial?

    When I tried to build the examples bundled with j2ee tutorial in the ..\j2eetutorial\examples directory using the ant 1.3 on Wndows ME I get the following exception.Anybody please help me.Is there any other build tool available for download?
    StringIndexOutOfboundsException
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples> ant -verbose all
    Ant version 1.3 compiled on March 2 2001
    Buildfile: build.xml
    Detected Java Version: 1.3
    Detected OS: Windows Me
    parsing buildfile D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml with URI
    = file:D:/JAVATUTORIAL/J2EE/j2eetutorial/examples/build.xml
    Project base dir set to: D:\JAVATUTORIAL\J2EE\j2eetutorial\examples
    Build sequence for target `all' is [init, savingsaccount, bank, cart, checker, c
    onfirmer, converter, enroller, order, salesrep, storagebin, teller, htmlreader,
    warehouse, simplemessage, cmproster, ejb, date, hello1, hello2, bookstore1, web-
    ejb, bookstore2, bookstore3, web, all]
    Complete build sequence is [init, savingsaccount, bank, cart, checker, confirmer
    , converter, enroller, order, salesrep, storagebin, teller, htmlreader, warehous
    e, simplemessage, cmproster, ejb, date, hello1, hello2, bookstore1, web-ejb, boo
    kstore2, bookstore3, web, all, create-storagebin-table, get-cci-jar, procs, cci,
    connector, create-salesrep-table, create-procs-alias, create-coffee-table, abou
    t, create-enroller-table, create-savingsaccount-table, create-web-db, create-war
    ehouse-table, create-bank-table, clean, create-order-table, create-teller-table,
    prepare, create-ejb-db]
    init:
    [property] Loading Environment myenv.
    BUILD FAILED
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml:19: D:\JAVATUTORIAL\J2EE\j2
    eetutorial\examples\build.xml:19: java.lang.StringIndexOutOfBoundsException: Str
    ing index out of range: -1
    --- Nested Exception ---
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml:19: java.lang.StringIndexOu
    tOfBoundsException: String index out of range: -1
    --- Nested Exception ---
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1476)
    at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:
    248)
    at org.apache.tools.ant.taskdefs.Property.execute(Property.java:172)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.Project.executeTargets(Project.java:510)
    at org.apache.tools.ant.Main.runBuild(Main.java:421)
    at org.apache.tools.ant.Main.main(Main.java:149)
    Total time: 2 seconds
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples>
    *********************************************************************

    Please Help Me

Maybe you are looking for

  • File size of imovie hd - HUGE;  why?

    I loaded in about 40 minutes of HD video captured on the cannon hv20 and then cut most of it out, so I now have a movie of about 4 minutes. I have emptied the recycle bin (both in imovie and the general computer), but the imovie file is still about 3

  • Problem of color spaces when i switch between photoshop cc 2014 and lightroom 5.7. where to ask

    hallo, where can we ask questions on photoshop cc 2014 tools ? i have a prophoto nef in lightroom which is retouched. i edit in photoshop cc to make a selection and come back to lightroom with a huge psd. it says color space of photoshop is not corre

  • User prefs not being saved?

    Just set-up new system. Fresh install of FCS. Each time I open an existing project some of my setting revert back to default. For example- I always have to select +show all effects+ from the effect drop down menu. When I close the project open- the e

  • I can't log in to my subscription

    ME SUSCRIBI Y NO ME DEJA CONVERTIR UN ARCHIVO DE PDF A WORD, QUE DEBO HACER

  • Using SQLCMD variables in SQL Server Unit Test Project

    Is it possible to use SQLCMD variables in my SQL Server Unit Test Project? In my test initialize script I'd like to set a database name variable, something like this: :SETVAR MyDatabase "mydatabase" SELECT * FROM [$(MyDatabase)].[mytable] but I get s