Java WSDP vs. J2EE

I recently downloaded Java Web Services Development Package ... because I need to run SAX with Java (using JAXP in the package). On the other hand, I downloaded a code sample from this site about BookStore application. And I couldn't run the example, someone told me I don't have J2EE installed. I then look for info about J2EE (1.4 Platform) and found that actually it support Java API for XML Processing (JAXP) ... does it mean I can uninstalled my previous downloaded Java WSDP? And, if that's the case, why not just let people download J2EE since it contains all the supports including Java WSDP? Which one is better if I need to run XML and web based application? My guess is J2EE?

JAXP is included with Java 1.4 (package javax.xml.parsers), so if all you want to do parse XML with SAX, you don't need JWSDP or J2EE. J2EE includes the Java Enterprise APIs, which includes things like Enterprise JavaBeans, servlets, etc. JWSDP provides APIs for building web services that process SOAP messages and includes some packages related to web service that aren't in J2EE, including a UDDI registry server and browser, the JAXR API, WS-I sample app, a web service security API, Tomcat, and Ant.
Mike

Similar Messages

  • WSDP vs J2EE

    What is the difference of using WSDP or J2EE in the implementation of Java WebServices?
    Thanks in advance.
    (I posted this topic in the Java Technologies for Web Services and I have not receive an answer)

    The latest release of the J2EE platform (1.4) includes Web services. At this point in time, there's not much difference between the two. In general, the JWSDP generally has more recent versions of the Java Web services technologies.

  • Java WSDP 1.4 is not parsing SOAP Exceptions

    We used Java WSDP 1.4 toolkit to generate stubs for webservices. We used Tomcat 5.1 as the web container. When methods of the webservice are invoked which do not return SOAP exception responses, WSDP is able to properly parse the response and display the resutls correctly. But when the responses contains SOAP exceptions, WSDP always returns
    "java.rmi.RemoteException: Runtime exception; nested exception is: trailing block elements must have an id attribute".
    But other toolkits like Axis 1.1,.Net,ColdFusionMX,Glue are returning proper exceptions messages. The following is the exception message received from the other toolkits for the same method invocation.
    "Exception has been thrown by the target of an invocation. '1000:Invalid data source name 'invalid_String'"
    Apart from Java WSDP all the other toolkits that we mentioned are able to parse the exception message properly and display the same.
    Any ideas why the toolkit is behaving like this. All the versions of Java WSDP that have come till date have a similar problem. We would be happy to hear any responses for the problem the we are facing in Java WSDP 1.4. At present we have decided not to use the toolkit for any web service development.

    Am specifying the URL of the WSDL file for which we are unable to get proper SOAP Exceptions, whenever they are generated. Whenever we give valid values while invoking the methods, the response is properly parsed, but when a SOAP Exception is supposed to be generated, it generally returns the Runtime exception that we mentioned. Can you please look into it and identify the reason about why it is failing. In case you are able to run it through properly, please attach the code that would make it work properly.
    The URL is :
    http://arcweb.esri.com/services/v2/PlaceFinderSample.wsdl

  • .java files in J2EE

    Where do I find files like HttpServlet.java in the j2ee 1.3.1 download? I installed into c:\j2sdkee1.3.1 on Windows 2000. Thanks.

    I'm not sure but look in the zipfile src.jar in the java installation directory

  • Calling a java application from j2ee web application

    Hi,
    I have a j2ee application in which i am making a call to a jar file which is a java application.
    Runtime a4 = Runtime.getRuntime();
    Runtime a = Runtime.getRuntime();
    String cmd[] = new String[14];
    cmd[0] = "cmd";
    cmd[1] = "/c";
    cmd[2] = "start";
    cmd[3] = "javaw";
    cmd[4] = "-jar";
    cmd[5] = CATALINA_HOME+"\\webapps\\AveksaTesting\\AveksaTestingJava\\dist\\AveksaTestingJava.jar";
    cmd[6] = SERVER_TESTS;
    cmd[7] = COLLECTOR_TESTS;
    cmd[8] = SYSTEM_TESTS;
    cmd[9] = CREATE_ORACLE;
    cmd[10] = DB_NAME;
    cmd[11] = DB_DUMP;
    cmd[12] = email;
    cmd[13] = isMIGRATE;
    try{
    java.lang.Process p = a.exec(cmd);
    Now in the called java application, i am first shutting down the tomcat server by calling shutdown.bat script and then starting it using startup.bat. But the problem i am facing is when i restart the server from java application, it says address already in use(i.e. port 8445 on which tomcat is runninng).
    Id i just call the java application and do the same operation it works fine. I guess when i am calling java from j2ee application, j2ee still has some threads holding java and not shutting down tomcat properly.
    Can anyone suggest me what can be done in this case. I have to call a java application from j2ee and restart the tomcat server many times.
    Thanks in advance
    -Vikram

    Annoyingly crossposted.
    http://forum.java.sun.com/thread.jspa?threadID=730657

  • Java WSDP License

    Hi,
    There is a lot of confusion regarding the license of JWSDP.
    The Java WSDP home page (http://java.sun.com/webservices/jwsdp/index.jsp) mentions that it is a free integration toolkit. On reading it one gets the impression that it is free to use and deploy.
    But on closer inspection of license file (http://java.sun.com/webservices/docs/1.6/LICENSE) it is mentioned that it is for evaluation for 180 days.
    What is the reality. Is it for free or do we have to pay for it.
    I want to use only the JAXB compiler (xjc). What do i need to use it.
    Cheers,
    Gurpreet.

    The reality is whatever the licence says. The technical term for a person who reads a legal document and explains it to you is "a lawyer". I am not one of those persons.

  • Java WSDP v1.3 -  Question?

    Is there any free Databases that will work with
    Java WSDP v1.3. It seems the one they use in the
    tutorial is PointBase and it's only a 90 day
    evaluation copy - I'd hate to finish the tutorial
    and then a few days later knowthing works because
    it's pasted the 90 days!
    Thanks

    Hey, thanks that works!
    Do you know an easy way (in a Windows batch file) to
    capture the system date (say the year), set it back,
    run PointBase and when PointBase is stopped, have
    the batch file put back the original date (year)?

  • Reminder: Online Chat, Jan. 25, on Java WSDP 1.5

    Got a question about the recently-released Java Web Services Developer Pack 1.5.? Get answers in this chat with key members of the Java WSDP engineering team. The chat is scheduled for Tuesday, January 25, at 9:00 A.M. PST/12:00 noon EST/17:00 UTC.
    To join the chat, go to 9:00 A.M. PST/17:00 UTC on January 25, and click the "Join" link.

    Correction: To join the chat, go to http://java.sun.com/developer/community/chat/index.html on January 25, and click on the "Join" link.

  • Why is JSTL included with Java WSDP?

    Just out of curiosity, why is JSTL bundled with JWDSP? The new JSTL is very slick technology (especially the new EL support), but I don't see any direct applications of JSTL to web services. Since most service implementations aren't Beans (e.g., the accessor methods require arguments), I can't invoke a web service with <jsp:getProperty>, and there's nothing in the JSTL spec that addresses web services.
    Mike

    Here's the description of the Java WSDP:
    The JavaTM Web Services Developer Pack (Java WSDP) is an integrated toolset that in conjunction with the Java platform allows Java developers to build, test and deploy XML applications, Web services, and Web applications.
    In other words, the Java WSDP isn't only for Web services.

  • About  Java WSDP

    Hi!
    "The JavaTM Web Services Developer Pack (Java WSDP) software is supported on Windows 2000 and XP. In addition, the Java WSDP software can also be installed, but is unsupported, on Windows 95, 98, ME, and NT 4.0. "
    Does this means, that if I have Win '98 Installed it will not work, or it will work but not properly?
    I'm not surem because it stays that the pack could be installed. Why is it so if it will not work ?>

    Unsupported means, don't bother asking them for help if you experience problems. Also, don't be surprised if it doesn't work.

  • Deployment issues java.io.IOException: [J2EE Deployment SPI:260]"

    I m using weblogic.Deployer to deploy webservice and getting this error
    java.io.IOException: [J2EE Deployment SPI:260080]Unable to define application install directory at '/tmp/WebService.war'. Directory could not be created or is a file.
    at weblogic.deploy.api.internal.utils.InstallDir.<init>(InstallDir.java:60)
    at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.upload(ServerConnectionImpl.java:624)
    at weblogic.deploy.api.spi.deploy.internal.BasicOperation.uploadFiles(BasicOperation.java:300)
    at weblogic.deploy.api.spi.deploy.internal.BasicOperation.execute(BasicOperation.java:385)
    at weblogic.deploy.api.spi.deploy.internal.BasicOperation.run(BasicOperation.java:169)
    at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.deploy(WebLogicDeploymentManagerImpl.java:369)
    at weblogic.deploy.api.tools.deployer.DeployOperation.execute(DeployOperation.java:47)
    at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:145)
    at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:93)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.Deployer.run(Deployer.java:70)
    at weblogic.Deployer.main(Deployer.java:54)
    I tried to set different tmp dir location as "-Djava.io.tmpdir=${WL_DOMAIN_HOME}/tempdir", but still i get the same Error.
    Any thoughts/help, how to set the location while deploying using weblogic.Deployer.
    Thanks
    Kraz
    Edited by: user10687441 on Dec 5, 2008 4:57 PM

    java weblogic.Deployer -usenonexclusivelock -adminurl http://153.2.3.101:5432 -username test -password test-t -upload -debug -deploy -source ../current-testnet/UdcWebService.war -targets udc
    I added this "-Djava.io.tmpdir=${WL_DOMAIN_HOME}/tempdir" in the start scripts of my admin and managed instances. Thinking by default the deployments were using /tmp/filename
    After some trial-n-error, renaming the war to UdcWS.war ....worked and I m happy :)
    But still curious how it is related to the name "WebService"
    Same command with only name change was successful, nothing changed inside the .war nor start scripts
    java weblogic.Deployer -usenonexclusivelock -adminurl http://153.2.3.101:5432 -username test -password test-t -upload -debug -deploy -source ../current-testnet/UdcWS.war -targets udc
    Any thoughts ?
    Edited by: user10687441 on Dec 6, 2008 5:41 PM

  • Exception occure when running bookstore2 JSP example from Java WSDP 1.1

    I am new to Java WSDP, and just downloaded 1.1 version and tried it with the tutorial.
    1. In section for populating pointbase database, tutorial says just "Enter ant. ... default Ant task create-book-db" will populate database. However, I couldn't get this working until I explicitly excute "ant create-book-db". Is there anything wrong here? Does it affect the rest of the tutorial?
    2. I managed to use '...\bookstore2\ant build' to compile the JSP version of the Bookstore, but I need help for installing it.
    Steps I took:
    start pointbase
    ...\web\ant create-books-db --- seems to be successful
    ...\web\bookstore2\ant build --- successful
    start Tomcat
    go to admin page and configured the dataSource
    ...\web\bookstore2\ant install ---- HELP! exceptions:
    install:
    [install] FAIL - Encountered exception java.io.IOException: java.lang.reflect.
    InvocationTargetException
    BUILD FAILED
    file:C:/Java/jwsdp-1.1/docs/tutorial/examples/web/bookstore2/build.xml:93: FAIL
    - Encountered exception java.io.IOException:
    java.lang.reflect.InvocationTargetException
    Really hope anyone can offer me some help, many many thanks.

    i have the same problem.................. boy.
    and now i have the answer for this problem. wait please.

  • How to compile java programs in j2EE 1.4 SDK

    hi,
    i HAVE JUST INSTALLED NEW J2EE 1.4 SDK , IT HAS BEED INSTALLED SUCCESFULLY BUT I AM UNABLE TO COMPILE JAVA PROGRAMS WHICH I USED TO RUN IN SDK 1.4 ,OR EVEN NEW WRITTEN EXAMPLES. CAN ANYONE PLZ HELP ME.

    J2EE by itself is not capable of compiling Java. It requires that a J2SDK be installed first - this is what compiles and runs Java programs. Did you install the combination J2SDK and J2EE, or just the J2EE?
    If both are installed, then you should be able to compile and run as you used to..

  • Two related questions:  ColdFusion 10/Java applications and J2EE supported servers

    I have two related questions:
    1.  CF10 and integration with Java Web applications
    We have a couple of Java applications running on JRun and interfacing with CF9 applications.  The JRun clusters were created through the JRun Admin and, apart from lack of Axis 2.0 support, have served us well for years now.  And, as would be the case, the ColdFusion9/Java/Flash application is a critical public-facing application that the business uses for bidding on projects.
    It appears that with ColdFusion 10 on Tomcat, we will not be able to run those Java applications on a Tomcat-CF10 JVM cluster.  Is this correct?  IF so, what are our options? 
    2.  J2EE Application Servers supported by Adobe for CF10
    Which of these is correct?
    A.  This URL (http://www.adobe.com/products/coldfusion-enterprise/faq.html) states "ColdFusion 10 supports IBM® WebSphere, Oracle® WebLogic, Adobe JRun, Apache Tomcat, and JBoss."
    B.  This URL (http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/coldfusion/pdfs/cf1 0/coldfusion10-support-matrix.pdf) states:
    "J2EE application servers: WebLogic Server 10.3, 11.1, WebSphere Application Server 7, ND 7 JBoss 5.1, 6.0, 7.1.0"
    I *think* "A" above is wrong re. support for Adobe JRun.  It does not specify a version of Apache Tomcat unless it is simply referring to the custom version the comes with CF10.
    Option "B" above shows no support of Adobe JRun or 'standard' Apache Tomcat.
    Thanks,
    Scott

    Question 1 above was answered:  "No support for Java web applications under CF10's custom version of Tomcat"
    Question 2:  No answer yet:  Is Apache Tomcat (NOT Adobe's customized version) supported for CF10 J2EE deployment?  I do not see any installation instructions on how to install CF10 on Apache Tomcat 6 or 7.
    Is anybody using Apache Tomcat as their J2EE app servers and, again, NOT Adobe's customized/limited version? 
    Thanks,
    Scott

  • Java.io in J2ee stateless session bean, general questions about debugging

    Doing conventional Java IO (with java.io functions and classes such as
    PrintWriter and println) in a Enterprise bean has been discussed before
    in this and other forum. We know that the EJB specification says not to do it.
    (For example the EJB 2.0 spec, 24.1.2) says that an enterprise
    bean must not use the java.io package to attempt to access files and
    directories int he file system."
    The discussion in various forums including this one is that
    a) using java.io in a bean would impact portability, ability to
    move the bean for load balancing
    b) However, this is not always an an issue and it may be reasonable
    to use these functions anyway. e. g. see the response by "maozhoulu"
    on Jun 21, 2002.
    I tried it in Sun Application Server Nine in my stateless Session Bean:
    package RS;
    import RS.CourseHome;
    import RS.CoursePK;
    import java.rmi.RemoteException;
    import javax.naming.InitialContext;
    import javax.naming.Context;
    import javax.rmi.PortableRemoteObject;
    import javax.ejb.EJBException;
    import java.io.*;
    public class AddCourseBean implements javax.ejb.SessionBean {
       public void ejbCreate(){};
       public void CreateCourse (int CourseNumber, String CourseName) {
        try {
         System.out.println("in Create Course");
         PrintWriter F = null;
         try {
          F = new PrintWriter (new FileOutputStream("/tmp/v/af"));
         catch (java.io.FileNotFoundException fe){}
         F.println ("here zero");F.flush();
         InitialContext jndiContext = new InitialContext();
         F.println ("here one");F.flush();
         Object o = jndiContext.lookup("ejb/X");
             ...I got a Null pointer exception on the line:
    "F.println("here zero"); Is there anyway one can do simple debugging with print lines in one's beans?
    Or is there something obviousthat I am overlooking? (I saw mention of doing
    debugging with System.out.println but to where would the bean write?)
    I tried using the Jakarta Commons Logging, but I got a
    java.lang.NoClassDefFoundError on org/apache/commons/logging/LogFactory
    Which logging system does one use in GlassFish, hopefully one with minimal
    configuration? I want to do some debugging, not set up logging for a full
    enterprise system.
    Thanks for your insight and advice.
    Dr. Laurence Leff, Associate Professor of Computer Science WIU ST447 61455
    Pager 309 367 0787, Fax 309 298 2302

    My apology for posting this message twice. I looked for it before and
    did not see it. I thought I forget to click the "Post message" button.
    Also, I did resolve one problem. System.out.println does go to
    the log file, which in my case turned out to be:
    /opt/j2ee/SUNWappserver/domains/domain1/logs/server.log
    (Obvously, the first part would vary based upon where you installed your
    Application Server Nine.)
    However, it would be nice if there was some way to use FILE I/O inside of
    beans. I am teaching some J2EE in the graduate software engineering course,
    and I believe this would be pedagogically sound even if other techniques
    would be appropriate for a production environment.
    Thanks for your patience with this problem and my duplicate post.

Maybe you are looking for

  • [SOLVED] Timezone issue with Mythtv

    I've just gotten home and have gone to use Mythtv frontend in the lounge room but I am getting the issue: Your frontend and backend are configured in different timezones. You must correct this mismatch to continue This has also recently happened on t

  • Is this jsp or oracle issue

    Hi , I have published a view as jsp link(using a in-house applcation) but i got the following error : An error occurred while fetching the results. Error Message : ORA-29925: cannot execute acctA.STRINGAGGTYPE.ODCIAGGREGATEINITIALIZE note : i am usin

  • Slow buffering of purchased content

    I bought two TV series for iTunes, The Walking Dead and American Pickers. The former is in HD and the latter in standard. I don't have a problem watching American Pickers, but The Walking Dead is almost impossible to watch without getting frustrated

  • IPhone 3G 2.1 - Slow text input Safari

    When typing into a "text box" on a web-page the keyboard becomes extremely unresponsive, even when typing a single word such as 'you' On a few occassions, it has also caused safari to crash, taking me back to the home screen. Ive noticed this After t

  • Playing Presenter 9 recordings on an iPad

    I have published a presentation using Presenter 9 to Adobe Connect and I have the Presenter app installed on my iPad.  When I tap on the Connect link on the iPad, it starts Safari and says that Flash needs to be installed.  However according to Adobe