Please Help me Xdoclet CMP EJBs weblogic 8.1
Hi all,
I am new to both xdoclet and weblogic.
I have confusion about foriegn-key-column and key-column in @weblogic.column-map tag for many to many relationship
I have many to many relationship between Order EJB and Item EJB. join table name is OrderLine.
In Order EJB I have cmr method
public abstract java.util.Collection getItems();
which one @weblogic.column-map tag is correct? is foriegn-key reference from Order table to OrderLine table or OrderLine table to Order table. My impression is it is from OrderLine table to Order table. Just want to confirm it.
1)
public abstract class OrderEJB implements EntityBean {
* @ejb.interface-method
* view-type="local"
* @ejb.relation
* name="OrdersItems"
* role-name="Order"
* @weblogic.relation
* join-table-name="OrderLine"
* generate="false"
* @weblogic.column-map
* foriegn-key-column="order_itemId"
* key-column="orderline_item_id"*
public abstract Collection getItems();
Or
2)
public abstract class OrderEJB implements EntityBean {
* @ejb.interface-method
* view-type="local"
* @ejb.relation
* name="OrdersItems"
* role-name="Order"
* @weblogic.relation
* join-table-name="OrderLine"
* generate="false"
* @weblogic.column-map
* foriegn-key-column="orderline_itemId"
* key-column="order_item_id"*
public abstract Collection getItems();
My second question is suppose I have composite foriegn-key, in that case how will I define @weblogic.column-map tags,
will it be something like this?
public abstract class OrderEJB implements EntityBean {
* @ejb.interface-method
* view-type="local"
* @ejb.relation
* name="OrdersItems"
* role-name="Order"
* @weblogic.relation
* join-table-name="OrderLine"
* generate="false"
* @weblogic.column-map
* foriegn-key-column="fk_col1"
* key-column="pk_col1"*
* @weblogic.column-map
* foriegn-key-column="fk_col2"
* key-column="pk_col2"
public abstract Collection getItems();
Thanks in advance
Create a web application, put you JSP in the web application, put the web application in the server. And Robert is you Father's Brother.
Similar Messages
-
Please help to integrate struts1 into weblogic portal
I'm a newbie in weblogic portal, so much documents for me on Oracle's website, but I didn't know where 's startup? please help on this :)
1. Weblogic Portal: I could connect to jdbc datasource (using ms sqlserver 2005) and created database successfully. But I didn't how to my application can get data (from database), e.g. using portlet to connect? I'm really need to help to get data from db, and display it, please help understand it.
2. I had a existing struts1 project (spring + struts1 + hibernate + ms sqlserver), this project could connect and get data from database. And I implemented the following guide on oracle's website, but I faced with so much problem, please help me clearly on integration struts1 in weblogic portal, what's required? if can, please step by step.
Thanks in advance,
NhanJava Message Service (JMS) is a standard API for accessing enterprise messaging systems.
And WebLogic JMS is an enterprise-class messaging system that is tightly integrated into the WebLogic Server platform. It fully supports the JMS Specification.
Please refer to the following links to get more information on this and how to configure the jms resources:
http://docs.oracle.com/cd/E15051_01/wls/docs103/jms/fund.html
http://middlewaremagic.com/weblogic/?page_id=1976
Thanks,
Patrick -
Please help me to develop EJB project on BEA Weblogic Platform 8.1.
Hi fols ! I am Vishal.
I want to develop EJB project using BEA Weblogic Platform 8.1 with Weblogic Server.I wih to know entire procedure to create ,deploy,test EJb using Java application,web application etc.So send me detail tutorial of it on my email id [email protected]
Thank you!Buy a good book ... that way you will get your development up-to-speed fast.
-
JDev 10.1.3 generates incorrect getter/setter for CMP EJB 3.0 - Please help
Hi,
I am using JDev 10.1.3 Production and using the EJB3.0 CMP wizard to generate the code from a MySQL database. No matter what type I specify for my database columns in schema, code generator always generates the properties of type String only. e.g if a column called Age is specified as Integer in schema, the generator generates setters/getters with String type.
Can somebody please help me.
Regards
VimalI was able to reproduce the problem and logged bug 5035459 for now. -- thanks
-
Hi,
I am facing this problem, Please help me, I am attaching the source files
also along with the mail. This is a small CMP EJB application, I am using
IAS SP2 on NT server with Oracle 8. I highly appreciate if someone can send
me the working copy of the same. I need these urgent. I am porting all my
beans from bea weblogic to Iplanet. Please help me dudes.
Err.........
[06/Sep/2001 13:41:29:7] error: EBFP-marshal_internal: internal exception
caught
in kcp skeleton, exception = java.lang.NoSuchMethodError
[06/Sep/2001 13:41:29:7] error: Exception Stack Trace:
java.lang.NoSuchMethodError
at
com.se.sales.customer.ejb_kcp_skel_CompanyHome.create__com_se_sales_c
ustomer_Company__java_lang_Integer__indir_wstr__215617959(ejb_kcp_skel_Compa
nyHo
me.java:205)
at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
at com.kivasoft.ebfp.FPRequest.invoke(Unknown Source)
at
com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
mpanyHome.java:297)
at
com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
e.java:89)
at
com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
wn Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
Caught an exception.
java.rmi.RemoteException: SystemException: exid=UNKNOWN
at com.kivasoft.eb.EBExceptionUtility.idToSystem(Unknown Source)
at com.kivasoft.ebfp.FPUtility.replyToException(Unknown Source)
at
com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
mpanyHome.java:324)
at
com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
e.java:89)
at
com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
wn Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
Thanks in advance
Shravan
[Attachment iplanet_app.jar, see below]
[Attachment iplanet_src.jar, see below]One reason that I sometimes get 'NoSuchMethodError' is when I make a change to a
java class that is imported into another java class. When I go to run the
importing class, it will throw a 'NoSuchMethodError' on any methods that I've
changed in the imported class. The solution is to recompile the importing class
with the changed classes in the classpath.
shravan wrote:
Hi,
I am facing this problem, Please help me, I am attaching the source files
also along with the mail. This is a small CMP EJB application, I am using
IAS SP2 on NT server with Oracle 8. I highly appreciate if someone can send
me the working copy of the same. I need these urgent. I am porting all my
beans from bea weblogic to Iplanet. Please help me dudes.
Err.........
[06/Sep/2001 13:41:29:7] error: EBFP-marshal_internal: internal exception
caught
in kcp skeleton, exception = java.lang.NoSuchMethodError
[06/Sep/2001 13:41:29:7] error: Exception Stack Trace:
java.lang.NoSuchMethodError
at
com.se.sales.customer.ejb_kcp_skel_CompanyHome.create__com_se_sales_c
ustomer_Company__java_lang_Integer__indir_wstr__215617959(ejb_kcp_skel_Compa
nyHo
me.java:205)
at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
at com.kivasoft.ebfp.FPRequest.invoke(Unknown Source)
at
com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
mpanyHome.java:297)
at
com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
e.java:89)
at
com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
wn Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
Caught an exception.
java.rmi.RemoteException: SystemException: exid=UNKNOWN
at com.kivasoft.eb.EBExceptionUtility.idToSystem(Unknown Source)
at com.kivasoft.ebfp.FPUtility.replyToException(Unknown Source)
at
com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
mpanyHome.java:324)
at
com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
e.java:89)
at
com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
wn Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
Thanks in advance
Shravan
Name: iplanet_app.jar
iplanet_app.jar Type: Java Archive (application/java-archive)
Encoding: x-uuencode
Name: iplanet_src.jar
iplanet_src.jar Type: Java Archive (application/java-archive)
Encoding: x-uuencode -
Hi everyone,
I have an CMP bean which has findByName(String). During deployment of the ejb
I tell the bean use the WLQL such as
(like string%), but I would like to pass the name when the user enter in the text
box of the .html page then the user click on search, the servlet is called and
process using ejb technique. If I specified (like Fre%) in the ejb despcriptor
for one particular case( such as looking for all Fred's), it will not work for
the user enters smith.
for example: user enter: Fre in the text box.
I would like to have the bean do the query for me like:
--> select * from user where lastName like Fre%
If I cannot tell in the CDATA field, does that mean I have to use BMP to write
query that takes the name.
Please help,
Thanks in advance.Thanks Jim,
I did exactly like in the example (like Name $0) Name is my cmp field, but this
time it always returns one entity (same entity )regardless what I entered to search
by name. So that means it did not take the parameter that defined in <find-param>
of the weblogic-cmp-rdbm-jar.xml. Do you have any suggestion or idea to overcome
this problem.
Thanks Jim,
Tom
Jim Weaver <[email protected]> wrote:
>
Tom
You can use like with a String parameter in WLQL. There is an example
in our
documentation at
http://www.weblogic.com/docs51/classdocs/API_ejb/EJB_environment.html#1022700
Thanks
Jim
Tom wrote:
Hi everyone,
I have an CMP bean which has findByName(String). During deploymentof the ejb
I tell the bean use the WLQL such as
(like string%), but I would like to pass the name when the user enterin the text
box of the .html page then the user click on search, the servlet iscalled and
process using ejb technique. If I specified (like Fre%) in the ejbdespcriptor
for one particular case( such as looking for all Fred's), it will notwork for
the user enters smith.
for example: user enter: Fre in the text box.
I would like to have the bean do the query for me like:
--> select * from user where lastName like Fre%
If I cannot tell in the CDATA field, does that mean I have to use BMPto write
query that takes the name.
Please help,
Thanks in advance.Content-Description: Card for Jim Weaver
begin:vcard
n:Weaver;Jim
x-mozilla-html:FALSE
org:BEA Systems Inc.
adr:;;.;;;;
version:2.1
email;internet:[email protected]
title:Developer Relations Engineer
fn:Jim Weaver
end:vcard -
PLS HELP ! WLS 6.1 CMP ejb query ORDERBY clause
Please Help,
How to do OrderBY clause ASC and DESC in weblogic 6.1 CMP?
ThanksHi Deepak,
First of all, thanks for answering.
Do you mean I should place that query within "weblogic-query" tag in the weblogic-cmp-rdbms-jar.xml?
I tried comment the query part in ejb-jar.xml with the ammended weblogic-cmp-rdbms-jar.xml.
The ejb compiler fail to compile the ejb because it cannot find the coresponse
Method.
Can you state a simple example this case with descriptors?, the descriptor make
me headache. Thanks
Deepak Vohra <[email protected]> wrote:
The WebLogic Query Language extension, ORDERBY, is a keyword that works
with the Finder method to allow you to specify which CMP file you want
to use for your selections.
The following example shows the use of the extension, ORDERBY.
SELECT A from A for Account.Bean
ORDERBY A.id ASC | DESC
ASC | DESC
Specify whether the ordering sequence is ascending or descending. ASC
is the default.
Ray wrote:
Please Help,
How to do OrderBY clause ASC and DESC in weblogic 6.1 CMP?
Thanks -
Hi,
I have downloaded the example 'banking.zip' and have installed it.
I have followed all given steps in the tutorial, but I am unable to
see the login page.
I am also not able to see the ejb and web application descriptor file
from the admin console.
I have copied the banking directory to
'$WEBLOGIC\config\mydomain\applications'.
There are 3 directories under it
(1) ejb (containing meta-inf and examples directory. Meta-info
contains the descriptor .xml files)
(2) web (containing web-inf and html,jsp and image files. Web-inf
contains weblogic.xml and web.xml)
(3) Meta-Inf (containing the application.xml)
I get the 'Error 404--Not Found' error when I go to
http://localhost:8001/banking/login.html. (my server is running on
8001 port, i hope this doesn't matter)
When I try to edit the web application descriptor I get the following
error
java.lang.NullPointerException
at weblogic.management.console.utils.MBeans.getMBeanClassFor(MBeans.java:860)
at weblogic.management.console.actions.internal.ActionUtils.getAreaFor(ActionUtils.java:142)
at weblogic.management.console.actions.mbean.MBeanDescriptorFramesetAction.perform(MBeanDescriptorFramesetAction.java:133)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:167)
at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Could someone please help me ? I am trying to deploy this in the
exploded form. My server is running in the development mode.
- Thanks in advance,
SonaliHi,
I was able to successfully deploy after installing
weblogic 6.1 SP2 (earlier I had SP1). Also, I had to make
changes in the BankAppServlet code since it tries to find the
bean with a different name than one specified in jndi-name.
- Thanks,
Sonali
[email protected] (Sonali Kale) wrote in message news:<[email protected]>...
Hi,
I have downloaded the example 'banking.zip' and have installed it.
I have followed all given steps in the tutorial, but I am unable to
see the login page.
I am also not able to see the ejb and web application descriptor file
from the admin console.
I have copied the banking directory to
'$WEBLOGIC\config\mydomain\applications'.
There are 3 directories under it
(1) ejb (containing meta-inf and examples directory. Meta-info
contains the descriptor .xml files)
(2) web (containing web-inf and html,jsp and image files. Web-inf
contains weblogic.xml and web.xml)
(3) Meta-Inf (containing the application.xml)
I get the 'Error 404--Not Found' error when I go to
http://localhost:8001/banking/login.html. (my server is running on
8001 port, i hope this doesn't matter)
When I try to edit the web application descriptor I get the following
error
java.lang.NullPointerException
at weblogic.management.console.utils.MBeans.getMBeanClassFor(MBeans.java:860)
at weblogic.management.console.actions.internal.ActionUtils.getAreaFor(ActionUtils.java:142)
at weblogic.management.console.actions.mbean.MBeanDescriptorFramesetAction.perform(MBeanDescriptorFramesetAction.java:133)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:167)
at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Could someone please help me ? I am trying to deploy this in the
exploded form. My server is running in the development mode.
- Thanks in advance,
Sonali -
Hi
I am preparing for certification exam. I don't know the correct answer of these question. Please help me.
Regards
Arghya Banerjee
========================================================================
1. While testing a BMP Entity Bean, a developer discovers that a transaction rollback does not cause a rollback of the changes made to the bean as it should. Which of the following should the developer suspect?
A. The ejbPassivate() method has a bug.
B. The ejbStore() method has a bug.
C. The ejbCreate() method has a bug.
D. The datastore does not support JTA.
E. The transaction does not implement javax.transaction.UserTransaction.
Select 2 answers.
2. A Servlet must perform 3 operations that are independent of one another. They are time consuming with each operation consuming about 10 msec of CPU. The Servlet's response depends on the completion of all three operations. The developer decides to perform each operation on a separate worker thread to run them concurrently. Which of the following describe important parts of this implementation?
A. The Servlet should implement MultiThreadModel
B. The Servlet should implement SingleThreadModel
C. Access to the HttpSession must be synchronized.
D. The worker threads must not write to the ServletOutputStream.
E. The worker threads must not read from the ServletInputStream.
Select the best answer.
3. A client invokes the create() method on an CMP entity bean. Which of the following is a correct sequence in which the operations mentioned below are performed?
a. Container creates an EJBObject.
b. EJB home object invokes ejbCreate() on Bean instance
c. Bean instance is associated with EJBObject.
d. Container creates new bean instance.
e. Container calls setEntityContext() on bean instance.
f. Container creates the bean representation in a database.
g. ejbPostCreate() method is invoked on bean instance.
A. b -> f -> a -> c -> g
B. b -> a -> f -> c -> e -> g
C. a -> d -> c -> b -> e -> g -> f
D. a -> d -> c -> b -> f -> g -> e
E. a -> c -> e -> b -> f -> g
Select the best answer.
4. A Web site is getting a lot of 'hits' and the amount of session data managed by the server is becoming too large for it to handle. Which of the following are appropriate ways to solve the problem?
A. Expand the capacity of the server.
B. Add additional servers to share the load.
C. Store the session data in a Cookie.
D. Store all session data in hidden fields on the web pages that are served.
5. A developer wishes to make a server function available to an applet via a Servlet. The applet passes the Servlet a serialized object as an argument. How should the developer implement the Servlet?
A. Sub-class HttpServlet and create an ObjectInputStream from the
ServletInputStream in the doGet() method.
B. Sub-class HttpServlet and create an ObjectInputStream from the
ServletInputStream in the service() method.
C. Sub-class GenericServlet and create an ObjectInputStream from the
ServletInputStream in the doGet() method.
D. Sub-class GenericServlet and create an ObjectInputStream from the ServletInputStream in the service() method.
Select the best answer.
6. While testing a CMP Entity bean, a developer discovers that a change to one of the bean's properties is not being reflected in the database that contains the bean data. What are possible causes?
A. The ejbStore() method has a bug.
B. The ejbCreate() method has a bug.
C. The setter for the property has a bug.
D. The mapping of container managed fields to database fields has a bug.
E. The deployment descriptor has a bug.
F. The ejbLoad() method has a bug.
Select 4 answers.Hi Arghya ,
From where you have taken these quetions , are they from the book.
1. While testing a BMP Entity Bean, a developer
discovers that a transaction rollback does not cause a
rollback of the changes made to the bean as it should.
Which of the following should the developer suspect?
A. The ejbPassivate() method has a bug.
B. The ejbStore() method has a bug.
C. The ejbCreate() method has a bug.
D. The datastore does not support JTA.
E. The transaction does not implement
javax.transaction.UserTransaction.
Select 2 answers.
D,B If the Transaction is rolled back there are the possibility that either the datasource doesnot support it or the bean is updating the inconsistent data, so mostly problem in ejbStore() where there is a database update.
2. A Servlet must perform 3 operations that are
independent of one another. They are time consuming
with each operation consuming about 10 msec of CPU.
The Servlet's response depends on the completion of
all three operations. The developer decides to perform
each operation on a separate worker thread to run them
concurrently. Which of the following describe
important parts of this implementation?
A. The Servlet should implement MultiThreadModel
B. The Servlet should implement SingleThreadModel
C. Access to the HttpSession must be synchronized.
D. The worker threads must not write to the
ServletOutputStream.
E. The worker threads must not read from the
ServletInputStream.
Select the best answer.
Now here what is the worker Thread should not write to output stream as if it does then there will be wrong formatting of the data, we are bothered about to improve the throughput so we have spawned three worker thread.Also there is no dependency so D is proper one
3. A client invokes the create() method on an CMP
entity bean. Which of the following is a correct
sequence in which the operations mentioned below are
performed?
a. Container creates an EJBObject.
b. EJB home object invokes ejbCreate() on Bean
instance
c. Bean instance is associated with EJBObject.
d. Container creates new bean instance.
e. Container calls setEntityContext() on bean
instance.
f. Container creates the bean representation in a
database.
g. ejbPostCreate() method is invoked on bean
instance.
A. b -> f -> a -> c -> g
B. b -> a -> f -> c -> e -> g
C. a -> d -> c -> b -> e -> g -> f
D. a -> d -> c -> b -> f -> g -> e
E. a -> c -> e -> b -> f -> g
Select the best answer.
Client invokes the create method on the home which inturn prepares the EJBObject and attaches the bean instance to the EJBObject and returned the reference to the client.So the option E.
>
4. A Web site is getting a lot of 'hits' and the
amount of session data managed by the server is
becoming too large for it to handle. Which of the
following are appropriate ways to solve the problem?
A. Expand the capacity of the server.
B. Add additional servers to share the load.
C. Store the session data in a Cookie.
D. Store all session data in hidden fields on the web
pages that are served.
You have to use the Load balancing tech , go for distributed technology B , the processing speed is now the criteria so you distribute the work.
5. A developer wishes to make a server function
available to an applet via a Servlet. The applet
passes the Servlet a serialized object as an argument.
How should the developer implement the Servlet?
A. Sub-class HttpServlet and create an
ObjectInputStream from the
ServletInputStream in the doGet() method.
B. Sub-class HttpServlet and create an
ObjectInputStream from the
ServletInputStream in the service() method.
C. Sub-class GenericServlet and create an
ObjectInputStream from the
ServletInputStream in the doGet() method.
D. Sub-class GenericServlet and create an
ObjectInputStream from the ServletInputStream in the
service() method.
Select the best answer.
I have to refer some docs for this
6. While testing a CMP Entity bean, a developer
discovers that a change to one of the bean's
properties is not being reflected in the database that
contains the bean data. What are possible causes?
A. The ejbStore() method has a bug.
B. The ejbCreate() method has a bug.
C. The setter for the property has a bug.
D. The mapping of container managed fields to database
fields has a bug.
E. The deployment descriptor has a bug.
F. The ejbLoad() method has a bug.
Select 4 answers.
If there is the problem in the deployment descriptor then there ejb will not deploy at all .As the problem comes in updating I can make so no problem in the ejbCreate() also , but then many other consideration has to be taken .So I have my answer as
A,C,D,F
That is all I can say.
Regard
Vicky -
Weblogic Deployment Descriptor for CMP EJB
Hi all,
Am new to EJB, CMP. Pls help me how to write deployment descriptors for the CMP EJB for Weblogic.
Give me the list of the Deployment descriptors needed and also pls give me some samples
thanks in advance
rgds
Ravi BharathiThe easiest way is to go through some tutorial or refer the code samples. If you have installed weblogic, there are examples provided in the weblogic installation folder itself for each type of bean. Basically for cmp you have to provide the table names and mapping between the class variables to db fields in weblogic_cmp_rdbms.xml deployment descriptor.
-
Please help me about jdeveloper application deployment for weblogic
At the beginning I just thought after developing an adf application then just deploy it as a .ear file and deploy it in the weblogic console and everything will be ok.But in fact I got a lot of problems. Then I got a tutorial for that and I do what it said step by step but some new problems occured. This is the tutorial I mentioned: [How-To: ADF Deployment Guide|http://www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.htm]
Now could somebody tell how did you deploy your adf application?
Here is the errors I got.
This is the install packege and the OS I use:
1. CentOS 6.3_x64 + jdeveloper11123.jar(include wls10.3.5) + adr(package name is ofm_appdev_generic_11.1.1.6.0_disk1_1of1.zip)[and just now I used a solaris11 vm from oracle and install jdeveloper11.1.2.3, the same probem occured as in CentOS.]
2. Win7_x64 + jdeveoper11123.exe(include wls10.3.5) + adr mentioned above
Here is the problems I get:
in the case 1,after I install the jdeveloper(using sun jdk 1.7), the weblogic seems to be well though I didn't configure a domain.But after I open an
application(which I get from the oracle jdeveloper tutorial demo,which works well in my Win7 env) and I run it, the integrated weblogic can't get
started. Firstly in the console it said the -jrocket identifier is not recognized, then I modify the setDomainEnv.sh and the startWebLogic.sh file in the
integrated wls domain (the one in the .jdeveloper directer) to set the JAVA_VM variable to -server.After that another problem came out: when the
wls goes to status "starting",it is blocked and I turn to the system monitor it shows that a java thread using more than 1GB of memory of my system
and occupy 150% of my cpu(it's a double-core computer). I wait for about 5 minutes when a error came said "PermSize is too small".then I modify the
setDomainEnv.sh file again to set the PermSize to be 1024m and MaxPermSize to be 2048.(the variable name is something like that, maybe not the
exactly right. I think you can understand which one it is.) But the problem is still there.
then in the case 2.Firstly the jdev and the integrated wls works well, but when i deploy an application which works well to a ear file and deploy it to a
standalone wls(10.3.5) it never works.the error is something referrence/dependences libraries is not found.Then I tried to new a server connection to
the standalone wls and I got the tutorial [how_to_deploy_adf|http://www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html] , as the tutorial said I patch my standalone
wls with the adr and everything goes ok, no error reported.Then I tried the new server in the new machine under the manage of the adminserver and apply the
adf template in the localhost:port/em console. But after I restart the new server(by the console and then by the stop+startweblogic.bat file) the server is running
while the application in the new server is just "Unavailable". I tried this for three times in three computer, two of them are running win7,the other one is running winxp.
I don't know what is wrong and I am totally a newbie about this. Somebody please help me.Thanks a lot!
regard,Neo.Neo,
there are a couple of problems. First of all, jdev comes with it'S own jdk bundled in the product (jdk 1.6_x). Next thing is if you use JDev 11.1.2.3.0 to build an application you must use a wls 10.3.5 or 10.3.6 where you need to install the correct runtime onto. In your case you first install adf runtime 11.1.1.6.0 and then you need to install two patches which update the adf runtime to 11.1.2.3.0. These spathes are only available via support.oracle.com, meaning you need asupport contract to get them.
More information you can find in my blog http://tompeez.wordpress.com/2011/09/14/jdeveloper-versions-vs-weblogic-server-versions/
The rest of your problems go away once you have installed the right adf runtime on your server.
Timo -
Urgent Please help: Error Testing EJB in Universal Test Client
Hi,
I have to get this working by tommrow guys - can you please help.
I wonder if someone can assist. I am new to WSAD 5.1 and am trying to test an EJB I have created with both local and remote interfaces.
The bean has been created OK and ithe stub files have created for the bean via Generate->Deploy and RMIC code.
The RJB project has been defind in my WAS server correctly. The JNDI name in the EJB is \ejb\MyEJBHome
I start the Universal Test client (UTC) via the options on my WAS Server and then click on the JNDI explorer icon option and see my local EJB Folder and an ejb folder (plus others). If I go to the local EJB folder the stub for my local home inteface appears , I am able to click on it and consumme the bean.
However if I go to the ejb folder I see my home stub for the remote inteface , I do indded need to click on this to get at the remote inteface for my bean. However on clicking it I get a WAS error "null reference found".
It does not appear to be able to get at the MyBeanHome stub (no reference to it).
Ok what am I doing wrong! The project build with no errors and I can see all the stubs in the ejbModule folder. Now is the UTC expecting these stubs to be sitting in a particular directory? if so where?Hi Problem is with
public class MyEJBBean extends AbstractStatelessSessionBean {
private javax.ejb.SessionContext mySessionCtx;
extends AbstractStatelessSessionBean causes a problem in UTC.
Regards. -
Getting EJB spec violation error - please help
I'm getting following error while trying to deploy my stateless SB.
17:13:30,399 WARN [verifier] EJB spec violation:
Bean : UnifiedMsg
Method : public abstract UnifiedMsg create() throws CreateException, RemoteExcep
tion
Section: 7.10.6
Warning: The method return values in the home interface must be of valid types f
or RMI/IIOP.
17:13:30,399 ERROR [MainDeployer] could not create deployment: file:/C:/AddOnPkg
/jboss-3.2.5/server/all/deploy/webmail_ejb_session_umm.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
d, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:517)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:790)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:644)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
I've double check the section 7.10.6 requiremnts and do not find anything wrong. Stuck at this from many days,PLEASE HELP
SB home interface is as follow:
import java.util.*;
import javax.ejb.*;
import java.rmi.*;
public interface UnifiedMsgHome extends EJBHome {
public UnifiedMsg create() throws CreateException, RemoteException;Hai,
My dear friends, I am getting some problem. In my system only. mean. I am getting from the CVS and as our batch file i am deploying. I thing, this problem i am only getting in my team. By givein this error. i repleace the JBoss server from my backup softwares. Even it is giving same error. three of our team also check the bug, but not able to resolve. Let me know any external errors instemd of ejb method errors. because it is working in the other systems.
the bug details:
14:20:56,717 INFO [EARDeployer] Init J2EE application: file:/D:/jboss-4.0.2/server/default/deploy/matrix.ear
14:21:02,530 WARN [verifier] EJB spec violation:
Bean : AddressManagerSessionBean
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's busines
Info : Class not found on 'uk.ses.matrix.address.bean.AddressManagerSessionBean': Unexpected error during load of: uk.ses.matr
14:21:02,530 WARN [verifier] EJB spec violation:
Bean : ADMCustomerSessionBean
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's busines
Info : Class not found on 'uk.ses.matrix.address.bean.ADMCustomerSessionBean': Unexpected error during load of: uk.ses.matrix.
14:21:02,530 WARN [verifier] EJB spec violation:
Bean : ADMServicePointSessionBean
Section: 22.2
14:21:02,608 ERROR [MainDeployer] could not create deployment: file:/D:/jboss-4.0.2/server/default/tmp/deploy/tmp17389matrix.ear
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:553)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:910)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
please give suggestions to solve this. -
Apache - Weblogic plug-in - Segmentation fault. Please Help me!
Hi all,
Im trying to set up Apache weblogic plug-in, and im having problems with
that.
Im running Solaris 9 with Apache/1.3.26 (Unix) and Weblogic 7 with sp2.
Here is what i did:
I copied mod_wl_ssl.so from
/bea/weblogic700/server/lib/solaris/mod_wl_ssl.so to /usr/apache/libexec
Added entries in httpd.conf as
LoadModule weblogic_module /usr/apache/libexec/mod_wl_ssl.so
AddModule mod_weblogic.c
<LocationMatch "\.jsp$">
SetHandler weblogic-handler
StatPath false
</LocationMatch>
<LocationMatch "/(service1|service2|service3)/">
SetHandler weblogic-handler
StatPath false
</LocationMatch>
<IfModule mod_weblogic.c>
WebLogicHost 127.0.0.1
WebLogicPort 7001
HungServerRecoverSecs 300
ConnectTimeoutSecs 5
</IfModule>
When i access the url with out specifying port 7001 it's not working.
I checked the /var/apache/logs/error_log file. Im getting the error as
child pid 805 exit signal Segmentation Fault (11)
Am i missing anything here?
Thank you
RajaYou may want to check the certifications for Solaris 9 and the Apache plug-in at
http://e-docs.bea.com/wls/certifications/certifications/sun_solaris9.html#40366.
It looks like you will have to upgrade to at least Apache 2.0.39. We had to do
this on Solaris 8 as well.
"Raja Balasubramanian" <[email protected]> wrote:
Thank you Eric,
I will do that
Raja
"Eric Gross" <[email protected]> wrote in message
news:[email protected]...
I believe this is going to require more debugging such as attachinga
debugger(gdb) to Apache and getting a backtrace.
I suggest opening up a support case.
Regards,
Eric
"Raja Balasubramanian" <[email protected]> wrote in message
news:[email protected]...
Hi Eric,
Thank you for the replies.
I tried with the same test as you specified. Still im getting the
same
problem.
[Mon Mar 10 13:57:21 2003] [notice] child pid 1184 exit signal
Segmentation Fault (11)
Im running Solaris 9 in SPARC platform. It's a Sun E450 server.
Im using the default apache package which comes with Solaris 9. Ididn't
do
anything with apache.
Bea website says that Weblogic 7 sp2 is certified for Soalris 9.
That's
y
i
installed Solaris 9.
I tested the same on a Linux Machine (Redhat Linux 7.1 on IA). It
works
fine
without any problem.
How can i make things work?
Thank you for your kind replies
Raja
"Eric Gross" <[email protected]> wrote in message
news:[email protected]...
Looks like it should work.
Let's simplify your test:
<Location /test>
WebLogicHost 127.0.0.1
WebLogicPort 7001
Debug ALL
DebugConfigInfo ON
SetHandler weblogic-handler
</Location>
Try with just that.
Another thing is that I am unsure as to whether we have tested
with
Solaris
9. This is SPARC right? Also, can you outline the steps you took
when
building apache? Did you use GCC?
Thanks,
Eric
"Raja Balasubramanian" <[email protected]> wrote
in
message
news:[email protected]...
Hi,
Now i changed to mod_wl_ssl.so.
And i changed the httpd.conf as
LoadModule weblogic_module libexec/mod_wl_ssl.so
<IfModule mod_weblogic.c>
WebLogicHost 127.0.0.1
WebLogicPort 7001
Debug ALL
DebugConfigInfo ON
StatPath true
HungServerRecoverSecs 300
ConnectTimeoutSecs 5
</IfModule>
But im getting the same error. NO wlproxy.log file is created
in my
server.
I tried Debug ON also. Still the same.
Am i doing anything wrong?
Please help me...
Thank you
Raja
"Eric Gross" <[email protected]> wrote in message
news:[email protected]...
That means that your apache instance is compiled with -DEAPI
and
should
use
the mod_wl_ssl.so.
Can you please try to set Debug ALL and get the log in
/tmp/wlproxy.log
and
share that?
Thanks,
Eric
"Raja Balasubramanian" <[email protected]> wrote
in
message
news:[email protected]...
Hi Eric,
When im using mod_wl.so im getting warning from Apache as
[Mon Mar 10 12:41:15 2003] [warn] Loaded DSO
libexec/mod_wl.so
uses
plain Apache 1.3 API, this module might crash under
EAPI!
(please
recompile it with -DEAPI)
Thank you
Raja
"Eric Gross" <[email protected]> wrote in message
news:[email protected]...
Are you using modssl or any apache with EAPI compiled in?
Otherwise, you should be using the mod_wl.so.
As well, please set Debug ALL to see if we can get more
debug.
Thanks,
Eric
"Raja Balasubramanian" <[email protected]>
wrote
in
message
news:[email protected]...
Hi all,
Im trying to set up Apache weblogic plug-in, and im having
problems
with
that.
Im running Solaris 9 with Apache/1.3.26 (Unix) and Weblogic
7
with
sp2.
Here is what i did:
I copied mod_wl_ssl.so from
/bea/weblogic700/server/lib/solaris/mod_wl_ssl.so to/usr/apache/libexec
Added entries in httpd.conf as
LoadModule weblogic_module/usr/apache/libexec/mod_wl_ssl.so
AddModule mod_weblogic.c
<LocationMatch "\.jsp$">
SetHandler weblogic-handler
StatPath false
</LocationMatch>
<LocationMatch "/(service1|service2|service3)/">
SetHandler weblogic-handler
StatPath false
</LocationMatch>
<IfModule mod_weblogic.c>
WebLogicHost 127.0.0.1
WebLogicPort 7001
HungServerRecoverSecs 300
ConnectTimeoutSecs 5
</IfModule>
When i access the url with out specifying port 7001 it's
not
working.
I checked the /var/apache/logs/error_log file. Im getting
the
error
as
child pid 805 exit signal Segmentation Fault
(11)
Am i missing anything here?
Thank you
Raja -
Hi ...
i'm facing a problem while uploading any applciation into weblogic server..
this is the error it gives
<Jul 26, 2006 11:48:39 AM MDT> <Error> <J2EE Deployment SPI> <BEA-260101> <Parameter may not be null.
java.lang.NullPointerException at weblogic.deploy.api.internal.utils.ConfigHelper.checkParam(ConfigHelper.java:126) at weblogic.deploy.api.model.WebLogicDeployableObject.getEntry(WebLogicDeployableObject.java:434) at weblogic.deploy.api.model.WebLogicDeployableObject.getDDStream(WebLogicDeployableObject.java:256) at weblogic.deploy.api.model.WebLogicDeployableObject.setupDDBeanRoot(WebLogicDeployableObject.java:209) at weblogic.deploy.api.model.WebLogicDeployableObject.getDDBeanRootInternal(WebLogicDeployableObject.java:202)
Truncated. see log file for complete stacktrace
I'm not sure how to fix this.. please help.. its urgent..
Thanks in advance..We discovered that BEA uses a directory named "autodeploy". By dropping our Jackrabbit 1.1 RAR file (resource adapter), BEA would auto-deploy it. No need to deal with the buggy WebLogic Admin console.
Needed to add the weblogic-ra.xml file to the META-INF directory, and set it up properly. Re-jar it all up as a .rar file, then copy it to the autodeploy directory. The other step is to make sure that the target repository directory exists (I pre-created [bea_home]/jackrabbit/ directory), and that the repository.xml file is already there before you deploy your .rar. Then start up the sample portal server, and the rar file will deploy as a resource adapter. To see it, go into the main server console, click on Deployments > Monitoring > Resource Adapters > Outbound Connection Pools. Jackrabbit should show up there.
This was the directory in which we dropped our RAR for testing:
[bea_home]/weblogic92/samples/domains/portal/autodeploy
Start the sample portal server at:
Windows
[bea_home]/weblogic92/samples/domains/portal/bin/startWebLogic.cmd
UNIX
[bea_home]/weblogic92/samples/domains/portal/bin/startWebLogic.sh
NOTE: This didn't end our headaches. Now we're dealing with Jackrabbit creating connections and never releasing them. Hundreds and hundreds of connections, until it runs out of its connection pool. Hideous. But that's a problem for another thread.
Message was edited by:
LanceZechinato
Maybe you are looking for
-
Anyway to put data folder into dvd project
Hey, so I am trying to make a short video for my friend using a bunch of pictures from her birthday, I burned the short movie and it works fine, though i am curious if there is a way to add all the .jpg files onto the disc after burning it in DVD SP.
-
HI Gentlemen, I have a 9i database on my XP-PC, 9iDS, 10gASFrs and a 9i forms application with Webutil Production version installed. OC4J instance was started from the DS submenu manually. When I start http://<mypc>:7777/forms90/f90servlet/comfig=myc
-
Hi, I have a requirement to identify the mobile device from its specific identification number. I have studied the differences between MIN, MDN, IMEI etc. Is that possible to get the identification number in j2me core. Any ideas ? rizzz86
-
Getting something out of the firewall list
I installed Adobe cs3 and then uninstalled it and now I have Adobe Version Cue CS3 Server in my firewall list right under Personal File Sharing. Is there any way to get it gone seeing as I don't use it or want it?
-
I got new I Pod 2. Two days was working perfect. At the one moment it was off. Now I cant make it on. Its dead. Can you help me?