Advise using j2ee?

Hello,
I recently installed j2ee1.3, I am using win98 so I could not use 1.4.
And to setup the j2ee, I copied j2ee.jar to C:\jdk1.4\jre\lib (jdk1.4) being the standard developed kit.
Could anyone advise how to set the J2EE_HOME variable?
And could I ask, since the j2ee1.3 version comes with programs suchas j2ee, depoytool, and j2eeadmin. Could I run j2ee examples suchas this without a server?
Thank you
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class PrintLine extends HttpServlet{
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException{
res.setContentType("text/html");
PrintWriter out = res.getWriter();
out.println("<HTML>");
out.println("<HEAD><TITLE>Example Script</TITLE></HEAD>");
out.println("<BODY>");
out.println("<BIG>Hello World</BIG>");
out.println("</BODY></HTML>");
}

add the following line to your autoexec.bat file
J2EE_HOME = C:\j2sdkee1.3\ (or what ever the path is to your j2ee sdk) and add the following to your path
C:\j2sdkee1.3\bin

Similar Messages

  • Unable to use j2ee -stop or the deploytool

    I am a J2EE newbie. I have recently installed j2sdkee1.3.1 on Windows XP. The J2SDK version I am using is j2sdk1.4.0_01.
    I can start the J2EE server successfully and view http://localhost:8000/index.html.
    However, I am unable to stop the server using j2ee -stop. When I try to start deploytool, it hangs.
    Any suggestions

    I am havgin the same problem. When I try to stop I get error as:
    Shutting down the J2EE server.
    javax.naming.CommunicationException: Can't find SerialContextProvider
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:63)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at com.sun.enterprise.util.Utility.lookupObject(Utility.java:108)
    at com.sun.enterprise.server.J2EEServer.clientShutdown(J2EEServer.java:996)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:936)
    could you please help...
    thanks

  • Error in Java based iView when trying to use J2EE bean

    I am trying to create a iView based on Java Portal app.
    [Java portal app has dynPage based Portal App Object]
    I created a PAR and uploaded to Portal. I created iView and worked it fine in (preview).
    [iView created using "Content Administration -> Portal Content -> New From Par -> iView"]
    I deleted my iView and removed my archive (using "Java Developer -> Portal Archive Deployer/Remover").
    I changed java portal project so that I can reference a bean from J2EE app already deployed on server.
    [Edited Portalapp.xml to add a
        <property name="PrivateSharingReference" value="SAPJ2EE::service:p4, SAPJ2EE::test.myApp/myBean"/>
    This time PAR installs fine, but when I try to preview iView, get following error.
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    com/sapportals/portal/htmlb/page/PageProcessorComponent.
    Exception id: 02:36_11/08/05_0016_4991450
    See the details for the exception ID in the log file
    I removed "SAPJ2EE::test.myApp/myBean" from portalapp.xml and rebuilt PAR and rebuilt iView but I get same error as above.
    1. Where are logs located (for iView errors)?
    2. Any pointers on using J2EE bean? (I am trying to use step described in topic  "J2EE Applications Access from Portal Applications" from manuals).
    3. Do I need to reference any additional libraries to use p4?
    Thanks.

    The problem seems to be in portalapp.xml
    I created second PrivateSharingReference in it
    <property name="PrivateSharingReference" value="com.sap.portal.htmlb">
    <property name="PrivateSharingReference" value=" SAPJ2EE::service:p4, SAPJ2EE::test.myApp/myBean"/>
    I changed to be one entry only like
    <property name="PrivateSharingReference" value="com.sap.portal.htmlb, SAPJ2EE::service:p4, SAPJ2EE::test.myApp/myBean"/>
    Now iView works again....But still donot know where log is..

  • How to upload a file into server using j2ee jsp and servlet with bean?

    How to upload a file into server using j2ee jsp and servlet with bean? Please give me the reference or url about how to do that. If related to struts is more suitable.
    Anyone help me please!

    u don't need j2ee and struts to do file uploading. An example is as such
    in JSP. u use the <input> file tag like
    <input type="file"....>You need a bean to capture the file contents like
    class FileUploadObj {
        private FormFile srcFile;
        private byte[] fileContent;
        // all the getter and setter methods
    }Then in the servlet, you process the file for uploading
        * The following loads the uploaded binary data into a byte Array.
        FileUploadObj form = new FileUploadObj();
        byte[] byteArr = null;
        if (form.signFile != null) {
            int filesize = form.srcFile.getFileSize();
            byteArr = new byte[filesize];
            ByteArrayInputStream bytein = new ByteArrayInputStream (form.srcFile.getFileData());
            bytein.read(byteArr);
            bytein.close();
            form.setFileContent(byteArr);
        // Write file content using Writer class into the destination file in the server.
        ...

  • Unable to run Servlet program using J2EE SDK

    Hello,
    i am a newbie to all this j2ee stuff and servlets even.so the problem that i have maybe a very common one and i hope that most of you may have a fix to it...
    i use J2EE SDK to compile and run Servlet programs.I have a Servlet program with the class name defined as
    public class MyServlet extends HttpServlet ....
    the file is stored as MyServlet.java
    i set the CLASSPATH variable so that the required classes for the compilation of the program can be located.
    the program compiles without any glitches.
    However when i run the program by saying
    java MyServlet
    ( i dont think its any different to run servlet code is it?)
    i get the message
    java.lang.NoClassDefFoundException:MyServlet
    Can someone suggest a remedy?
    thank you
    -NDK

    First, I don't understand what you are trying to do. Running a servlet ?
    Servlets are ran by an application server ! (Apache Tomcat ....).
    Second, is your class in any package ?

  • Certificate Issue in web services Using j2ee in oracle apps 11i

    Hi all,
    I am working with web services integration in oracle apps 11i. I used j2ee technology. I installed j2eesdk-1_4_03 and test with j2eetutorial. I have to integrate third party payment system with web services in oracle apps 11i. I run following commands in putty
    build: asant build
    packing: asant create-war
    deploy: asant deploy-war
    client java:
    compile: asant build
    run: asant run
    While i run the "asant run" command, i got below the error
    sun.security.validator.ValidatorException: No trusted certificate found
    I added third party certification but i got same error which i mentioned above.
    Is any certification or settings need for run the web services in ebs.
    Thanks
    Edited by: 910361 on Nov 1, 2012 7:09 AM

    Hi,
    I do the settings according to your advice, i got below error when i run below command to add certificate to keystore.
    command:
    keytool -import -keystore /usr/j2ee/jdk/jre/lib/security/cacerts -file /usr/Class3G2.cer
    Error:
    keytool error: java.lang.Exception: Input not an X.509 certificate
    Thanks
    Edited by: 910361 on Jan 27, 2012 4:38 AM
    Edited by: 910361 on Jan 27, 2012 4:39 AM
    Edited by: 910361 on Jan 27, 2012 4:39 AM
    Edited by: 910361 on Jan 27, 2012 5:29 AM
    Edited by: 910361 on Nov 1, 2012 7:09 AM

  • Problem to use J2EE Packages in Forte 3.0 CE IDE

    I've got problems in using J2EE Packages in Forte for Java CE 3.0.
    I can't use these Packages with the Forte IDE!
    Example: import javax.jms.*;
    The Error: Can't find javax.jms.* Package
    What can I do to use the J2EE Package in the J2EE.jar?

    I post it so often, with a little bit different titles, cause the chance anybody helps looks better. Many People gave me so much help - but in so many different ways. So I changed the title of my Problem!
    I thank you for your support and help
    Bye

  • How Weblogic used in Integration using J2EE Connector architecture??? need more info

              Hi xperts,
              Would like to know more about weblogic integration in EAI zone using J2EE
              I checked on
              http://java.sun.com/j2ee/connector/
              http://java.sun.com/j2ee/white/connector.html
              Can anyone elaborate more on it? give me relevent more links??
              thnxs in advance
              --harshal
              

    http://www.bea.com/solutions/integration/index.shtml
              Harshal Pendse wrote:
              > Hi xperts,
              >
              > Would like to know more about weblogic integration in EAI zone using J2EE
              >
              > I checked on
              > http://java.sun.com/j2ee/connector/
              > http://java.sun.com/j2ee/white/connector.html
              >
              > Can anyone elaborate more on it? give me relevent more links??
              >
              > thnxs in advance
              > --harshal
              

  • Can I use j2ee in gprs mobile phone?

    How can I use j2ee in gprs moblie phone?

    Actual mobile phone are unlikely to support J2EE themselves as this is mostly server-side technology.
    You can get phones though that support J2ME, these can the communicate with a server running J2EE technologies.
    I'm not sure however if any gprs phones yet support J2ME, and it also depends on where you live.
    Try looking in the devices section at www.microjava.com

  • Why use J2EE?

    I have to start convincing a few people at work why we should make a move to J2EE.
    Why should we use J2EE, in particular EJBs on a payment processing type system.
    Personaly I have used EJBs, but the extent of "Hello World" type applications...

    > But I can say .Net or any 3rd party offers scalability, concurency, transactions, security etc...
    Of course many other vendors will also supply you with a solution that meets your needs - that's what vendors do and that's why there's competition in the market.
    However, with respect to the other vendors you've mentioned I would say this:
    J2EE is a real technology, tested and hosting live enterprise applications. It has been around for several years and is subsequently both well understood and well supported. Furthermore it is a standard, enabling you to choose the implementation that best suits your need/budget (as well as enabling you to develop on a cheaper system to what you deploy to). The range of implementations is impressive, ranging from free to very expensive (but still worth it for some businesses).
    > In what way can I apply this to my application "payment processing"....
    I'm not going to claim that J2EE will solve all your problems or that J2EE is the only platform that can deliver what you want. In an honest world I would tell you what J2EE is capable of and where it meets your requirements. Since your requirement is pretty vague I've given you an overview of where I think J2EE will be able to provide some real value - providing the detail is a job for a consultant who's investigated your problem domain.
    > Do you think that we will cost much more money to develope EJB system?
    Yes I do. EJB places constraints on what you can do and how you must program. It requires a great deal more forethought and design to achieve a system that performs well and meets your requirements. This all adds up to design and development time and in the end that means cost. At any rate, I would expect an experienced enterprise architect/developer to be more highly paid.
    But you'll get a lot more for your money! You might argue that it would take longer to develop a transactionally-safe, secure application without J2EE. Perhaps it would. But if you were implementing all this yourself you'd only implement what you needed; J2EE requires a little bit of effort all round.
    Don't misunderstand me - I think that J2EE is excellent and well worth implementing if you need (or will need) it. If you have a business need then go for it but don't forget that there are other Java technologies (perhaps a subset of J2EE such as Servlet/JSP) that may also provide what you need.

  • Use J2EE CAS COM Bridge locally for non visual components

    if you only have non visual java-classes which you want to access locally through COM, you should use J2EE CAS COM Bridge. this is a very powerfull component, that makes it very easy to use about ANY java-class in VC++, VB, ASP and VBScripts. Some people said earlier in this forum, that you can only use EJBs which must also have been deployed in a J2EE EJB server. well that's not true!! if you need only local access to java-components, you can use J2EE CAS COM Bridge as well. All you need is just a JRE, actually you can have multiple JREs installed and choose among them, even dynamiclly in runtime. No JDKs and no additional J2EE components are required.
    J2EE CAS COM Bridge comes with very usefull tools and lots of examples that show, how you can access java-classes in VC++, VB, ASP, etc.
    So TRY THIS!!

    unfortunately, it's outdated! The last example (6) doesn't work. The batch file cloudUtil.bat has to be adjusted to use the current cloudscape JAR files. And even then, the Visual Basic Programm terminates with an Exception at line:
    Set AcctHome = J2eeRi.LookupEjbHome("MyAccount", "account.AccountHome")
    Exception:
    Run-time error '-2147467259 (80004005)':
    JavaException: java.lang.Exception: Could not call javax.naming.InitialContext.lookup because:
    javax.naming.CommunicationException: Can't find SerialContextProvider
    :-(

  • Integrate outlook features using J2EE

    Can we integrate calendaring and e-mail functionality using J2EE techmologies?
    If yes, How to implement? First, I need some prototype (screen shots) how it will works in J2EE?

    The basic features (and many advanced features) are identical in all accounts. With pop3, your mail, calendar, contacts, tasks, notes are stored in a pst and are only on the computer. IMAP accounts only sync email back to the server, not calendar,
    contacts, and tasks. Outlook.com EAS accounts (aka Hotmail) syncs calendar and contacts back to the server. Exchange mailboxes stores everything on the server - mail, calendar, contacts, custom views, rules - and if you open the mailbox in outlook on
    any other computer, the mailbox is identical. Because everything is on the server, you'll have much better syncing with smartphones and tablets with Exchange mailboxes.
    Calendar sharing, open other users folder, and retention policies are Exchange-only. Mail Tips and apps (linked under the reading pane header in Outlook 2013) are Exchange-only.
    Diane Poremsky [MVP - Outlook]
    Outlook & Exchange Solutions Center
    Outlook Tips
    Subscribe to Exchange Messaging Outlook weekly newsletter

  • Code to send sms using j2ee application

    Hi all,
    this is shashi kant,
    plz send me the code to sent a sms using j2ee applications.
    or tell me the api these are used to  develop this kind of application.
    thanks
    my email id is---- [email protected]

    I'm working on a project to send SMS from a MIDlet
    to a servlet and back to the MIDlet through a
    SMSC.can anybody send a sample code for me to get
    help ?you should have a sms server .
    your MIDlet send the parameters to the servlet (mobile phone, message, ..) and, after, the servlet send a request to the sms center and he send to the mobile number the message !
    good luck

  • Running JMS client on multiple systems (using J2EE 1.4)

    Hello all,
    Can anyone tell me if it is possible to run a JMS client on a system that is not running a J2EE server on localhost? Is there any way to reference the server on another machine (using J2EE 1.4 server)??
    I found information in the J2EE 1.3.1 tutorial that tells of ways to
    - run the client program with both systems running the server
    - run the client program with only one system running the server (which isn't localhost)
    However, the corresponding portion of J2EE 1.4 tutorial only specifies running the client with App server running on both systems...... does this mean that we cannot run a standalone client program with no server on localhost in case of the 1.4 server?
    Also, most of the tutorials on JMS I have seen so far only explain the scenario with both the client and the server on a single machine. Is this how average JMS applications work?? What I mean to ask is, in a typical scenario where does a JMS client run....?? at the server, or at the client (which may or may not be running a server at localhost).
    Thanks for your time.

    The functionality has not changed in J2EE 1.4 outside of reving to JMS 1.1

  • CFID and CFTOKEN still set when using J2EE sessions

    I'm using CF10 and "Use J2EE session variables" is selected in the CF admin.
    When I visit an application, I get the JSESSIONID cookie, but I also get the CFID and CFTOKEN persistent cookies. The app I'm working with is older and uses Application.cfm instead of Application.cfc, but the clientmanagement and setclientcookies application attributes are set to false.
    I'm not sure why CFID and CFTOKEN are still set. Are they set regardless of the client and session management settings?

    cherdt
    There are ways to force the CF create cookies SESSION simply change the cfcookie to be a session cookie and tag you find these two links:
    http://www.bennadel.com/blog/1131-ask-ben-ending-coldfusion-session-when-user-closes-brows er.htm
    http://www.johnwbartlett.com/cf_tipsntricks/index.cfm?TopicID=75
    BKBK
    I agree with his statement and is so even though the documentation says.

Maybe you are looking for

  • File Based logging: Control file name based on calling service

    In the file logging, I need to change the "Prefix" and "Suffix" that I can type in, from page "FILE Transport Configuration" while creating business service with transfort: File. I need to be able to supply these values for the file name from proxy s

  • In the Middle of a DB Migration Question

    Dismounted mailbox database using dismount-database -identity "DB NAme". Then ran eseutil /mh to verify clean shutdown state: State: Clean Shutdown Log Required: 0-0 (0x0-0x0) Log Committed: 0-0 (0x0-0x0) The next command to run according to http://t

  • XSLT Code

    HI, Can anybody explain me where should i write the xslt code for error handling and how to use this error handling in Xi ? Regards, Tuhin

  • Artefacts in JPEGS.

    I see ALOT of artifacts in jpegs, if shot in jpeg I see them even inside lightroom, if shot I raw I see the artifacts them I export to jpeg. I gives a strange "shadow" or extra line around every straight line in the picture. Is looks ugly. http://uu.

  • Since updating to 10.6.8 my VPN has lost the connection after 30 minutes. Any ideas on how to fix this?

    I updated to 10.6.8 and now my VPN connection is unstable. It has lost the connection to the host after 30 minutes on three different occasions. Before updating, I was able to be connected for hours with no interruption. The error reads: "A configura