Bea weblogic can't see index.jsp?

For some weird reason bea weblogic has started to act strange... it doesn't automatically go into 'index.jsp' when i access /MyWebapplication/someotherdir/index.jsp
I've tried index.html too but i just get a 404?? i verified the same web project on tomcat and it doesn't give me the same error.

after inspecting it a bit more i can access /MyWebapplication/someotherdir/index.jsp directly i.e.. it doesn't auto redirect to the index.jsp. In bea weblogic web application configurations if i have it listed as:
MyWebapplication_war
that is when i can't access it but if it appears as:
appsdirMyWebapplication_war
it works fine...
in the first instance i used the upload function in the second one i dropped it directly in the application directory... it shouldn't make a difference which is strange??

Similar Messages

  • Can we see index value

    Can we see index value of the particular column ?
    Thanks,
    Venkataraman.L

    Are you mean what indexes exists on a given column/table?
    Yes
    select index_name from dba_ind_columns where table_name='NAME_OF_TABLE'
    AND COLUMN_NAME='NAME OF COLUMN';
    regards
    Helio Dias
    http://heliodias.com

  • Does BEA WebLogic 4.2.1 have JSP support

              If so what level
              Thank you
              

    Ashish,
    WLI 2.1 does not run on WLS 6.0, only WLS 6.1 SP1.
    WLI 2.0 -> WLS 6.0 SP2
    WLI 2.1 -> WLS 6.1 SP1
    Cheers,
    Chris
    Ashish Agrawal wrote:
    Hi David,
    I downloaded WLI2.1 and installed it successfully.
    I am using WLS 6.1 SP1 with WL2.1.
    Please tell me does WL2.1 supports WLS 6.0 as I am getting error in deploying
    a JCA adapter in WL2.1 + WLS 6.0 SP2.
    The same adapter was successfully deployed using WL2.1 + WL6.1
    Thanx in advance
    Ashish Agrawal
    ASAP Solutions.
    "R J David Burke" <[email protected]> wrote:
    Hi all,
    BEA WebLogic Integration 2.1 is now available!
    Read the press release at
    http://www.bea.com/press/releases/2001/1022_portal_wli.shtml
    Download the software for evaluation purposes from
    http://commerce.bea.com/downloads/weblogic_integration.jsp
    Regards, David Burke
    ECI Product Management
    BEA Systems, Ltd.

  • Very strange index.jsp problem (Apache2 + Jboss/Tomcat)

    I've been working on this for 6 hours until the current time of 4.30 am - any help is very much appreciated.
    I (thought) I had successfully integrated Jboss/Tomcat with apache 2 using mod_jk 1.2.8 - and added an alias for jmx-console. But I just can't make index.jsp serve when loading the default directory. I also tried with a fairly straightforward jsp site I have 'ConnectSite' (just a conference name).
    I have created deployment and alias called connect, results
    http://localhost:8080/ConnectSite [success]
    http://localhost/ConnectSite/index.jsp [success]
    http://localhost/ConnectSite/ [fail] - Apache treats it like any other directory.
    But what's really strange is if i take out mod_jk from apache and leave in DirectoryIndex index.jsp - then apache will serve the .jsp file unprocessed. All the static content is served by apache just fine.
    I am baffled. Should I just try proxy for the moment.
    Many Thanks,
    -Mike D
    Config files -
    Apache section (Have of course added DirectoryIndex index.jsp)
    LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
    <IfModule mod_jk.c>
    JkWorkersFile /usr/local/apache2/workers.properties
    JkLogFile /usr/local/apache2/logs/mod_jk.log
    JkLogLevel error
    JkOptions +ForwardDirectories
    DirectoryIndex index.jsp
    # JkAutoAlias /usr/java/jboss/server/default/deploy
    # send all requests ending in .jsp to worker1
    JkMount /*.jsp foo
    # send all requests ending /servlet to worker1
    JkMount /*/servlet/ foo
    </IfModule>
    (running apachectl configtest returns syntax OK)
    workers.properties ...
    # Tomcat and Java configuration
    workers.tomcat_home=/usr/java/jboss/server/default/deploy/jbossweb-tomcat50.sar
    workers.java_home=/usr/java/jdk
    ps=/
    worker.list=foo
    # Definition for local worker using AJP 1.3
    worker.foo.type=ajp13
    worker.foo.host=localhost
    worker.foo.port=8009
    worker.foo.cachesize=20

    Workaround for anyone interested:
    In apache conf:
    use JkMount /ContextName/ to explicitly send each directory with index.jsp to Tomcat

  • Can't see /rep/start/index.jsp

    When I browse http://<server>:<port>/rep/start/index.jsp page, it show s 503 Internal server error
    An internal error occurred. Contact you XI administrator
    java.lang.NoClassDefFoundError
    Stacktrace
    Thrown:
    java.lang.NoClassDefFoundError: null
         at com.sap.aii.ibrep.server.transport.api.RepTransportServiceStartup.startupIbrepTransportServices(RepTransportServiceStartup.java:22)
         at com.sap.aii.ibrep.server.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:442)
         at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:33)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponentImpl.startup(ExplicitApplicationComponentImpl.java:116)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.startup(ExplicitApplicationComponents.java:383)
         at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:209)
         at jsp_Main1205163773703._jspService(jsp_Main1205163773703.java:21)
         at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    What could be wrong?

    yeah. I mentioned in first post first line
    http://<server>:<port>/rep/start/index.jsp
    All instances are showing green in color in the sap mmc and I can view J2EE information page and WebService Tester pages
    But not able to browse System Landscape Directory, /rep/start/index.jsp, UME etc.
    thanks for your reply
    nikhil

  • Href link with //localhost:7001 prefix in index.jsp  for WebLogic Workshop 8.1.2

    I installed the WebLogic Workshop 8.1.2 (Build: 2003.1211.044125). I built all
    six projects
    and everything seems to work well.
    I could access to the sample web services on the WebLogic server from the local
    server
    as well as from a remote client machine by pointing the browser to the following
    two URLs respectively:
    http://localhost:7001/WebServices/index.jsp (browser from local server)
    http://192.168.1.100:7001/WebServices/index.jsp (browser from remote client machine)
    When the "Simple web service sample" page shows up, I could click from the local
    server, and
    go to the HellowWorld.jws link. However, from the remote machine, I got the "Page
    not found"
    error when clicking on the HelloWorld.jws link.
    I checked the index.jsp file in the
    C:\bea\weblogic81\samples\workshop\SamplesApp\WebServices directory on the WebLogic
    server, and found that all the href reference has the //localhost:7001 prefix
    in the link,
    which caused the remote browser to fail.
    I then tried to global replacement and remove all the //localhost:7001 references
    in the
    index.jsp file so that the line changed from something like this:
    href="http://localhost:7001/WebServices/HelloWorld.jws?.EXPLORE=.TEST">HelloWorld.jws</a>
    to something like this:
    href="http:/WebServices/HelloWorld.jws?.EXPLORE=.TEST">HelloWorld.jws</a>
    and then save the index.jsp file in the same directory.
    Now, I fresh both of my browsers and I can correctly access to the HelloWorld.jws,
    and
    all other sample links, from the local server as well as from the remote client
    machine.
    Why is //localhost:7001 needed in the index.jsp file? It seems that without it
    the
    samples work better.

    Hello,
    You will need the full URL when you extend out of your local
    environment. Check out docs here [1] for an overview or for an extended
    story, review the issues [2] involved with clusters, DNS, IP addr, etc.
    Hope this is of some value,
    Bruce
    [1]
    http://edocs.bea.com/wls/docs81/webserv/assemble.html#1076491
    [2]
    http://e-docs.bea.com/wls/docs81/cluster/setup.html#714310
    Shuh Chang wrote:
    >
    I installed the WebLogic Workshop 8.1.2 (Build: 2003.1211.044125). I built all
    six projects
    and everything seems to work well.
    I could access to the sample web services on the WebLogic server from the local
    server
    as well as from a remote client machine by pointing the browser to the following
    two URLs respectively:
    http://localhost:7001/WebServices/index.jsp (browser from local server)
    http://192.168.1.100:7001/WebServices/index.jsp (browser from remote client machine)
    When the "Simple web service sample" page shows up, I could click from the local
    server, and
    go to the HellowWorld.jws link. However, from the remote machine, I got the "Page
    not found"
    error when clicking on the HelloWorld.jws link.
    I checked the index.jsp file in the
    C:\bea\weblogic81\samples\workshop\SamplesApp\WebServices directory on the WebLogic
    server, and found that all the href reference has the //localhost:7001 prefix
    in the link,
    which caused the remote browser to fail.
    I then tried to global replacement and remove all the //localhost:7001 references
    in the
    index.jsp file so that the line changed from something like this:
    href="http://localhost:7001/WebServices/HelloWorld.jws?.EXPLORE=.TEST">HelloWorld.jws</a>
    to something like this:
    href="http:/WebServices/HelloWorld.jws?.EXPLORE=.TEST">HelloWorld.jws</a>
    and then save the index.jsp file in the same directory.
    Now, I fresh both of my browsers and I can correctly access to the HelloWorld.jws,
    and
    all other sample links, from the local server as well as from the remote client
    machine.
    Why is //localhost:7001 needed in the index.jsp file? It seems that without it
    the
    samples work better.

  • JSP Failed to Compile in BEA WebLogic!

    Hi All,
              I am getting the following error message while executing the JSP pages in WebLogic Server 8.1 SP5.
              Explicit cast needed to convert java.lang.Throwable to java.lang.Exception.
              The JSP page was working fine in JRun application Server. But it is throwing this error message in BEA WebLogic Server 8.1 SP5.
              Can someone from BEA team help to resolve this issue. Looks like it is a bug in BEA WebLogic Server?
              Thanks in Advance,
              Raghuram

    You'd have to provide more detail to have a chance of getting a reasonable response to this. Can you show an excerpt of the JSP page that is getting the error? If you really do have a scriptlet that assigns a Throwable to an Exception object, then the compile error is understandable.

  • How to setup and run JSP project in BEA Weblogic

    i am trying to run my JSP project located in c:\project. i am actually running it in Tomcat webserver, this time i wanna test it in bea weblogic server, i have downloaded a version 8.1, before purchasing the software for development use, i wanna know and test first BEA's integrity and use... my question is how can i set up the base document path that i have in tomcat in bea, so i can just point it to such directory and run it directly using port 7001 for bea weblogic server..
    can anybody help me get tru it step-by-step??
    help please...

    Jason Combras napisa?(a):
    how can i set up the base document path that i have in tomcat in bea, so i can just point it to such directory and run it directly using port 7001 for bea weblogic server..
    can anybody help me get tru it step-by-step??
    help please...Jason,
    Simplest way "in my opinion":
    1. start weblogic Server. You can use Server with examples. This domain
    is already configured, so You will not need any domain configuration tasks.
    2. open weblogic administration console using browser
    http://localhost:7001/console/. Log in.
    3. On the left side choose Deployments -> Web Application Modules
    4. Click "Deploy a new Web Application Module"
    5. Find folder with Your application. Mark it and click Target Module.
    6. Define Application name and click Deploy
    7. If deployed successfully, Your application should be accessible at
    http://localhost:7001/YourApplicationContextRoot
    Best Regards,
    KArol Muszynski

  • Why can see the jsp code in browser?

    Q1:
    I just setup completely the oracle application server downloading from OTN website.
    I have created a new OC4J instance 'appweb' in enterprise manager wizard form.
    I can look at the jsp code on the browse when I request the demo application instance.
    I try to deploy a WAR into the 'appweb' container that is been builded by the JBuilder 7 IDE,
    then I can't request all jsp page ,as the browser is normal getting the error 404 message ,but
    the jsp page is sure of.
    Q2:
    I want to change the http server Port ,but the application server can't been taken any request
    servies if change the Port number '7777' in the http.conf file. why for this ??? Be sure , I
    didn't change other configuration parameter.
    Please help me!
    thinks.

    Allaire JRun '%00' or '%2570' could allow an attacker to view the source code of JSP files
    Description:
    Allaire JRun is a program development suite used to create Web applications with Java Server Pages (JSP files) and Java Servlets. JRun versions 3.0 and 3.1 could allow a remote attacker to view the source code of known JSP files on the Web server. A remote attacker could send to the JRun Web Server (JWS) a URL request appended with '%00' or '%2570' for a known JSP file to cause the source code of the file to be returned.
    Platforms Affected:
    JRun 3.0
    JRun 3.1
    Remedy:
    Apply the appropriate patch for your system, as listed in Macromedia Product Security Bulletin MPSB01-15. See References.
    Consequences:
    Obtain Information
    References:
    Macromedia Product Security Bulletin MPSB01-15, "Patch Available for Revealing Source Code when Accessing a JSP as myjsp%00 or myjs%2570 via the JWS or IIS." at
    http://www.macromedia.com/v1/handlers/index.cfm?ID=22288&Method=Full
    or go to, http://www.iss.net/security_center/static/7676.php
    Sudha

  • JSP on BEA  Weblogic: random error when loading a jsp page that uses a Bean

    Hi!
    I wrote a simple jsp page that stores a String in a JavaBean, and then forwards to another jsp page to display that String. The jsp pages are deployed on a BEA Weblogic 6 Server, but I get a weird behaviour when loading the page into my browser. Usually I get an error message:
    /Response.jsp(9): class 'query.jsp.QueryBean' could not be loaded
    probably occurred due to an error in /Query.jsp line 9:
    <jsp:useBean id = "queryBean" scope = "request" class = "query.jsp.QueryBean" />
    But the funny thing is that after reloading the page a few times it eventually works. The bahaviour seems to be totally random - sometimes it works, sometimes it claims not finding the JavaBean class.
    Anyone experienced something similar?
    Thank you very much,
    Charlie

    Is QueryBean.class located under '<appname>/Web_inf/query/jsp/'?
    If it is please try changing the package name to something else like com.myclass or something like that.

  • I can not see my JPGs when i run my JSP

    Hello,
    I have a JSP which is called by servlet by RequestDispatcher. However
    when this JSP is run in browser I can not see the jpgs i put inside
    as banner or logo. (By the way, i can see them in JSP viewer, I mean inside tool) Those are all static images. Is there a procedure I should do in servlet or JSP to make them appear?
    Thank you very much..

    the only reason you don't see them is because the browser can't find them (in that case they'll appear as red crosses). Remember that the ultimate output is HTML and that should be correct.

  • Where can i see the java file of a container converted JSP file

    I am using weblogic11g.
    Where can i see the java file of a container converted JSP file .

    Hello.
    If you look for .class files, you will find them under $domain/servers/serverName/tmp/application/etc.
    If you look after .java translated files, nowhere if you don't have "keepgenerated" param set to true in the appc/jspc command line (may be set in a web descriptor but can't find a reference). The foo.java will be find in .\WEB-INF\classes\jspservlet.
    Edit: http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webapp/weblogic_xml.html
    Regards.
    Aurélien.
    Edited by: Aurelien DEHAY on 24 août 2009 17:12

  • Jsp-file="/WEB-INF/index.jsp" cannot load

              Hi,
              I am defining a servlet in the web.xml file using the following syntax.
              <servlet>
              <servlet-name>TestServlet</servlet-name>
              <jsp-file>/WEB-INF/index.jsp</jsp-file>
              </servlet>
              Then when I tried to access this servlet, I get a 404 not found error. The weblogic.log
              file complains with the following message:
              java.io.FileNotFoundException: no resource '/WEB-INF/index.jsp' in servlet context
              root '/home/dev/web/apps/MyApp'
              at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:293)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:922)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:886)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
              My jsp file in located in /home/dev/web/apps/MyApp/WEB-INF/index.jsp, I know weblogic
              doesn't support jsp under WEB-INF, however, according to Sun's Servlet specification,
              anything under web-inf should be accessible to getResource and getResourceAsStream
              method, and it looks like that's what weblogic implementation is using (from the
              error message). So I am not sure whether this is weblogic issue or I am doing
              something wrong. By the way, the above config in web.xml is supported in Tomcat.
              

              What version of WebLogic will incorporate Servlet spec 2.4 and allow jsp under
              web-inf?
              Chris
              "Narayan Anand" <[email protected]> wrote:
              >Regarding S-12864 - It will not work as stated in the solution in any
              >of
              >the available releases of WLS.
              >Please ignore that. I already informed the concerned person to correct
              >the
              >solution.
              >
              >The story behind this is:
              >Our engineering team is already aware of the fact that the request
              >dispatcher calls (include/forward) for a jsp under the web-inf directory
              >works in other app server - Tomcat.
              >Our engineering team had a discussion with the servlet/jsp spec experts
              >group for clarifying the spec and the tomcat implementation.
              >So the servlet expert group has decided to explicitly state in the spec
              >that
              >RD.forward() and RD.include() should be allowed access to resources in
              >/WEB-INF and it will be included in servlet spec 2.4. For now, WLS works
              >as
              >per the current specification.
              >
              >So far the story is - WLS will implement this in our next major release
              >which will be compliance with servlet spec 2.4.
              >In all the currently available WLS releases, accessed to a jsp under
              >the
              >WEB-INF directory is prohibited.
              >
              >--
              >Best Regards,
              >Narayan Anand
              >Developer Relations Engineer
              >BEA Systems, Inc.
              >
              >
              >
              >
              >
              >
              >"Ming Fan" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Thanks for the explanation. So this means weblogic treats such mapped
              >servlet request
              >> as a direct request to the jsp under WEB-INF, instead of forwarding
              >it to
              >some
              >> JspCompiler servlet and let that compiler servlet use some resource
              >loader
              >to
              >> load the jsp and then compile. I believe that latter implementation
              >approach also
              >> conforms the Servlet spec (it's a different way of treating the request,
              >I
              >guess).
              >>
              >> Now here's another question. According to Web logic Customer Support
              >Solution
              >> ID S-12864 (WLS 6.x - Cannot access JSP under the WEB-INF directory),
              >the
              >servlet
              >> should be able to get a request dispatcher, and then forward the request
              >to the
              >> jsp under WEB-INF. I am still using WLS 5.1, so does the above solution
              >apply
              >> to 5.1 also? It doesn't seem to work with 5.1. So is this a 5.1 problem
              >and I
              >> should upgrade to 6.1?
              >>
              >> Thanks.
              >>
              >> "Narayan Anand" <[email protected]> wrote:
              >> >Hi Ming,
              >> >
              >> >It is legal to put files under WEB-INF directory. But as mentioned
              >in
              >> >the
              >> >spec, it will be available only to servlet code and not directly to
              >client
              >> >request.
              >> >Read the last statement of the same paragraph in section9.5.
              >> >"Since requests are matched to resource mappings case-sensitively,
              >client
              >> >requests for '/WEB-INF/foo', '/WEb-iNf/foo', for example, should not
              >> >result
              >> >in contents of the web application located under /WEB-INF being returned,
              >> >nor any form of directory listing thereof.".
              >> >
              >> >So in your case, when you access the servlet which gets mapped to
              >> >/WEB-INF/your-jspfile, under no condition it should result in display
              >> >of jsp
              >> >contents.
              >> >It is working as per the specification.
              >> >
              >> >I hope this helps.
              >> >
              >> >Regards,
              >> >Narayan Anand
              >> >Developer Relations Engineer
              >> >BEA WebLogic Support
              >> >
              >> >
              >> >
              >> >"Ming Fan" <[email protected]> wrote in message
              >> >news:[email protected]...
              >> >>
              >> >> Actaully there are other ways to solve my problem. But what I am
              >> >interested to
              >> >> know is under the Servlet specification 2.3, is it legal to put
              >jsp
              >> >under
              >> >WEB-INF,
              >> >> define it in <jsp-file> xml tag, and should the JSP compiler be
              >able
              >> >to
              >> >see this
              >> >> as a resource. Apparently, Tomcat allows this behavior, so does
              >this
              >> >mean
              >> >Tomcat
              >> >> conforms better to the Servlet spec, or Tomcat is wrong but Weblogic
              >> >conforms
              >> >> better? Can anyone let me know what's the correct interpretation
              >of
              >> >section 9.5
              >> >> in servlet spec 2.3?
              >> >>
              >> >>
              >> >> "Jerrie Pineda" <[email protected]> wrote:
              >> >> >Try moving it to a different dir. You normally don't place jsp
              >file
              >> >> >in the
              >> >> >WEB-INF dir.
              >> >> >
              >> >> >
              >> >> >"Ming Fan" <[email protected]> wrote in message
              >> >> >news:[email protected]...
              >> >> >>
              >> >> >> Hi,
              >> >> >>
              >> >> >> I am defining a servlet in the web.xml file using the following
              >> >syntax.
              >> >> >> <servlet>
              >> >> >> <servlet-name>TestServlet</servlet-name>
              >> >> >> <jsp-file>/WEB-INF/index.jsp</jsp-file>
              >> >> >> </servlet>
              >> >> >>
              >> >> >> Then when I tried to access this servlet, I get a 404 not found
              >> >error.
              >> >> >The
              >> >> >weblogic.log
              >> >> >> file complains with the following message:
              >> >> >> java.io.FileNotFoundException: no resource '/WEB-INF/index.jsp'
              >> >in
              >> >> >servlet
              >> >> >context
              >> >> >> root '/home/dev/web/apps/MyApp'
              >> >> >> at
              >weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:293)
              >> >> >> at
              >> >weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
              >> >> >> at
              >> >>
              >>
              >>>weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:
              >2
              >> >0
              >> >> >0)
              >> >> >> at
              >> >>
              >>
              >>>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.ja
              >v
              >> >a
              >> >> >:115)
              >> >> >> at
              >> >>
              >>
              >>>weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextI
              >m
              >> >p
              >> >> >l.java:922)
              >> >> >> at
              >> >>
              >>
              >>>weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextI
              >m
              >> >p
              >> >> >l.java:886)
              >> >> >> at
              >> >>
              >>
              >>>weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletConte
              >x
              >> >t
              >> >> >Manager.java:269)
              >> >> >> at
              >> >>
              >>
              >>>weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380
              >)
              >> >> >> at
              >> >> >weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
              >> >> >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
              >> >> >>
              >> >> >> My jsp file in located in
              >/home/dev/web/apps/MyApp/WEB-INF/index.jsp,
              >> >> >I
              >> >> >know weblogic
              >> >> >> doesn't support jsp under WEB-INF, however, according to Sun's
              >Servlet
              >> >> >specification,
              >> >> >> anything under web-inf should be accessible to getResource and
              >> >> >getResourceAsStream
              >> >> >> method, and it looks like that's what weblogic implementation
              >is
              >> >using
              >> >> >(from the
              >> >> >> error message). So I am not sure whether this is weblogic issue
              >> >or
              >> >> >I am
              >> >> >doing
              >> >> >> something wrong. By the way, the above config in web.xml is
              >supported
              >> >> >in
              >> >> >Tomcat.
              >> >> >
              >> >> >
              >> >>
              >> >
              >> >
              >>
              >
              >
              

  • Problem in calling a web service hosted on tomcat from BEA WebLogic portal

    Hi,
    I have a wsdl file for my web service which is hosted on apache tomcat 5.5(running on port : 8080). The contents of the wsdl file are-
    *<?xml version="1.0" encoding="UTF-8"?>*
    *<wsdl:definitions targetNamespace="http://soa.tutorials.serg.edu" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://soa.tutorials.serg.edu" xmlns:intf="http://soa.tutorials.serg.edu" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">*
    *<!--WSDL created by Apache Axis version: 1.4*
    Built on Apr 22, 2006 (06:55:48 PDT)-->
    *<wsdl:types>*
    *<schema elementFormDefault="qualified" targetNamespace="http://soa.tutorials.serg.edu" xmlns="http://www.w3.org/2001/XMLSchema">*
    *<element name="getNums">*
    *<complexType>*
    *<sequence>*
    *<element name="n" type="xsd:int"/>*
    *<element name="m" type="xsd:int"/>*
    *</sequence>*
    *</complexType>*
    *</element>*
    *<element name="getNumsResponse">*
    *<complexType>*
    *<sequence>*
    *<element maxOccurs="unbounded" name="getNumsReturn" type="xsd:int"/>*
    *</sequence>*
    *</complexType>*
    *</element>*
    *<element name="getNums2">*
    *<complexType>*
    *<sequence>*
    *<element name="n" type="xsd:int"/>*
    *<element name="m" type="xsd:int"/>*
    *</sequence>*
    *</complexType>*
    *</element>*
    *<element name="getNums2Response">*
    *<complexType>*
    *<sequence>*
    *<element maxOccurs="unbounded" name="getNums2Return" type="xsd:int"/>*
    *</sequence>*
    *</complexType>*
    *</element>*
    *</schema>*
    *</wsdl:types>*
    *<wsdl:message name="getNums2Request">*
    *<wsdl:part element="impl:getNums2" name="parameters"/>*
    *</wsdl:message>*
    *<wsdl:message name="getNumsRequest">*
    *<wsdl:part element="impl:getNums" name="parameters"/>*
    *</wsdl:message>*
    *<wsdl:message name="getNums2Response">*
    *<wsdl:part element="impl:getNums2Response" name="parameters"/>*
    *</wsdl:message>*
    *<wsdl:message name="getNumsResponse">*
    *<wsdl:part element="impl:getNumsResponse" name="parameters"/>*
    *</wsdl:message>*
    *<wsdl:portType name="Echo">*
    *<wsdl:operation name="getNums">*
    *<wsdl:input message="impl:getNumsRequest" name="getNumsRequest"/>*
    *<wsdl:output message="impl:getNumsResponse" name="getNumsResponse"/>*
    *</wsdl:operation>*
    *<wsdl:operation name="getNums2">*
    *<wsdl:input message="impl:getNums2Request" name="getNums2Request"/>*
    *<wsdl:output message="impl:getNums2Response" name="getNums2Response"/>*
    *</wsdl:operation>*
    *</wsdl:portType>*
    *<wsdl:binding name="EchoSoapBinding" type="impl:Echo">*
    *<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>*
    *<wsdl:operation name="getNums">*
    *<wsdlsoap:operation soapAction=""/>*
    *<wsdl:input name="getNumsRequest">*
    *<wsdlsoap:body use="literal"/>*
    *</wsdl:input>*
    *<wsdl:output name="getNumsResponse">*
    *<wsdlsoap:body use="literal"/>*
    *</wsdl:output>*
    *</wsdl:operation>*
    *<wsdl:operation name="getNums2">*
    *<wsdlsoap:operation soapAction=""/>*
    *<wsdl:input name="getNums2Request">*
    *<wsdlsoap:body use="literal"/>*
    *</wsdl:input>*
    *<wsdl:output name="getNums2Response">*
    *<wsdlsoap:body use="literal"/>*
    *</wsdl:output>*
    *</wsdl:operation>*
    *</wsdl:binding>*
    *<wsdl:service name="EchoService">*
    *<wsdl:port binding="impl:EchoSoapBinding" name="Echo">*
    *<wsdlsoap:address location="http://localhost:8080/SOATest/services/Echo"/>*
    *</wsdl:port>*
    *</wsdl:service>*
    *</wsdl:definitions>*
    I created a client from the above wsdl file using ClientGen wizard in WebLogic. This client contains the follwoing classes-
    Echo.java
    EchoService.java
    EchoService_Impl.java
    Echo_Stub.java
    I created a JSP portlet and the jsp content of it is-
    String url = "http://localhost:8080/SOATest/services/Echo";
    Echo echo = new EchoService_Impl(url).getEcho();
    getNumsResponse = echo.getNums(getNums);
    I tried to call that web service from BEA weblogic portal through a JSP potlet. I got an error saying -
    *<An exception [javax.xml.rpc.ServiceException: Failed to parse WSDL http://localhost:8080/SOATest/services/Echo weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element] was thrown while rendering the content at [TestEcho.jsp].*
    *javax.servlet.ServletException: javax.xml.rpc.ServiceException: Failed to parse WSDL http://localhost:8080/SOATest/services/Echo weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContextImpl.java:420)*
    *     at jsp_servlet.__testecho._jspService(__testecho.java:112)*
    *     at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)*
    *     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)*
    *     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)*
    *     Truncated. see log file for complete stacktrace*
    *javax.xml.rpc.ServiceException: Failed to parse WSDL http://localhost:8080/SOATest/services/Echo weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.wsee.jaxrpc.ServiceImpl.throwServiceException(ServiceImpl.java:174)*
    *     at weblogic.wsee.jaxrpc.ServiceImpl.loadWsdlDefinition(ServiceImpl.java:485)*
    *     at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:119)*
    *     at edu.serg.tutorials.soa.EchoService_Impl.<init>(Unknown Source)*
    *     at edu.serg.tutorials.soa.EchoService_Impl.<init>(Unknown Source)*
    *     Truncated. see log file for complete stacktrace*
    *weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:313)*
    *     at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:405)*
    *     at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:391)*
    *     at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:79)*
    *     at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:66)*
    *     Truncated. see log file for complete stacktrace*
    *java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:38)*
    *     at weblogic.wsee.util.dom.DOMParser.getWebLogicDocumentImpl(DOMParser.java:122)*
    *     at weblogic.wsee.util.dom.DOMParser.getDocument(DOMParser.java:65)*
    *     at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:311)*
    *     at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:405)*
    *     Truncated. see log file for complete stacktrace*
    *javax.xml.stream.XMLStreamException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:206)*
    *     at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:112)*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:73)*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:35)*
    *     Truncated. see log file for complete stacktrace*
    *Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.xml.babel.baseparser.BaseParser.parseProlog(BaseParser.java:417)*
    *     at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:328)*
    *     at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:195)*
    *     at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:112)*
    *     Truncated. see log file for complete stacktrace*
    My web service is using soap binding. I have tested it with eclipse and other tools also. It is working well and good. But when I tried to call a web service which is created and hosted on WebLogic server(running on port : 7001), I got the correct output.
    Can anyone help me out in calling a web service hosted on different server from WebLogic server.
    Thanks in advance,
    Tiijnar
    Edited by: user8715057 on Aug 13, 2009 1:11 AM

    Hi
    1. The way you are invoking the WebService deployed on Tomcat server is looks suspicious. It may be valid by adding extra ?wsdl etc into the url, but still I have not seen this way to invoke the webservice.
    2. So you used Weblogic ant task to generate client JARs by giving this WSDL. So looks like it generated the 4 classes (.java) and in addition any other classes for Request/Response xml objects.
    3. Look at the source code of EchoService.java. It should have one default empty constructor. Internally it uses the default wsdl defined in this class. You will see another constructor that takes WSDL URL as one of the parameters (QName) etc. Echo.java is the class corresponding to the Port. In the same EchoService you should see an instance method like getEcho() something like that. This Echo.java class will have methods for all the Operations defined on this Port. So the standard code snippet we use most of the times will be like this:
    EchoService myEchoService = new EchoService(); // Default it uses WSDL deployed on Tomcat at localhost:8080
    Echo myEchoPort = myEchoService.getEchoPort(); // Something along these lines.
    myEchoPort.xxxYYY(); // NOW this is the operation name that takes the input parameters and returns outputs defined as per the WSDL defintions. If the Input and Outputs are complex xml types, it will have corresponing .JAVA files with setters and getters.
    Now if this WebService is deployed on same Tomcat but on different machine or different port, you just give the full WSDL URL with that host and port in the constructor for new EchoService(...). You may need to instantiate QName object. But look at the methods generated in EchoService.java class.
    The way you are using with Impl and Stubs class may also work. I am not much famiiar with this APIs apporach. Still look at the methods generated in these classes.
    Also if you latest Sun JDK 1.6, it also has one command like wsimport. Infact if you install WLS 10.3 with Sun JDK, it should have C:\beawlp103\jdk160_05\bin\wsimport command. This will also generate client jar given a WSDL URL.
    Thanks
    Ravi Jegga

  • Weblogic can't  run on windows2000

    i am new to weblogic,i downloaded an evaluation version of weblogic6.1 for
    windows,i install it keeping up with the installatoin wizard,after
    that,select start->program->weblogic6.1->start default server,the dos
    windows appear,i can see the process in the window,but after about 5
    seconds,the window close,and the server can't be started,the same thing
    happen to starting the example server,why?
    i run windows 2000server,when i open another dos window,go to the exact
    directory,type "startweblogic",output as follow:
    ============================================================================
    ==========
    Microsoft Windows 2000 [Version 5.00.2195]
    (C) Copyright 1985-2000 Microsoft Corp.
    F:\Documents and Settings\Administrator>e:
    E:\>cd E:\wlserver6.1\config\mydomain\
    E:\wlserver6.1\config\mydomain>startWebLogic.cmd
    E:\wlserver6.1>set PATH=.\bin
    E:\wlserver6.1>set
    CLASSPATH=.;F:\jdk1.3.0_01\lib\tools.jar;E:\wlserver6.1\lib\weblogic.jar
    E:\wlserver6.1>echo off
    * To start WebLogic Server, use the password *
    * assigned to the system user. The system *
    * username and password must also be used to *
    * access the WebLogic Server console from a web *
    * browser. *
    E:\wlserver6.1>"F:\jdk1.3.0_01\bin\java" -hotspot -ms64m -mx64m -classpath
    ".;F:\jdk1.3.0_01\lib\tools.jar;E:\wlserver6.1\lib\weblogic.jar"
    -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver
    "-Dbea.home=e:\" -Dweblogic.management.password= -Dweblogic.ProductionModeEn
    abled=true "
    -Djava.security.policy==e:\wlserver6.1/lib/weblogic.policy" weblogic.Server
    Usage: java [-options] class [args...]
    (to execute a class)
    or java -jar [-options] jarfile [args...]
    (to execute a jar file)
    where options include:
    -cp -classpath <directories and zip/jar files separated by ;>
    set search path for application classes and resources
    -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
    E:\wlserver6.1>goto finish
    E:\wlserver6.1>cd config\mydomain
    E:\wlserver6.1\config\mydomain>ENDLOCAL
    E:\wlserver6.1\config\mydomain>
    ============================================================================
    ==========
    the weblogic server can't be started,because i can't access
    "127.0.0.1:7001/........",
    the "startweblogic.cmd" is as follow:
    ============================================================================
    ==========
    @echo off
    @rem This script can be used to start WebLogic Server. This script ensures
    that
    @rem the server is started using the config.xml file found in this directory
    and
    @rem that the CLASSPATH is set correctly. This script contains the following
    variables:
    @rem
    @rem JAVA_HOME - Determines the version of Java used to start
    @rem WebLogic Server. This variable must point to the
    @rem root directory of a JDK installation and will be set
    @rem for you by the WebLogic Server installer. Note that
    @rem this script uses the hotspot VM to run WebLogic Server.
    @rem If you choose to use a JDK other than the one
    @rem included in the disribution, make sure that the JDK
    @rem includes the hotspot VM. See the WebLogic platform support
    @rem page (http://e-docs.bea.com/wls/platforms/index.html)
    @rem for an up-to-date list of supported JVMs on Windows NT.
    @rem
    @rem When setting these variables below, please use short file names (8.3).
    @rem To display short (MS-DOS) filenames, use "dir /x". File names with
    @rem spaces will break this script.
    @rem
    @rem jDriver for Oracle users: This script assumes that native libraries
    @rem required for jDriver for Oracle have been installed in the proper
    @rem location and that your system PATH variable has been set appropriately.
    @rem For additional information, refer to Installing and Setting up WebLogic
    @rem Server (http://e-docs.bea.com/wls/docs61/install/index.html).
    SETLOCAL
    cd ..\..
    @rem Set user-defined variables.
    set JAVA_HOME=F:\jdk1.3.0_01
    @rem Check that script is being run from the appropriate directory
    if not exist lib\weblogic.jar goto wrongplace
    goto checkJDK
    :wrongplace
    echo startWebLogic.cmd must be run from the config\mydomain directory. 1>&2
    goto finish
    :checkJDK
    if exist "%JAVA_HOME%/bin/javac.exe" goto runWebLogic
    echo.
    echo Javac wasn't found in directory %JAVA_HOME%/bin.
    echo Please edit the startWebLogic.cmd script so that the JAVA_HOME
    echo variable points to the root directory of your JDK installation.
    goto finish
    :runWebLogic
    echo on
    set PATH=.\bin
    set CLASSPATH=.;F:\jdk1.3.0_01\lib\tools.jar;E:\wlserver6.1\lib\weblogic.jar
    echo off
    echo.
    echo ***************************************************
    echo * To start WebLogic Server, use the password *
    echo * assigned to the system user. The system *
    echo * username and password must also be used to *
    echo * access the WebLogic Server console from a web *
    echo * browser. *
    echo ***************************************************
    @rem Set WLS_PW equal to your system password for no password prompt server
    startup.
    set WLS_PW=
    @rem Set Production Mode. When set to true, the server starts up in
    @rem production mode. When set to false, the server starts up in development
    @rem mode. If not set, it is defaulted to false.
    set STARTMODE=true
    echo on
    "%JAVA_HOME%\bin\java" -hotspot -ms64m -mx64m -classpath
    "%CLASSPATH%" -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver
    "-Dbea.home=e:\" -Dweblogic.management.password=%WLS_PW% -Dweblogic.Producti
    onModeEnabled=%STARTMODE%
    "-Djava.security.policy==e:\wlserver6.1/lib/weblogic.policy" weblogic.Server
    goto finish
    :finish
    cd config\mydomain
    ENDLOCAL
    ============================================================================
    =====
    who can help me
    thanks

    Hi.
    The only difference I can see between your startup command and mine is that you
    have modified the script to use an unsupported JDK. Try using the JDK that
    comes with the installation - JDK 1.3.1. You shouldn't have to add any JDK jar
    files. My classpath is set as follows:
    ".;.\lib\weblogic_sp.jar;.\lib\weblogic.jar". For more information on supported
    platforms see the following:
    http://edocs.bea.com/wls/platforms/index.html#win2000
    Other than that my only guess is that you have some hidden characters in your
    script, but try changing JDKs first.
    Regards,
    Michael
    zb cong wrote:
    i am new to weblogic,i downloaded an evaluation version of weblogic6.1 for
    windows,i install it keeping up with the installatoin wizard,after
    that,select start->program->weblogic6.1->start default server,the dos
    windows appear,i can see the process in the window,but after about 5
    seconds,the window close,and the server can't be started,the same thing
    happen to starting the example server,why?
    i run windows 2000server,when i open another dos window,go to the exact
    directory,type "startweblogic",output as follow:
    ============================================================================
    ==========
    Microsoft Windows 2000 [Version 5.00.2195]
    (C) Copyright 1985-2000 Microsoft Corp.
    F:\Documents and Settings\Administrator>e:
    E:\>cd E:\wlserver6.1\config\mydomain\
    E:\wlserver6.1\config\mydomain>startWebLogic.cmd
    E:\wlserver6.1>set PATH=.\bin
    E:\wlserver6.1>set
    CLASSPATH=.;F:\jdk1.3.0_01\lib\tools.jar;E:\wlserver6.1\lib\weblogic.jar
    E:\wlserver6.1>echo off
    * To start WebLogic Server, use the password *
    * assigned to the system user. The system *
    * username and password must also be used to *
    * access the WebLogic Server console from a web *
    * browser. *
    E:\wlserver6.1>"F:\jdk1.3.0_01\bin\java" -hotspot -ms64m -mx64m -classpath
    ".;F:\jdk1.3.0_01\lib\tools.jar;E:\wlserver6.1\lib\weblogic.jar"
    -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver
    "-Dbea.home=e:\" -Dweblogic.management.password= -Dweblogic.ProductionModeEn
    abled=true "
    -Djava.security.policy==e:\wlserver6.1/lib/weblogic.policy" weblogic.Server
    Usage: java [-options] class [args...]
    (to execute a class)
    or java -jar [-options] jarfile [args...]
    (to execute a jar file)
    where options include:
    -cp -classpath <directories and zip/jar files separated by ;>
    set search path for application classes and resources
    -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
    E:\wlserver6.1>goto finish
    E:\wlserver6.1>cd config\mydomain
    E:\wlserver6.1\config\mydomain>ENDLOCAL
    E:\wlserver6.1\config\mydomain>
    ============================================================================
    ==========
    the weblogic server can't be started,because i can't access
    "127.0.0.1:7001/........",
    the "startweblogic.cmd" is as follow:
    ============================================================================
    ==========
    @echo off
    @rem This script can be used to start WebLogic Server. This script ensures
    that
    @rem the server is started using the config.xml file found in this directory
    and
    @rem that the CLASSPATH is set correctly. This script contains the following
    variables:
    @rem
    @rem JAVA_HOME - Determines the version of Java used to start
    @rem WebLogic Server. This variable must point to the
    @rem root directory of a JDK installation and will be set
    @rem for you by the WebLogic Server installer. Note that
    @rem this script uses the hotspot VM to run WebLogic Server.
    @rem If you choose to use a JDK other than the one
    @rem included in the disribution, make sure that the JDK
    @rem includes the hotspot VM. See the WebLogic platform support
    @rem page (http://e-docs.bea.com/wls/platforms/index.html)
    @rem for an up-to-date list of supported JVMs on Windows NT.
    @rem
    @rem When setting these variables below, please use short file names (8.3).
    @rem To display short (MS-DOS) filenames, use "dir /x". File names with
    @rem spaces will break this script.
    @rem
    @rem jDriver for Oracle users: This script assumes that native libraries
    @rem required for jDriver for Oracle have been installed in the proper
    @rem location and that your system PATH variable has been set appropriately.
    @rem For additional information, refer to Installing and Setting up WebLogic
    @rem Server (http://e-docs.bea.com/wls/docs61/install/index.html).
    SETLOCAL
    cd ..\..
    @rem Set user-defined variables.
    set JAVA_HOME=F:\jdk1.3.0_01
    @rem Check that script is being run from the appropriate directory
    if not exist lib\weblogic.jar goto wrongplace
    goto checkJDK
    :wrongplace
    echo startWebLogic.cmd must be run from the config\mydomain directory. 1>&2
    goto finish
    :checkJDK
    if exist "%JAVA_HOME%/bin/javac.exe" goto runWebLogic
    echo.
    echo Javac wasn't found in directory %JAVA_HOME%/bin.
    echo Please edit the startWebLogic.cmd script so that the JAVA_HOME
    echo variable points to the root directory of your JDK installation.
    goto finish
    :runWebLogic
    echo on
    set PATH=.\bin
    set CLASSPATH=.;F:\jdk1.3.0_01\lib\tools.jar;E:\wlserver6.1\lib\weblogic.jar
    echo off
    echo.
    echo ***************************************************
    echo * To start WebLogic Server, use the password *
    echo * assigned to the system user. The system *
    echo * username and password must also be used to *
    echo * access the WebLogic Server console from a web *
    echo * browser. *
    echo ***************************************************
    @rem Set WLS_PW equal to your system password for no password prompt server
    startup.
    set WLS_PW=
    @rem Set Production Mode. When set to true, the server starts up in
    @rem production mode. When set to false, the server starts up in development
    @rem mode. If not set, it is defaulted to false.
    set STARTMODE=true
    echo on
    "%JAVA_HOME%\bin\java" -hotspot -ms64m -mx64m -classpath
    "%CLASSPATH%" -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver
    "-Dbea.home=e:\" -Dweblogic.management.password=%WLS_PW% -Dweblogic.Producti
    onModeEnabled=%STARTMODE%
    "-Djava.security.policy==e:\wlserver6.1/lib/weblogic.policy" weblogic.Server
    goto finish
    :finish
    cd config\mydomain
    ENDLOCAL
    ============================================================================
    =====
    who can help me
    thanks--
    Michael Young
    Developer Relations Engineer
    BEA Support

Maybe you are looking for

  • Mid 2010 macbook pro recall?

    details: Macbook Pro Mid 2010 15 inch Serial Number: W8****AGW Keeps crashing and showing black screen and restarts unexpectedly whilst doing any thing with  MS office and other apps How I can find whether my macbook pro is under Callback option Is t

  • Parse xml string not file

    Hi Can anyone help me I am trying to parse a xml file that is in a StringBuffer and not a file. Any suggestions would be great. Thanks ;>

  • Photoshop cs5, Opening Tiff into Raw. Some open and others don't.

    I have installed cs5 onto my Windows Envy laptop. I want to open my tiff into raw. I can do that with some of the tiff files and others I cannot, the option is greyed out. Then the pic. next to it works and the one after does not, so forth and so on.

  • DeployJava.js ,Applet Deployment errors?

    Some great work has been done on applet deployment. ref: [Applet deployment toolkit |http://blogs.sun.com/thejavatutorials/entry/deployment_toolkit_101 ] I've been trying to use this tool with considerable frustration. I'm serving internet applicatio

  • Conc program

    Hi, I know that the concurrent request can be a sql ldr program,pl sql,unix script or it may contain any other code. can any one say me what is the exact way to get the details about a conccurrent program. when i naviagate through conc program--->def