Problem to run servlets in web logic

dear fnds please solve my problem,
i created a domain in weblogic server using configuration wizard.but after deploying i cannot get the servlet. please provide me the url how to access that file.

hello . (u follow these steps)
me Mr. Vijayakumar .D.R 09842088860, [email protected]
steps to deploy servlet in weblogic 8.1
1 start weblogic server
2 open weblogic builder tool
3. go to tools menu and connect to server
4. go to file -> open and select ur folder which contains servlet file.
5. b4 that u create urfolder -> WEB-INF - classes .
like this u have to create folders.
then copy ur servlet class file under urfolder->WEB-INF->classes directory.
6. goto step 4 to continue..
7. then give yes.
8. goto tools menu and click -> (deploy module) ->again click in child window (deploy module) button.
9. finally open browser and type http://localhost:7001/urfoldername/servletname
setting classpath for compile
x:\> set classpath=c:\bea\weblogic81\server\weblogic.jar
or find weblogic.jar and set that dir as classpath
Message was edited by:
drvijayy2k2

Similar Messages

  • Problem while deploying application in web logic

    Hi,
    i have an web application with servlets running fine in tomcat 5.1.12, but when i copy the same foldet to web logic and i run i gives an error, i create a domain of my name, and i kept the folder in weblogic, user _projects--> applications folder, but while accessing from the browser i got an error. so please rectify my error.
    Babji..

    I don't use web logic so I can't help you. But if you post whatever error message you are referring to into your thread, someone who uses web logic might have a better idea as to how to respond. Additionally I suspect there may be some differences in the configuration settings between Tomcat and web logic, you might look into that. But I have no idea.

  • Jsp files: how can i run it on web logic server 6.1?

              I have installed web logic server 6.1 on my machine but i have some trouble to
              run jsp files on it cause if i have a .jsp file in the root directory(where is
              placed index.html default home page) and try to call the .jsp file on the browser
              it appears the source of the jsp. How can i do to compile the .jsp file and return
              the page result on the browser?
              Thank you
              Paolo
              

    Copy JSP file into the
              /applications/DefaultWebApp directory
              In a web browser, request the JSP file using the following URL:
              http://localhost:port/
              Paolo wrote:
              > I have installed web logic server 6.1 on my machine but i have some trouble to
              > run jsp files on it cause if i have a .jsp file in the root directory(where is
              > placed index.html default home page) and try to call the .jsp file on the browser
              > it appears the source of the jsp. How can i do to compile the .jsp file and return
              > the page result on the browser?
              > Thank you
              > Paolo
              

  • Problem in running Servlet

    Hello,
    I am new to Java. I worked on Dot Net for 1 year and migrated to Java. I am facing an error while running my first servlet using tomcat-jwsdp-1.4.
    HTTP Status 404 - /servlet/ServerConfig
    Description: The requested resource (/servlets-examples/servlet/ServerConfig) is not available.
    First, I created a java file ServerConfig.java then compiled it by setting the classpath to servlet.jar. After that I copied the class file ServerConfig.class to
    D:\tomcat\tomcat-jwsdp-1.4\webapps\ROOT\WEB-INF\classes\
    Then I created an entry as,
    - <servlet>
    <servlet-name>ServerConfig</servlet-name>
    <servlet-class>ServerConfig</servlet-class>
    </servlet>
    in the Web.xml file located at
    D:\tomcat\tomcat-jwsdp-1.4\webapps\servlets-examples\WEB-INF
    Then I started tomcat server and tried to access my servlet ServerConfig.class in Internet Explorer by giving the URl as,
    http://localhost:8080/servlets-examples/servlet/ServerConfig.
    It doesn't work.
    I have set the variable JAVA_HOME to d:\jdk1.4, where my j2sdk is installed.
    Can you please help me?

    Firstly you should put your class in a package, then you need a servlet mapping in your web.xml, eg :
    <servlet>
      <servlet-name>TestServlet</servlet-name>
      <servlet-class>test.TestServlet</servlet-class>
    </servlet>
    <servlet-mapping>
      <servlet-name>TestServlet</servlet-name>
      <url-pattern>/servlet/TestServlet</url-pattern>
    </servlet-mapping>

  • PROBLEMS IN RUNNING FORM ON WEB

    HELLO ALL
    I AM DEPLOYING FORMS ON WEB. I AM USING FORM 5. I HAVE MANAGED
    TO DEPLOY AND RUN FORM ON WEB, BUT I AM HAVING COUPLE OF
    PROBLEMS AND QUESTIONS.
    1. MY FORMS ARE RUNNING AS AN APPLET. HOW CAN I RUN IT WITHIN
    BROWSER?
    2. IF MY CANVAS IS BIGGER THEN BROWSER WINDOWS SIZE WILL SCROLL
    BAR WORK?
    3. WILL I BE ABLE TO USE CUSTOM MENU AND CALL OTHER FORMS?
    4. HOW CAN I USE FORMS STANDARD FUNCTION KEYS (F7, F8 ETC.)?
    THANKS

    1. In your HTML startup file add <PARAM NAME="separateFrame"
    VALUE="false">
    4. Create a keyboard mapping (.res) file with function keys and
    modify your startup HTML file, e.g.:
    <PARAM NAME="serverArgs" VALUE="module=logon.fmx
    term=c:\forms\mykeys.res>

  • Problem in running code from web service

    All,
    We are experiencing a problem while running a code from a web service. The code based on ecliselink. The same code works from JUnit. When running from webservice, we observed the the following warning
    *0 WARN [[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'] openjpa.Runtime - The configuration property named "openjpa.Id" was not recognized and will be ignored, although the name closely matches a valid property called "openjpa.Id".*
    *0 INFO [[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'] openjpa.Runtime - Starting BEA Kodo 4.2.0*
    Does this mean it is picking kodo implementation? Our expectation is to use eclipselink implementation. What could this warning? Any pointers would be of great help.
    Thanks,

    Sounds like it is using Kodo, is anything from EclipseLink logged?
    Have you configured your JPA provider in your persistence.xml? If you have not, then you will just get the default.
    James : http://ww.eclipselink.org

  • Problems on  running forms in web mode

    Hi guys,
    I have a problem seeing icons when I launch an application in web mode. when it runs in client -server mode it works .. (I see icons).
    Can you help me?
    thak's a lot!
    looking forward your reply.
    Marco

    When running on the web Forms no longer uses an environment variable to pick up icon location. This information is now set in the registry.dat file (located Ohome\forms60\java\oracle\forms\registry\). All icons must be converted to GIF or JPG format.
    The registry.dat file has 2 lines for
    1) default.icons.iconpath=
    2) default.icons.iconextension=
    Hope this helps,
    Candace Stover
    Forms Product Management

  • How to create a new Servlet in Web Logic Workshop 8.1?

    Hi,
    I am new to WebLogic. I am now using WebLogic 8.1 SP4. I want to use Servlets in my project. But I can't able add new Servlets. There is option to add JSP,Java Class, etc but no Servlet. Please help me.
    Regards,
    Venkatesh M. :-(

    Hi Venkatesh ,
    To create or import the Servlet in workshop and to run it, we need to follow the steps in workshop as given below.
    1)Create the empty application
    2)Create the webproject under the application
    3)Right click on the webproject and choose the new -> java Class to write the
    servlet in IDE Or choose import option and import the servlet file
    4)Start the weblogic server
    5)Go to tools menu->choose weblogic server->choose weblogic builder
    6) In weblogic builder go to file menu->open your webproject
    then it shows servlet ,filter,security Constriant and tag libraries folders in a builder at left side
    7)Click on the servlet folder and click on the add button at right pane of the builder then you will give servlet name , servlet class name and url pattern.
    After giving the Urlpattern click on the add button which is right to the urlpatern text field.
    8)Click on ok button
    9)click on the save button
    then you will see the servlet mapping elements in web.xml file in workshop IDE what we given in builder.
    10)Exit from the weblogic builder
    11)Right click on the application and clean the application
    12)Build the application
    then it compiles the Servlets files automatically.
    You can see the those class files in .workshop folder which is located under applicaton folder.
    Note :go to the applicaton where it is stored.you should see these files manually because workshop ide shows the navigation from the webproject only. you can't see these files from workshop.
    13)Go to tools menu->weblogic server->weblogic console and test the application using the weblogic console.
    or Directly opent he internet explorer send a request for particular servlet by giving urlpattern.
    Regards
    Anilkumar kari

  • Bad problem on run as a web

    Hi
    I have Oracle9i DB with UTF8 characterset and i have a problem on Arabic data entry when i run report on a web, but when i run it on paper i can see it right!!!
    (Oracle9iDS , report9i)
    but i can see true data with English word.
    also i change the characterset of report as a web to UTF8.
    How can i solve it?
    Thanks

    Hi
    I have Oracle9i DB with UTF8 characterset and i have a problem on Arabic data entry when i run report on a web, but when i run it on paper i can see it right!!!
    (Oracle9iDS , report9i)
    but i can see true data with English word.
    also i change the characterset of report as a web to UTF8.
    How can i solve it?
    Thanks

  • Problem in running servlets

    Hi frnds,
    I am very much new to java servlets technology, I have installed tomcat 5.0.28,and from the browser i gave the following url,http://localhost:8000,where 8000 is the port tomcat is running,i could see the tomcat home page,but when i gave http://172.16.8.13:8080,i am getting the following error ,(172.16.8.13 is my system ip address)
    The requested item could not be loaded by the proxy.
    The connection timed out. The server could be down, unreachable, or is not responding. If you are unable to connect again later, contact the server's administrator.
    We have a local proxy here,when i gave ip address the request is going to proxy and coming back and giving the above error,i am unable to figure out the error,does tomcat has to be additionally configured for this type of setting.
    Can any body help me?Its very urgent for me

    From the problem I understand that when you are providing the ip address to the browser, it is going into the Internet cloud and is unable to find such an address.
    If you are using IE , go to Tools->Internet Options->LAN settings(button)
    -> Proxy Server (block)->Advanced (button) .
    Please enter the Ip address of your machine in this block text area and try.
    In Mozilla goto Tools->Options->Connection Settings and enter your ip address in the No proxy for textbox.

  • Problems on  running forms in web mode FORMS 6i

    Hi guys,
    I have a problem seeing icons when I launch an application in web mode (no icons on buttons). when it runs in client -server mode it works .. (I see icons).
    Can you help me?
    thank's a lot!
    looking forward your reply.
    Marco

    You need to convert you ico files to gif's or jpg's.
    Then just place them in the directory where the fmx is or better yet specify their location in the registry.dat file.

  • Problem in running servlets over the net & in non-root user mode(FC-4)

    I have installed Tomcat 5.0.28 and it is running
    successfully in Fedora core 4,I wrote a servlet,to access a mysql database and it is running correctly,but when i logged
    onto non-root user, when i call the servlet through the
    html page i get "page not found error" .This is happening even when i do it from other system.
    I thank in advance if any could help me in this case

    Did you try using %20 instead of a space?  I know it works for URLs...worth a shot.

  • Deploying a Servlet in Web Logic Server 6.0

              Hi,
              I am trying to deploy a simple servlet in WebLogic Server.
              I have done the following steps.
              1) Compiled the MyWorld.Java Servlet Successfully in c:test\ Directory..
              2) Created WEB-INF/Classes Directory in the home Directory of WebApplication Directory..
              C:\bea\wlserver6.0\config\mydomain\applications\
              3) Copied the Class file into the WebApplication Directory i.e
              C:\bea\wlserver6.0\config\mydomain\applications\WEB-INF/Classes
              4) Executed in the Browser using following URL:
              http://127.0.0.1:7001/MyWorld
              But, I am getting this error:
              Error 404--Not Found
              Please let me know if the above procedure is wrong, then what are the exact steps
              involved in Deploying a servlet in WebLogic Server.
              Thanks,
              Ram.
              

    My installation has a DefaultWebApp directory under mydomain/applications,
              try moving everything down there. (I'm on 6.1 but I think 6.0 is the same)
              Eliot Stock
              eliot [ at ] carbonfive [ dot ] com
              http://carbonfive.com
              "Ram" <[email protected]> wrote in message
              news:3bc71641$[email protected]..
              >
              > Hi,
              >
              > I am trying to deploy a simple servlet in WebLogic Server.
              > I have done the following steps.
              >
              > 1) Compiled the MyWorld.Java Servlet Successfully in c:test\ Directory..
              >
              > 2) Created WEB-INF/Classes Directory in the home Directory of
              WebApplication Directory..
              > C:\bea\wlserver6.0\config\mydomain\applications\
              > 3) Copied the Class file into the WebApplication Directory i.e
              >
              > C:\bea\wlserver6.0\config\mydomain\applications\WEB-INF/Classes
              >
              > 4) Executed in the Browser using following URL:
              > http://127.0.0.1:7001/MyWorld
              >
              > But, I am getting this error:
              >
              > Error 404--Not Found
              >
              > Please let me know if the above procedure is wrong, then what are the
              exact steps
              > involved in Deploying a servlet in WebLogic Server.
              >
              > Thanks,
              > Ram.
              >
              

  • Problem in running example in web service tutorial

    Hi,
    I have installed jwsdp 1.1. When I followed the procedures stated in the tutorial and compiled the example in the dir
    {jwsdp home}\docs\tutorial\examples\cb\jaxm\, errors occur.
    Here are the errors occurs in the launcher.server.log.
    java.lang.reflect.InvocationTargetException
         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 org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
         at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
         at org.apache.commons.digester.Digester.endElement(Digester.java:830)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:552)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1071)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1533)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:346)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:529)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:585)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1142)
         at org.apache.commons.digester.Digester.parse(Digester.java:1302)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:335)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:804)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:452)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:882)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1198)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:739)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
         at org.apache.catalina.core.StandardService.start(StandardService.java:499)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2187)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:504)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:399)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
         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 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
         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 org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.lang.IllegalStateException: Context path /RegistryServer is already in use
         at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:523)
         ... 42 more
    [ERROR] Digester - -End event threw exception <java.lang.reflect.InvocationTargetException>
    java.lang.reflect.InvocationTargetException
         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 org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
         at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
         at org.apache.commons.digester.Digester.endElement(Digester.java:830)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:552)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1071)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1533)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:346)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:529)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:585)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1142)
         at org.apache.commons.digester.Digester.parse(Digester.java:1302)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:335)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:804)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:452)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:882)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1198)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:739)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
         at org.apache.catalina.core.StandardService.start(StandardService.java:499)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2187)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:504)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:399)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
         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 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
         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 org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.lang.IllegalStateException: Context path /Xindice is already in use
         at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:523)
         ... 42 more
    [ERROR] Digester - -End event threw exception <java.lang.reflect.InvocationTargetException>
    Sorry for posting such a long error capturing above.
    But I really don't know which part goes wrong. I have already copied the endorse dir to my java sdk 1.4.1 home.
    Any ideas?
    A million thanks in advance ^^
    Sherina

    I have this problem too. Please let me know if you have resolved it.

  • Problems in running the servlet in Oracle JDeveloper

    I have problems in running servlets(http servlet) in oracle jDeveloper.
    Heres the code
    package view;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Servlet1 extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException {response.setContentType(CONTENT_TYPE);
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<head><title>Servlet1</title></head>");
    out.println("<body>");
    out.println("<p>The servlet has received a GET. This is the reply.</p>");
    out.println("</body></html>");
    out.close();
    When Im about to run this code in the IDE it throws a fatal error
    Error initializing server: At least one valid code-source or import-shared-library element is required for shared-library "global.libraries" in /D:/jdevstudio10132/jdev/system/oracle.j2ee.10.1.3.40.66/embedded-oc4j/config/server.xml.
    07/09/12 21:37:43 Fatal error: server exiting
    does anyone know here whats the problem???

    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Servlet1 extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {response.setContentType(CONTENT_TYPE);
    PrintWriter out = response.getWriter(); out.println("<html>"); out.println("<head><title>Servlet1</title></head>");
    out.println("<body>");
    out.println("
    The servlet has received a GET. This is the reply.
    "); out.println("</body></html>");
    out.close();
    When Im about to run this code in the IDE it throws a fatal error Error initializing server: At least one valid code-source or import-shared-library element is required for shared-library "global.libraries" in /D:/jdevstudio10132/jdev/system/oracle.j2ee.10.1.3.40.66/embedded-oc4j/config/server.xml. 07/09/12 21:37:43
    Fatal error: server exiting does anyone know here whats the problem???

Maybe you are looking for