Jms from sun j2ee to bea weblogic
Hy,
is there a easy way to connect a JmsFactory from an j2ee sun server to a
bea weblogic server?
JMS API Tutorial shows an example for connecting two j2ee Server:
j2eeadmin --addJmsFactory MyFactory queue -props
url=corbaname:iiop:remoteserver:1050:#remoteserver
Weblogic 7 seems to support iiop (on Port 7001?) but
something is missing ... no connection could be made to send Messages
from j2ee (sun) to weblogic server?
Any hint?
Best Regards,
Holger
Hi Holger,
The WL JMS client does not support iiop in 7.0,
although it does in 8.1 (beta soon). Instead use t3, a much
faster protocol, or, if you need to tunnel, use http.
Note that BEA has a comprehensive white-paper on integrating
"foreign" JMS providers on dev2dev.bea.com:
"Using Foreign JMS Providers With WebLogic Server"
Tom
Holger von Rhein wrote:
> Hy,
>
> is there a easy way to connect a JmsFactory from an j2ee sun server to a
> bea weblogic server?
>
> JMS API Tutorial shows an example for connecting two j2ee Server:
>
> j2eeadmin --addJmsFactory MyFactory queue -props
> url=corbaname:iiop:remoteserver:1050:#remoteserver
>
> Weblogic 7 seems to support iiop (on Port 7001?) but
> something is missing ... no connection could be made to send Messages
> from j2ee (sun) to weblogic server?
>
> Any hint?
>
>
> Best Regards,
>
> Holger
>
Similar Messages
-
ANN: J2EE Applications & BEA WebLogic Hardcopies Available!
** J2EE Applications & BEA WebLogic Hardcopies Available! **
The first hardcopies of the only programming book to cover J2EE & WebLogic 6
are now available. For those of you that have already ordered, we thank you.
In just a few short weeks we have moved up to the No. 42 spot on Amazon.
If you have not ordered already, you can order now and copies will be
shipped in just a few short days. The book can be located Amazon.com at the
following URL:
http://www.amazon.com/exec/obidos/ASIN/0130911119/ref=ase_learnweblogic/103-
5396741-5920623
More information on this book can be located at:
http://www.learnweblogic.com/.
** Overview **
Building J2EE Applications & BEA WebLogic is targeted at Java programmers
developing applications for the BEA WebLogic platform, the leading Web
Application Server in the marketplace today. This book focuses on best
practices for developing enterprise applications using the WebLogic APIs.
After reading this book, intermediate or professional-level Java developers
will possess the skills and knowledge required to develop scalable and
robust applications on the WebLogic platform.
The book combines reference and tutorial, taking a step-by-step approach
that introduces each API and uses it to build a component of the WebAuction
application, which supports on-line Auctioning on the Web. All software
needed to build the sample application is included on a CD-ROM that
accompanies the book. The WebAuction project gives users the opportunity to
explore significant areas of building a distributed Enterprise Java
application, including:
· Planning in advance for scalability and deployment
· Building presentation logic
· Establishing database connectivity
· Creating Enterprise Java Beans for the BEA WebLogic application server
· Packaging the whole application so that it can be easily managed and
maintained.
** About the Authors **
Rob Woollen is a Senior Software Engineer at BEA Systems. He is currently
the lead developer for the WebLogic Server EJB Container. Before joining
BEA, Rob worked on UNIX Kernel networking for Hewlett-Packard. Rob holds a
Bachelors degree in Computer Science from Princeton University.
Michael Girdley is the Director of Product Management for WebLogic Server at
BEA, a role in which he acts as chief marketing liaison to over 200
engineers. An experienced application developer in Java, HTML, C, and C++,
Michael is a co-author of Web Programming with Java (Sams-net Publishing,
1996) and Java Unleashed, Second Edition (Sams-net Publishing, 1997).
Michael holds a Bachelors degree in Computer Science with Honors from
Lafayette College.
Sandra L. Emerson is a technical writer and consultant with 20 years'
experience in the software industry. She is a co-author of four computer
trade books: The Business Guide to the UNIX System (Addison-Wesley, 1984);
Database for the IBM PC (Addison-Wesley, 1984); Troff Typesetting for UNIX
Systems (Prentice-Hall, 1987); and The Practical SQL Handbook
(Addison-Wesley, 1989-99). The fourth edition of The Practical SQL Handbook
is scheduled for Fall, 2000.** J2EE Applications & BEA WebLogic Hardcopies Available! **
The first hardcopies of the only programming book to cover J2EE & WebLogic 6
are now available. For those of you that have already ordered, we thank you.
In just a few short weeks we have moved up to the No. 42 spot on Amazon.
If you have not ordered already, you can order now and copies will be
shipped in just a few short days. The book can be located Amazon.com at the
following URL:
http://www.amazon.com/exec/obidos/ASIN/0130911119/ref=ase_learnweblogic/103-
5396741-5920623
More information on this book can be located at:
http://www.learnweblogic.com/.
** Overview **
Building J2EE Applications & BEA WebLogic is targeted at Java programmers
developing applications for the BEA WebLogic platform, the leading Web
Application Server in the marketplace today. This book focuses on best
practices for developing enterprise applications using the WebLogic APIs.
After reading this book, intermediate or professional-level Java developers
will possess the skills and knowledge required to develop scalable and
robust applications on the WebLogic platform.
The book combines reference and tutorial, taking a step-by-step approach
that introduces each API and uses it to build a component of the WebAuction
application, which supports on-line Auctioning on the Web. All software
needed to build the sample application is included on a CD-ROM that
accompanies the book. The WebAuction project gives users the opportunity to
explore significant areas of building a distributed Enterprise Java
application, including:
· Planning in advance for scalability and deployment
· Building presentation logic
· Establishing database connectivity
· Creating Enterprise Java Beans for the BEA WebLogic application server
· Packaging the whole application so that it can be easily managed and
maintained.
** About the Authors **
Rob Woollen is a Senior Software Engineer at BEA Systems. He is currently
the lead developer for the WebLogic Server EJB Container. Before joining
BEA, Rob worked on UNIX Kernel networking for Hewlett-Packard. Rob holds a
Bachelors degree in Computer Science from Princeton University.
Michael Girdley is the Director of Product Management for WebLogic Server at
BEA, a role in which he acts as chief marketing liaison to over 200
engineers. An experienced application developer in Java, HTML, C, and C++,
Michael is a co-author of Web Programming with Java (Sams-net Publishing,
1996) and Java Unleashed, Second Edition (Sams-net Publishing, 1997).
Michael holds a Bachelors degree in Computer Science with Honors from
Lafayette College.
Sandra L. Emerson is a technical writer and consultant with 20 years'
experience in the software industry. She is a co-author of four computer
trade books: The Business Guide to the UNIX System (Addison-Wesley, 1984);
Database for the IBM PC (Addison-Wesley, 1984); Troff Typesetting for UNIX
Systems (Prentice-Hall, 1987); and The Practical SQL Handbook
(Addison-Wesley, 1989-99). The fourth edition of The Practical SQL Handbook
is scheduled for Fall, 2000. -
J2EE Applications & BEA WebLogic Hardcopies Available!
** J2EE Applications & BEA WebLogic Hardcopies Available! **
The first hardcopies of the only programming book to cover J2EE & WebLogic 6
are now available. For those of you that have already ordered, we thank you.
In just a few short weeks we have moved up to the No. 42 spot on Amazon.
If you have not ordered already, you can order now and copies will be
shipped in just a few short days. The book can be located Amazon.com at the
following URL:
http://www.amazon.com/exec/obidos/ASIN/0130911119/ref=ase_learnweblogic/103-
5396741-5920623
More information on this book can be located at:
http://www.learnweblogic.com/.
** Overview **
Building J2EE Applications & BEA WebLogic is targeted at Java programmers
developing applications for the BEA WebLogic platform, the leading Web
Application Server in the marketplace today. This book focuses on best
practices for developing enterprise applications using the WebLogic APIs.
After reading this book, intermediate or professional-level Java developers
will possess the skills and knowledge required to develop scalable and
robust applications on the WebLogic platform.
The book combines reference and tutorial, taking a step-by-step approach
that introduces each API and uses it to build a component of the WebAuction
application, which supports on-line Auctioning on the Web. All software
needed to build the sample application is included on a CD-ROM that
accompanies the book. The WebAuction project gives users the opportunity to
explore significant areas of building a distributed Enterprise Java
application, including:
· Planning in advance for scalability and deployment
· Building presentation logic
· Establishing database connectivity
· Creating Enterprise Java Beans for the BEA WebLogic application server
· Packaging the whole application so that it can be easily managed and
maintained.
** About the Authors **
Rob Woollen is a Senior Software Engineer at BEA Systems. He is currently
the lead developer for the WebLogic Server EJB Container. Before joining
BEA, Rob worked on UNIX Kernel networking for Hewlett-Packard. Rob holds a
Bachelors degree in Computer Science from Princeton University.
Michael Girdley is the Director of Product Management for WebLogic Server at
BEA, a role in which he acts as chief marketing liaison to over 200
engineers. An experienced application developer in Java, HTML, C, and C++,
Michael is a co-author of Web Programming with Java (Sams-net Publishing,
1996) and Java Unleashed, Second Edition (Sams-net Publishing, 1997).
Michael holds a Bachelors degree in Computer Science with Honors from
Lafayette College.
Sandra L. Emerson is a technical writer and consultant with 20 years'
experience in the software industry. She is a co-author of four computer
trade books: The Business Guide to the UNIX System (Addison-Wesley, 1984);
Database for the IBM PC (Addison-Wesley, 1984); Troff Typesetting for UNIX
Systems (Prentice-Hall, 1987); and The Practical SQL Handbook
(Addison-Wesley, 1989-99). The fourth edition of The Practical SQL Handbook
is scheduled for Fall, 2000.** J2EE Applications & BEA WebLogic Hardcopies Available! **
The first hardcopies of the only programming book to cover J2EE & WebLogic 6
are now available. For those of you that have already ordered, we thank you.
In just a few short weeks we have moved up to the No. 42 spot on Amazon.
If you have not ordered already, you can order now and copies will be
shipped in just a few short days. The book can be located Amazon.com at the
following URL:
http://www.amazon.com/exec/obidos/ASIN/0130911119/ref=ase_learnweblogic/103-
5396741-5920623
More information on this book can be located at:
http://www.learnweblogic.com/.
** Overview **
Building J2EE Applications & BEA WebLogic is targeted at Java programmers
developing applications for the BEA WebLogic platform, the leading Web
Application Server in the marketplace today. This book focuses on best
practices for developing enterprise applications using the WebLogic APIs.
After reading this book, intermediate or professional-level Java developers
will possess the skills and knowledge required to develop scalable and
robust applications on the WebLogic platform.
The book combines reference and tutorial, taking a step-by-step approach
that introduces each API and uses it to build a component of the WebAuction
application, which supports on-line Auctioning on the Web. All software
needed to build the sample application is included on a CD-ROM that
accompanies the book. The WebAuction project gives users the opportunity to
explore significant areas of building a distributed Enterprise Java
application, including:
· Planning in advance for scalability and deployment
· Building presentation logic
· Establishing database connectivity
· Creating Enterprise Java Beans for the BEA WebLogic application server
· Packaging the whole application so that it can be easily managed and
maintained.
** About the Authors **
Rob Woollen is a Senior Software Engineer at BEA Systems. He is currently
the lead developer for the WebLogic Server EJB Container. Before joining
BEA, Rob worked on UNIX Kernel networking for Hewlett-Packard. Rob holds a
Bachelors degree in Computer Science from Princeton University.
Michael Girdley is the Director of Product Management for WebLogic Server at
BEA, a role in which he acts as chief marketing liaison to over 200
engineers. An experienced application developer in Java, HTML, C, and C++,
Michael is a co-author of Web Programming with Java (Sams-net Publishing,
1996) and Java Unleashed, Second Edition (Sams-net Publishing, 1997).
Michael holds a Bachelors degree in Computer Science with Honors from
Lafayette College.
Sandra L. Emerson is a technical writer and consultant with 20 years'
experience in the software industry. She is a co-author of four computer
trade books: The Business Guide to the UNIX System (Addison-Wesley, 1984);
Database for the IBM PC (Addison-Wesley, 1984); Troff Typesetting for UNIX
Systems (Prentice-Hall, 1987); and The Practical SQL Handbook
(Addison-Wesley, 1989-99). The fourth edition of The Practical SQL Handbook
is scheduled for Fall, 2000. -
** ANNOUNCE: J2EE Applications & BEA WebLogic Hardcopies Available! **
** ANNOUNCE: J2EE Applications & BEA WebLogic Hardcopies Available! **
The first hardcopies of the only programming book to cover J2EE & WebLogic 6
are now available. For those of you that have already ordered, we thank
you.
In just a few short weeks we have moved up to the No. 636 spot on Amazon.
This is great interest in considering the official ship date is not until
August 16!
If you have not ordered already, you can order now and copies will be
shipped in just a few short days. The book can be located Amazon.com at the
following URL:
http://www.amazon.com/exec/obidos/ASIN/0130911119/learnweblogic/102-1778325-
4765749
More information on this book can be located at:
http://www.learnweblogic.com/.
** Overview **
Building J2EE Applications & BEA WebLogic is targeted at Java programmers
developing applications for the BEA WebLogic platform, the leading Web
Application Server in the marketplace today. This book focuses on best
practices for developing enterprise applications using the WebLogic APIs.
After reading this book, intermediate or professional-level Java developers
will possess the skills and knowledge required to develop scalable and
robust applications on the WebLogic platform.
The book combines reference and tutorial, taking a step-by-step approach
that introduces each API and uses it to build a component of the WebAuction
application, which supports on-line Auctioning on the Web. All software
needed to build the sample application is included on a CD-ROM that
accompanies the book. The WebAuction project gives users the opportunity to
explore significant areas of building a distributed Enterprise Java
application, including:
· Planning in advance for scalability and deployment
· Building presentation logic
· Establishing database connectivity
· Creating Enterprise Java Beans for the BEA WebLogic application server
· Packaging the whole application so that it can be easily managed and
maintained.
** About the Authors **
Rob Woollen is a Senior Software Engineer at BEA Systems. He is currently
the lead developer for the WebLogic Server EJB Container. Before joining
BEA, Rob worked on UNIX Kernel networking for Hewlett-Packard. Rob holds a
Bachelors degree in Computer Science from Princeton University.
Michael Girdley is the Director of Product Management for WebLogic Server at
BEA, a role in which he acts as chief marketing liaison to over 200
engineers. An experienced application developer in Java, HTML, C, and C++,
Michael is a co-author of Web Programming with Java (Sams-net Publishing,
1996) and Java Unleashed, Second Edition (Sams-net Publishing, 1997).
Michael holds a Bachelors degree in Computer Science with Honors from
Lafayette College.
Sandra L. Emerson is a technical writer and consultant with 20 years'
experience in the software industry. She is a co-author of four computer
trade books: The Business Guide to the UNIX System (Addison-Wesley, 1984);
Database for the IBM PC (Addison-Wesley, 1984); Troff Typesetting for UNIX
Systems (Prentice-Hall, 1987); and The Practical SQL Handbook
(Addison-Wesley, 1989-99). The fourth edition of The Practical SQL Handbook
is scheduled for Fall, 2000.** ANNOUNCE: J2EE Applications & BEA WebLogic Hardcopies Available! **
The first hardcopies of the only programming book to cover J2EE & WebLogic 6
are now available. For those of you that have already ordered, we thank
you.
In just a few short weeks we have moved up to the No. 636 spot on Amazon.
This is great interest in considering the official ship date is not until
August 16!
If you have not ordered already, you can order now and copies will be
shipped in just a few short days. The book can be located Amazon.com at the
following URL:
http://www.amazon.com/exec/obidos/ASIN/0130911119/learnweblogic/102-1778325-
4765749
More information on this book can be located at:
http://www.learnweblogic.com/.
** Overview **
Building J2EE Applications & BEA WebLogic is targeted at Java programmers
developing applications for the BEA WebLogic platform, the leading Web
Application Server in the marketplace today. This book focuses on best
practices for developing enterprise applications using the WebLogic APIs.
After reading this book, intermediate or professional-level Java developers
will possess the skills and knowledge required to develop scalable and
robust applications on the WebLogic platform.
The book combines reference and tutorial, taking a step-by-step approach
that introduces each API and uses it to build a component of the WebAuction
application, which supports on-line Auctioning on the Web. All software
needed to build the sample application is included on a CD-ROM that
accompanies the book. The WebAuction project gives users the opportunity to
explore significant areas of building a distributed Enterprise Java
application, including:
· Planning in advance for scalability and deployment
· Building presentation logic
· Establishing database connectivity
· Creating Enterprise Java Beans for the BEA WebLogic application server
· Packaging the whole application so that it can be easily managed and
maintained.
** About the Authors **
Rob Woollen is a Senior Software Engineer at BEA Systems. He is currently
the lead developer for the WebLogic Server EJB Container. Before joining
BEA, Rob worked on UNIX Kernel networking for Hewlett-Packard. Rob holds a
Bachelors degree in Computer Science from Princeton University.
Michael Girdley is the Director of Product Management for WebLogic Server at
BEA, a role in which he acts as chief marketing liaison to over 200
engineers. An experienced application developer in Java, HTML, C, and C++,
Michael is a co-author of Web Programming with Java (Sams-net Publishing,
1996) and Java Unleashed, Second Edition (Sams-net Publishing, 1997).
Michael holds a Bachelors degree in Computer Science with Honors from
Lafayette College.
Sandra L. Emerson is a technical writer and consultant with 20 years'
experience in the software industry. She is a co-author of four computer
trade books: The Business Guide to the UNIX System (Addison-Wesley, 1984);
Database for the IBM PC (Addison-Wesley, 1984); Troff Typesetting for UNIX
Systems (Prentice-Hall, 1987); and The Practical SQL Handbook
(Addison-Wesley, 1989-99). The fourth edition of The Practical SQL Handbook
is scheduled for Fall, 2000. -
J2EE replaces BEA Weblogic, IBM WebSphere, Orion or JRun
BEA Weblogic, IBM WebSphere absolutely provide stronger ability to support enterprise applications.
I want to know whether J2EE can be used in deploying a commercial web site with multi-tier architecture. For example, to handle hundreds concurrent requests, to balance work load to some extent.
Thanks.J2EE is a platform specification. And WebLogic, WebSphere, JRun etc. are vendor specific products that implement APIs from that platform standard.
It seems you are talking about the refrence implementation of J2EE that comes with J2EE SDK.
See http://java.sun.com/j2ee/faq.html Especially the answers therein to the two questions...
1. What is the purpose of the Reference Implementation?
2. Why don't you allow the binary Reference Implementation to be deployed or redistributed? -
Regarding jms implementation that comes with reference j2ee server from sun
I have a message bean that is trying to read message off the queue, do something, and put a message on to other queue.
The problem: I am loosing a message.
I have tried both the container managed as well as bean managed transaction.
Is there any bug with the reference JMS server? I am using the SimpleQueueSender that comes with the jms tutorial from sun to send message in a persisted mode. I am running the J2EE server that comes from SUN.
I will post the code if someone is willing to take a sincere look.
Thanks
AmanI can tell you one thing about JMS, I have websphere MQ Series, Even the product like MQ from IBM have limitation when using 2 phase commit(), it supports 2 PC only when websphere and MQ Series are installed on the same box, So i would not be surprised if there is a bug in reference JMS implementation and you are losing messages even though in transaction. Are you using distributed transaction.
-
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 AMHi
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 -
Small weblogic.jar for jms/j2ee clients of weblogic
We are trying to create a smaller footprint for the ~38M weblogic.jar for distribution
to our client applications to use the JMS and J2EE features of Weblogic 7.0sp2.
I attempted to use the whitepaper document distributed by BEA for creating a smaller
jar file, but it did not work. Has anyone else in the user community successfully
created the jar file and if so could they give me some insight on how they did
it.
Thanks,
Ashish
Hi Ashish,
I've personally used the "URL" class loader option with success,
and I know that several customers have also used this option, as
well as the other options for years. Feel free to
post more detail than "it did not work", and I may be able
to help you out.
Tom, BEA
P.S. If 8.1 is an option, you may with to consider using the
thin client jars it supplies.
Ashish Bisarya wrote:
> We are trying to create a smaller footprint for the ~38M weblogic.jar for distribution
> to our client applications to use the JMS and J2EE features of Weblogic 7.0sp2.
> I attempted to use the whitepaper document distributed by BEA for creating a smaller
> jar file, but it did not work. Has anyone else in the user community successfully
> created the jar file and if so could they give me some insight on how they did
> it.
>
> Thanks,
> Ashish
-
J2EE Ref. Implementation from Sun startup....
hi all,
i'm using J2EE Ref. Implementation server from Sun.
when i start the server by command - j2ee -verbose...
it prints all the startup events.
Starting web service at port: 8080
Starting secure web service at port: 7000
J2EE SDK/1.3
Starting web service at port: 9191
starting the web service at 8080 & 9191 confuses me.
why it is reqd. to start same service at two ports.
or is it that the lines have different meanings?
somebuddy pl. explain this to me.
thanx & regards
nitinhi Martin...
what u said is exactly right. in addition to the lines u have
written, it also prints foll. lines -
Starting JMS service...
Initialization complete - waiting for client requests
Binding: < JMS Destination : jms/opcApplication/ORDER_APPROVAL_MDB_QUEUE , javax.jms.Queue >
Binding: < JMS Destination : jms/opcApplication/INVOICE_MDB_TOPIC , javax.jms.Topic >
Binding: < JMS Destination : jms/Topic , javax.jms.Topic >
Binding: < JMS Destination : jms/opcApplication/MAILER_MDB_QUEUE , javax.jms.Queue >
Binding: < JMS Destination : jms/opcApplication/SUPPLIER_PO_MDB_QUEUE , javax.jms.Queue >
Binding: < JMS Destination : jms/opcApplication/customerrelations/CR_MAIL_ORDER_APPROVAL_MDB_QUEUE ,
javax.jms.Queue >
Binding: < JMS Destination : jms/opcApplication/JPS_ORDER_QUEUE , javax.jms.Queue >
Binding: < JMS Destination : jms/Queue , javax.jms.Queue >
Binding: < JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
Binding: < JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
Binding: < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties >
Binding: < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties >
Starting web service at port: 8080
Starting secure web service at port: 7000
J2EE SDK/1.3
Starting web service at port: 9191
what u have written is not the complete print out
or at least in my case it's a partial print out cos bfor
the 'Server startup complete' line i'm getting lot many lines printed
on the dos prompt. here i wanted the meaning of web services
started on 8080 as well as 9191 which is confusing me.
thanx & regards
nitin -
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 -
Migration of j2ee app from Sun one App Server 6.0 to Sun one 6.5 Server
Hi all,
Currently I am involved in "J2EE" ear (webapps) migration from Sun One 6.0 to Sun One 6.5 Application Server on solaris os.Since the version and functionlity itself is major change in Sun One Server, my team had decided to build the source file and decided to port to Sun one 6.5 App Server.On doing build and compiling all source files, EJB compiler is failing on Sun one server 6.5.
Our findings on migration was as follows:
Sun one server 6.0 and its EJB compiler internally uses "kfcjdk11.jar" which is the base library to generate ejbs for "Enterprise Archive or ear file " of the application.Hence our application is suceessfully getting compiled and built on Sun one server 6.0 and running pretty fine.
However, "kfcjdk11.jar" still present in Sun One 6.5 server but its not been referred by SUN One 6.5 EJB compiler.So any successfully ear file deployed on 6.0 App Server, can be deployed on Sun One server 6.5. But to test applications/product's cycle, ear file deployed on SUN one 6.5 throws runtime errors and white screen is displayed to the user.
I had already included kfcjdk11.jar file into classpath, still its failing to compile the files.
The one of the error description is as follows:
[exec] iPlanet Enterprise Java Beans(tm) Compiler (version 6.5)
[exec]
[exec] Unexpected compilation Error:
[exec]
[exec] ejb_fac_com_server_framework_ejb_ChannelManagerBean.java:9: Superclass com.kivasoft.eb.EBHomeFactoryBase of class com.server.framework.ejb.ejb_fac_com_server_framework_ejb_ChannelManagerBean not found.
[exec] extends com.kivasoft.eb.EBHomeFactoryBase
[exec] ^
[exec] ejb_home_com_server_framework_ejb_ChannelManagerBean.java:8: Superclass com.kivasoft.eb.EBHomeBase of class com.server.framework.ejb.ejb_home_com_server_framework_ejb_ChannelManagerBean not found.
[exec] public class ejb_home_com_server_framework_ejb_ChannelManagerBean extends com.kivasoft.eb.EBHomeBase implements com.server.framework.ejb.IChannelManagerHome
[exec] ^
[exec] ejb_kcp_skel_IChannelManagerHome.java:9: Superclass com.kivasoft.ebfp.EBKCPSkelBase of class com.server.framework.ejb.ejb_kcp_skel_IChannelManagerHome not found.
[exec] extends com.kivasoft.ebfp.EBKCPSkelBase
[exec] ^
[exec] ejb_stub_IChannelManagerHome.java:9: Superclass com.kivasoft.eb.EBStubBase of class com.server.framework.ejb.ejb_stub_IChannelManagerHome not found.
[exec] extends com.kivasoft.eb.EBStubBase
[exec] ^
[exec] ejb_kcp_stub_IChannelManagerHome.java:9: Superclass com.kivasoft.ebfp.EBKCPStubBase of class com.server.framework.ejb.ejb_kcp_stub_IChannelManagerHome not found.
[exec] extends com.kivasoft.ebfp.EBKCPStubBase
[exec] ^
[exec] ejb_stub_IChannelManager.java:9: Superclass com.kivasoft.eb.EBStubBase of class com.server.framework.ejb.ejb_stub_IChannelManager not found.
[exec] extends com.kivasoft.eb.EBStubBase
[exec] ^
[exec] ejb_kcp_stub_IChannelManager.java:9: Superclass com.kivasoft.ebfp.EBKCPStubBase of class com.server.framework.ejb.ejb_kcp_stub_IChannelManager not found.
[exec] extends com.kivasoft.ebfp.EBKCPStubBase
[exec] ^
[exec] ejb_skel_com_server_framework_ejb_ChannelManagerBean.java:7: Package com.iplanet.ias.tools.monitor not found in import.
[exec] import com.iplanet.ias.tools.monitor.*;
[exec] ^
[exec] ejb_skel_com_server_framework_ejb_ChannelManagerBean.java:11: Superclass com.kivasoft.eb.EBSkelDelegate of class com.server.framework.ejb.ejb_skel_com_server_framework_ejb_ChannelManagerBean not found.
[exec] extends com.kivasoft.eb.EBSkelDelegate
[exec] ^
[exec] ejb_kcp_skel_IChannelManager.java:9: Superclass com.kivasoft.ebfp.EBKCPSkelBase of class com.server.framework.ejb.ejb_kcp_skel_IChannelManager not found.
[exec] extends com.kivasoft.ebfp.EBKCPSkelBase
[exec] ^
[exec] 10 errors
[exec]
[exec] Result: 255
Please guide us or suggest us to migrate our application to Sun one 6.5.
Thanks in advance,Hi,
web applciation uses some of platform specific API which are not portable to App server 7.0 like uda.framework etc.
So to streamline process we are migrating applcaition to 6.5 server and also planning to rewrite whole archietecture to port it to another app server.
Thanks, -
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 -
build and run Sun's PetStore
1.3.1_02 application with BEA WebLogic Server 8.1.
5) In the same Command Prompt, compile PetStore using the commands:
cd c:\bea\user_projects\domains\petstore
setPetStoreEnv.cmd
cd c:\petstore1.3.1_02\src
ant
buildfile:build.xml does not exist!
build failed
could you tell me how ?
thank youWhat we, BEA, provides is a patch to allow you to compile Pet Store for
WebLogic Server. It does not contain the source code.
Sun's Pet Store source code can be found at
http://developer.java.sun.com/developer/releases/petstore/petstore1_3_1_02.h
tml. See the requirements section of README.TXT
You need both in order to make it work.
"Ankur" <[email protected]> wrote in message
news:3fa9f2d9$[email protected]..
Hi Nick,
I tried building the petstore1.3.1_02 application following theinstructions in the readme. But I got an error as the buil.xml file is
missing in the directory.....\petstore1.3.1_02\src.
>
I tried unzipping the downloaded again and for a petstore.domain.jar alongwith the readme. This jar does not contain the build.xml file.
>
Then I tried compiling one by one the component folder and found that the../xmldocuments/src folder has only a build.xml file but no source file...
>
Kinldy suggest what to do? Can you send me the zip via email?
P.S: I have checked the zip and the files are missing. -
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,
WaqarYou 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. -
Slow execution with BEA Weblogic MSSQL Driver from LD
Any ideas what 3-4 minute delay is from? The stack trace shows it is waiting on the db, but customer says same query executes 'fast' when not executed from LD.
- Mike
LD
I am seeing a strange delay while trying to retrieve data through a database view from MS SQL Server (version : 2000 - 8.00.760) using BEA Weblogic MSSQL Driver version: 3.3.43. Even when I am trying to retrieve a single string record, the query takes more than 3-4 minutes. All other data retrievals against oracle databases all complete within seconds.
I used p6spy to track the jdbc calls and it reports delay in excess of 3 minutes. If the same query is run from a sql analyzer or as a db ctrl in workshop, it returns in seconds. I tried Dataconect drivers also but same result. Changing the jvm also resulted in same behavior.
Even a stripped down query shows same amount of delay occurs:
for $warrantyRep.warranty_info_vw_7 in document("warrantyRep")/db/QADATAPLANADM/dbo/warranty_info_vw
where ($xf:vin_char_1_9 eq $warrantyRep.warranty_info_vw_7/VIN_CHAR_1_9)
and ($xf:vin_char_10_17 eq $warrantyRep.warranty_info_vw_7/VIN_CHAR_10_17)
return
<ns:warrantyRepair>
<ns:dealerCode>{ xf:data($warrantyRep.warranty_info_vw_7/DEALER_CODE) }</ns:dealerCode>
<ns:warrantyRepair>
This is the direct sql call :
select * from warranty_info_vw where vin_char_1_9 = 'JTHBF30G3' AND VIN_CHAR_10_17 = '30142268';
from p6spy logs for the statements invoked by LD:
1104987465855|15|4|statement||SELECT COUNT(*) FROM sysobjects
1104987630621|164766|4|statement|SELECT t1."DEALER_CODE"
FROM "QADATAPLANADM"."dbo"."warranty_info_vw" t1
WHERE ((?) = (t1."VIN_CHAR_1_9")) AND ((?) = (t1."VIN_CHAR_10_17"))|SELECT t1."DEALER_CODE"
FROM "QADATAPLANADM"."dbo"."warranty_info_vw" t1
WHERE (('JTHBF30G3') = (t1."VIN_CHAR_1_9")) AND (('30142268') = (t1."VIN_CHAR_10_17"))
1104987630621|-1||resultset|SELECT t1."DEALER_CODE"
FROM "QADATAPLANADM"."dbo"."warranty_info_vw" t1
WHERE (('JTHBF30G3') = (t1."VIN_CHAR_1_9")) AND (('30142268') = (t1."VIN_CHAR_10_17"))|DEALER_CODE = 62911
1104987630621|-1||resultset|SELECT t1."DEALER_CODE"
FROM "QADATAPLANADM"."dbo"."warranty_info_vw" t1
WHERE (('JTHBF30G3') = (t1."VIN_CHAR_1_9")) AND (('30142268') = (t1."VIN_CHAR_10_17"))|DEALER_CODE = 62911
1104987630621|264000|3|statement|SELECT t1."DEALER_CODE"
FROM "QADATAPLANADM"."dbo"."warranty_info_vw" t1
WHERE ((?) = (t1."VIN_CHAR_1_9")) AND ((?) = (t1."VIN_CHAR_10_17"))|SELECT t1."DEALER_CODE"
FROM "QADATAPLANADM"."dbo"."warranty_info_vw" t1
WHERE (('30142268') = (t1."VIN_CHAR_1_9")) AND (('JTHBF30G3') = (t1."VIN_CHAR_10_17"))
1104987630621|0|4|commit||
1104987630621|0|3|commit||nevermind - I'm am following the instructions in this thread. Sounds like the problem that I have
http://forums.bea.com/bea/thread.jspa?forumID=2022&threadID=200007092&messageID=200020921&start=-1#200020921
Maybe you are looking for
-
I have an iphone 5 with ios 6.1.4. I just tried to sync my phone to my itunes acct to load new music onto my phone and it gave me a message saying that it was unable to sync b/c "the sync session failed to start". It let me download all pictures, b
-
I cannot use the Java pull down menus on USAA.com, and downloads cancel when I close Firefox and cannot be resumed. What happened to the old downloader? I have to use IE in order to use USAA.com (primary banking). I tried updating Java, I tried a rei
-
Table for Contarct number and price condition record GUID
Hi All, Please help me to find the table in which the Contarct number and price condition record GUID was stored. By.... Biplab
-
After renaming the field name in content server,I am get the Exception
Hai All After renaming the field name in Content Server I got one Error Like *<ERROR> <oracle.ucm.idocs> <UCM-CS-000001> <General Exception>* intradoc.data.dataexception !csRequiredFieldMissing2 dRevLabel in UCM. Thanks, Hari Edited by: Hari on Jun 1
-
Job ERROR in imp..
Hi, While importing a database from imp utility with the system schema we're not able to get the scheduled jobs of various schemas of the exported database in the same schemas of the imported database but comes in the system schema from which we are