How to start weblogic in debug mode from BEA WebLogic Eclipse plugin

I have a problem making weblogic work with eclipse3.1. I am using a BEA WebLogic plugin to handle weblogic (start/stop) from eclipse. However I want to debug my application and I am unable to figure out a way to start my weblogic in debug mode like we do in WSAD. I tried using some other plugins also but no luck. Please suggest me a plugin to handle this or any other way of debugging my application from eclipse. I am using weblogic 8.1.

Hi,
Dev Environment
weblogic eclipse plugin 2.0 beta
weblogic server 8.1
eclipse 3.1.1
Created a server that i would like to deploy my EJB so that i can put break points on my EJB in eclipse.
How do i do it?
I managed to deploy an ear (containing the ejb) directly to the weblogic installed folder and it deployed the ejb. But the breakpoint set in eclipse is not triggered. Of course in this case as weblogic server is running the .ear file deployed manually in the file system.
Any help is appreciated.
Mel

Similar Messages

  • How to start server in debug mode by default

    Hi,
    Whenever the server starts it does not start in debug mode.
    One has to manually start the "SDM" and "Server0" in the debug mode.
    Is there a way I can make the server start in debug mode for the first time itself.
    regards,
    Saurabh

    Hi Saurabh,
    You can start the server in debug mode using config tool. Just open cofig tool (/usr/sap/<SYS ID>/JC<SYS NR>/j2ee/configtool/configtool.bat).
    Click on the your instance. Then under the tab Servers Debug check Debuggable and also Enable Debug mode.
    Restart the engine now.
    However a word of caution: Starting the server in debug mode decreases the system performance. You should only start the dev server in debug mode.
    Hope this helps.
    Regards
    Sidharth

  • How to start firefox in safe mode from the command line

    This is for Window XP, firefox 19

    Hello jjfirefox77
    "C:\Program Files\Mozilla Firefox\firefox.exe" -safe-mode
    thank you

  • How to run and JSF page from Bea Weblogic 8.1

    Hi, I am new to JSF . Can anybody help me that how can i access a JSF page from Bea Weblogic 8.1. How can deploy. What libraries and files are needed and where to put these required .jar or library files. I just wrote a single page and now i am not able to run it . Any help would be highly appreciated.I am looking forward for your kind replies.Thank you.
    Regards,
    Waqar

    You need to package your application into the standard .war format. Make sure jsf-api.jar and jsf-impl.jar are placed in WEB-INF/lib, your faces-config.xml is in WEB-INF, and your tld files are defined appropriately. Once you have your .war file, deploy it to your servers applications directory or use the console for deployment.
    You should not have any problems if everything is packaged correctly. I am successfully using WebLogic Server 8.1 with my JSF-based web app.

  • How to start weblogic in debug mode ? and how to set the eclipse in the deb

    how to start weblogic in debug mode ? and how to set the eclipse in the debug

    Put this in JAVA_OPTIONS :
    Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=3999,suspend=y,server=y
    After restarted weblogic, in eclipse set your breakpoint , open debug perspective then choose Remote Java Appliction and configure Connection Properties (host=localhost and port=3999)

  • Error when starting Weblogic in debug mode

    Hi there
    Has anyone experienced any difficulties when starting weblogic in debug mode.
    More specifically, it cannot start correctly because it thinks that another instance
    is using the same port (definately not the case).
    Any clues/suggestions are greatly appreciated.
    Error log follows:
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <Unable to create
    a server socket for port: 8320. java.net.BindException: Address already in use
    Perhaps another process is using port 8320.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Notice> <WebLogicServer> <SSLListenThread
    listening on port 8321>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <The WebLogic
    Server is no longer listening for connections. You should probably restart it.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert> <WebLogicServer> <Server shutdown
    has been requested by system>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert> <WebLogicServer> <The shutdown sequence
    has been initiated.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Info> <WebLogicServer> <Server shutdown is
    commencing NOW and is irreversible.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Error> <Performance Pack> <Unable to load
    performance pack, using Java I/O.
    java.lang.ThreadDeath
    at java.lang.Thread.stop(Thread.java:581)
    at weblogic.t3.srvr.T3Srvr.die(T3Srvr.java:764)
    at weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:507)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:171)
    at weblogic.Server.main(Server.java:35)

    Thanks for the suggestion.
    Unfortunatley the port is definately free/available during startup.
    Stephane Kergozien <[email protected]> wrote:
    Maark,
    Before starting your server, please could you check that the port is
    not used by one
    other process. You can use the netstat command to do this.
    Regards
    Stephane
    Mark wrote:
    Hi there
    Has anyone experienced any difficulties when starting weblogic in debugmode.
    More specifically, it cannot start correctly because it thinks thatanother instance
    is using the same port (definately not the case).
    Any clues/suggestions are greatly appreciated.
    Error log follows:
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <Unableto create
    a server socket for port: 8320. java.net.BindException: Address alreadyin use
    Perhaps another process is using port 8320.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Notice> <WebLogicServer> <SSLListenThread
    listening on port 8321>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <TheWebLogic
    Server is no longer listening for connections. You should probablyrestart it.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert> <WebLogicServer> <Servershutdown
    has been requested by system>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert> <WebLogicServer> <The shutdownsequence
    has been initiated.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Info> <WebLogicServer> <Servershutdown is
    commencing NOW and is irreversible.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Error> <Performance Pack> <Unableto load
    performance pack, using Java I/O.
    java.lang.ThreadDeath
    at java.lang.Thread.stop(Thread.java:581)
    at weblogic.t3.srvr.T3Srvr.die(T3Srvr.java:764)
    at weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:507)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:171)
    at weblogic.Server.main(Server.java:35)--
    Regards,
    Stephane Kergozien
    BEA Support

  • Start weblogic in debug mode

    Hi,
    I want to start weblogic in debug mode.
    Do you know what modifications should be made in the default configurations?
    -John

    John wrote:
    Hi,
    I want to start weblogic in debug mode.
    Do you know what modifications should be made in the default configurations?
    -JohnWebLogic Server doesn't have a debug mode. Are you trying to see debug
    messages in the shell window where you started the server?
    ~Ryan

  • Help! Starting Weblogic in Debug Mode

    Hi there
    Any clues/suggestions are greatly appreciated.
    Has anyone experienced any difficulties when starting weblogic in debug mode.
    More specifically, it cannot start correctly because it thinks that another instance
    is using the same port (definately not the case).
    Error log follows:
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <Unable to create
    a server socket for port: 8320. java.net.BindException: Address already in use
    Perhaps another process is using port 8320.> <Mar 18, 2002 7:42:32 AM GMT+10:00>
    <Notice> <WebLogicServer> <SSLListenThread listening on port 8321> <Mar 18, 2002
    7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <The WebLogic Server is no
    longer listening for connections. You should probably restart it.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert> <WebLogicServer> <Server shutdown
    has been requested by system> <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert> <WebLogicServer>
    <The shutdown sequence has been initiated.> <Mar 18, 2002 7:42:32 AM GMT+10:00>
    <Info> <WebLogicServer> <Server shutdown is commencing NOW and is irreversible.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Error> <Performance Pack> <Unable to load
    performance pack, using Java I/O. java.lang.ThreadDeath at java.lang.Thread.stop(Thread.java:581)
    at weblogic.t3.srvr.T3Srvr.die(T3Srvr.java:764) at weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:507)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:171) at weblogic.Server.main(Server.java:35)

    The following error has nothing to do with running in debug mode?
    It just means that there's another process already binded to port 8320
    you might want to see the output of netstat -a
    BTW, what flags you switched on to run the server in debug mode?
    Kumar
    "Mark" <[email protected]> wrote in message
    news:3c951474$[email protected]..
    >
    Hi there
    Any clues/suggestions are greatly appreciated.
    Has anyone experienced any difficulties when starting weblogic in debugmode.
    More specifically, it cannot start correctly because it thinks thatanother instance
    is using the same port (definately not the case).
    Error log follows:
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <Unableto create
    a server socket for port: 8320. java.net.BindException: Address already inuse
    Perhaps another process is using port 8320.> <Mar 18, 2002 7:42:32 AMGMT+10:00>
    <Notice> <WebLogicServer> <SSLListenThread listening on port 8321> <Mar18, 2002
    7:42:32 AM GMT+10:00> <Emergency> <WebLogicServer> <The WebLogic Server isno
    longer listening for connections. You should probably restart it.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert> <WebLogicServer> <Servershutdown
    has been requested by system> <Mar 18, 2002 7:42:32 AM GMT+10:00> <Alert><WebLogicServer>
    <The shutdown sequence has been initiated.> <Mar 18, 2002 7:42:32 AMGMT+10:00>
    <Info> <WebLogicServer> <Server shutdown is commencing NOW and isirreversible.>
    <Mar 18, 2002 7:42:32 AM GMT+10:00> <Error> <Performance Pack> <Unable toload
    performance pack, using Java I/O. java.lang.ThreadDeath atjava.lang.Thread.stop(Thread.java:581)
    at weblogic.t3.srvr.T3Srvr.die(T3Srvr.java:764) atweblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:507)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:171) atweblogic.Server.main(Server.java:35)
    >
    >

  • Starting Server in Debug Mode - Need Some Advice Plz.

    Hi Guys,
    I have an EP SP 12 Server Running and I am trying to Start the Server in Debug mode from the Netweaver Developer Studio but when I right click the Server and try to choose Debug, the option is greyed out and even while viewing the Debug option from the SAPMMC I see that under the column Debug, it say 'Disabled' for the Server and Dispatcher.
    Can anyone suggest how this can be done, I would appreciate any help as I have been working on this for some time.
    Best Wishes,
    John.
    Message was edited by: John Bray
    Message was edited by: John Bray

    Hi John,
    If the you cannot start the server in the debugging mode through the NWDS then you can try the other way round.
    <b>Through Config Tool:</b>
    You can enable the debuggine mode from the Config Tool as well. Just visit the following path :
    <b>C:\usr\sap\<SID>\JC<SYS_NO>\j2ee\configtool\configtool.bat</b>
    Click on the your instance. Then under the tab VM Environment, Set the <b>DebugMode = true</b>.
    Restart the engine now. This will open the J2EE server again in the Debug Mode.
    I hope this helps you!!
    Regards
    Pravesh
    PS: Please conside rewarding points if helpful and solved.

  • How to start wlst in online mode

    I'm a first time user of 'wlst' ;-)
    I installed the WebLogic Server 9.1 on the HP-UX PA-RISC platform and is running in a production environment.
    I can start 'wlst' offline on HP-UX but don't know how to switch back to the online mode.
    I'd like to find out if 'wlst' online mode is supported on HP-UX. If it supports on HP-UX, can someone let me know how to start 'wlst' in online mode?
    Thanks!
    Pearl

    When you first invoke WLST, by default you are in "offline" mode. Once you are connected to a server you will be in "online" mode.
    Thanks,
    -satya
    BEA Blog: http://dev2dev.bea.com/blog/sghattu/

  • How to run labview in debug mode

    Two questions:
    1. how to run labview in debug mode
    2. how to save default text values in labview

    Hi,
    consider i have streaming bits of data as input who length varies each time. I need to select 11 bits at a time and apply (15,11) hamming coding for the inputs till the input is stopped.
    I have designed the hamming encoding and decoding block. I need a methodology to select 11 bits at a time from the input and provide to the hamming encoder.
    eg: if input is 1100 bits, output must be 1500 bits.
    I have uploaded the encoder and the decoder part. Please suggest me the design to read the input and append the output.
    Attachments:
    project_HammingEncode.vi ‏19 KB
    project_HammingDecode.vi ‏22 KB

  • Starting Firefox in Private mode from the pinned ico in taskbar causes Windows Explorer to crash.

    Starting Firefox in Private mode from the pinned icon in taskbar (right click, choose "New Private Window") causes Windows Explorer to crash almost everytime, but not always. Very odd.
    Didn´t happen with previous versions of Firefox.
    Firefox 22.0, Win 7 Ultimate with all updates applied.

    Hello Paul,
    That's a very odd behavior indeed. All I can think of is that an add-on is confused and makes Firefox crash. The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Upgrading from BEA Weblogic portal 8.1.5 to BEA Weblogic Portal 10.3

    We are upgrading from BEA Weblogic portal 8.1.5 to BEA Weblogic Portal 10.3. We just took over the project from some other vendor since last 9 months. At some of the places in the code, we are using internal APIs of Weblogic Server which should not have been used at the first place.
    As weblogic has changed the version and internal structure as well as the classes also, We are facing problems in terms of compilation of the code itself.
    The class "ServletRequestImpl" is giving us issues.
    Has anybody faced the similar issues, if yes, please let me know.

    Andy-
    Since the Struts portlet support requires that struts app be converted to a module,
    alternate message resources need to be accessed by modifying the bundle name by
    appending the module name, since Struts doesn't automatically propogate the alternate
    resources from the ServletContext to the Request when a module is selected.
    For instance, in suppose your struts application module is /struts/myExample.
    To access the alternate bundle from within that module, you'll need to specify
    the bundle as alternate/struts/myExample.
    -Brodi Beartusk
    "Andy Hull" <[email protected]> wrote:
    >
    Hi,
    I'm trying to get the struts-example webapp from Struts 1.1 RC1 working
    under
    Weblogic Portal 8.1 with the JSR 168 and Struts support patch.
    I am having problems with the message bundle properties files ApplicationResources.properties
    and AlternateApplicationResources.properties as neither of these files
    are being
    picked up.
    These files are located in org/apache/struts/webapp/example in WEB-INF/src
    and
    WEB-INF/classes of my webapp (i.e. <WEBAPP>/WEB-INF - my struts-example
    resides
    in <WEBAPP>/struts-example). I've also tried adding <init-param>'s to
    the <WEB-APP>/WEB-INF/web.xml
    file for the action servlet as follows:
    <servlet> <servlet-name>action</servlet-name> ... <init-param> <param-name>application</param-name>
    <param-value>org.apache.struts.webapp.example.ApplicationResources</param-value>
    </init-param> <init-param> <param-name>alternate</param-name> <param-value>org.apache.struts.webapp.example.AlternateApplicationResources</param-value>
    </init-param> </servlet>
    When I use the logon action as the starting action for the portlet, I
    get:
    Error opening /struts-example/logon.jsp. The source of this error is
    javax.servlet.ServletException:
    Cannot find message resources under key alternate at weblogic.servlet.jsp.PageContextImpl.handlePageException...
    Any help would be appreciated.
    --Andy

  • Migrating from BEA WebLogic 5.1 (Windows 2000) to iAS9

    Hi!
    I am looking for a step-by-step guide for migrating from BEA WebLogic 5.1 (Windows 2000) to iAS9. The guide should contain the detailed information on how to migrate servlets and EJBs.
    Some of my questions are:
    - What do I have to do when I have system startup files from WebLogic? Are there equivalent properties for iAS9?
    # Register a startup class by giving it a virtual name and
    # supplying its full pathname.
    #weblogic.system.startupClass.[virtual_name]=[full_pathname]
    # Add arguments for the startup class
    #weblogic.system.startupArgs.[virtual_name]={argname]=[argvalue]
    - How do I set the system properties?
    Phuoc
    null

    This a response to the specific point of startup/shutdown classes, a whole Migration paper is underway
    Since Servlet 2.2 and EJB containers in 9i AS run within the middle tier database instance,
    the easier way to accompish what you want is to declare those classes as database startup/shutdown triggers (Java stored procedures).
    You can also set session properties using the "modifyprops" command (cf Java Tools Reference)

  • 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

Maybe you are looking for

  • Bootcamp, running into multiple issues....

    As a little bit of backstory, I bought a MacBook (late 2009 edition with Snow Leopard) because I was having issues with my old Windows XP PC desktop, which was invaded with trojans and viruses. I had to delete everything, start up from scratch and wi

  • Merging blackchannels of different PDFs

    Would anyone know if there any means of merging the blackchannels of two different PDFs? The problem is we are working on a catalogue wich must be produced in 15 languages. Working in layers in Indesign makes the file very heavy, working with differe

  • Doubt about uses of OBIEE

    I have some doubts about the possible uses of OBIEE. It happens that using OBIEE sometimes users demand report of an "analytical" type, that is aggregated analysis through OBIEE's Answers, selecting data from dimension tables and measures from fact t

  • Cannot Launch Trial Version Dreamweaver CS6

    I have repeatedly tried to install and launch the above trial but when I try to launch it nothing happens.  Any idea what to do?

  • RE: How To Get  More Effects, And Presets

    Hello Everyone. How can I get more Effects, And Presets for Premiere Pro CC. Is It free, or we have to purchase them ? Thanks.