Help! JBuilder With Weblogic
Hey folks,
I have this problem, Im creating a CMP entity bean, I'm using JBuilder7.0 to build my beans which is integrated with Weblogic6.1 AppServer. I want to set a data base conenction for my CMP entity bean, Im using weblogic's plugins to JBuilder for this purpose.
I have a SQL server databse, I already have defined my DSN, I created a JNDI for my DSN in the "JDBC 1 Datasources" in the project pane in JBuilder, and filled the fields for my Database URL as well as the driver class name, then I "Test Connect" and Connection succeeded.
I set the "Data source name" filed in the "Weblogic 6.x+ General" pane to my DSN, now when I go to "CMP 1.1" pane and set my table there then try to "Get Metadata" I get nothing! I wonder if I missed some configuration steps!
I would appricate if anyone would give a solution, also I need some Docs, which comprehensively explaines about the weblogic's plugins with JBuilder
Thak you Guys!
Yeah! I came to know that I have to set a reference for my JNDI database connection in the "Resource References" panel for my bean properties.
Now I can see some action, when I "Get Metadata" it tests the connection and its succeeded, then it says its getting the metadata, but it does not return!
Similar Messages
-
Help needed with weblogic portal and documentum.
hi guys,
i have a project in which i have to use documentum with site caching services with weblogic portal 8.1. the html and xml pages will be stored in documentum and the metadata in oracle 8i and xslt will be used for transformation.
Does anybody have any clue what api or things to use for this thing.
any help , tutorial, links pointing to the solution will be helpful
thanks in advance
rajatOk, so it looks like I only need to call a startapplicaiton after the distribute to make this work.
-
JBuilder 8 + Weblogic 7 : Any "getting started" docs?
Hi.
I am getting started with JBuilder 8 and I am using it with Weblogic 7 (sp1).
I "connected" the two togther based on a one pager that I saw on BEA's site. Are
there more extensive docs that describe the ntegrtation of JBuilder with Weblogic.
Specifically,:
i) Is there a "Getting Started" doc that desribes to a JBuilder newbie how to
deploy to Weblogic?
ii) Is there a doc that explains when I use JBuilder vis a vis Workshop?
Thanks in advance,
- deepak
Google.
http://www.bea.com/products/weblogic/jbuilder/index.shtml
http://community.borland.com/article/0,1410,29528,00.html
http://community.borland.com/article/0,1410,29350,00.html
mbg
"Deepak" <[email protected]> wrote:
>
>Hi.
>
>I am getting started with JBuilder 8 and I am using it with Weblogic
>7 (sp1).
>I "connected" the two togther based on a one pager that I saw on BEA's
>site. Are
>there more extensive docs that describe the ntegrtation of JBuilder with
>Weblogic.
>Specifically,:
>
>i) Is there a "Getting Started" doc that desribes to a JBuilder newbie
>how to
>deploy to Weblogic?
>ii) Is there a doc that explains when I use JBuilder vis a vis Workshop?
>
>Thanks in advance,
>- deepak
-
Deploy web application in jbuilder 9 with weblogic 7 problem
when i create a web application and a servlet, and deploy it in jbuilder 9 with weblogic 7.0 ,jbuilder 9 showed me the error,please tell me why, when i choose "redeploy" ,it can be normally work..
E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -deploy -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
WebLogic Application Deployment Utility
Usage: java weblogic.Deployer [options] [-activate|-deactivate|-remove|-unprepare|-cancel|-list] [files]
where options include:
-help Print this help message.
-version Print version information.
-adminurl <https://<server>:<port>> The URL of the administration server: default
http://localhost:7001
-user <user> A user other than the default of
"installadministrator"
-password <password> Specifies the password on the command line.
If this option is absent the user is
prompted.
-verbose Displays additional status during the
deployment process, including notifications
when the application is prepared and
activated on each target.
-debug Displays debug level messages to the standard
output.
-examples Display example usage of this tool.
-upload Causes the specified source file(s) to be
transferred to the adminstration server. This
is used when the Deployer tools is not being
used on the same machine as the adminstration
server and the user does not otherwise have
access to place the targeted files on the
adminstration server.
-delete_files Causes the server to remove the files that
are specified in the file list and leave the
application activated. This option is valid
only for unarchived web applications.
-remote Signals that the tools is not runnning on the
same machine as the adminstration server and
that the source path should be made passed
through unchanged as it represents the path
on the remote server.
-nostage Sets the stagingMethod attribute on the
application mbean when it is created so that
the application will not be staged and the
original source is be used.
-external_stage Sets the stagingMethod attribute on the
application mbean when it is created so that
the application will not be staged but the
value of the staging path will be used when
preparing the application.
-stage Sets the stagingMethod staging attribute on
the application when it is created so that
the application will always be staged. This
value will override the stagingMethod
attribute on any targeted servers.
-nowait Once the action is initiated the tool will
print the task id and exit. This is used to
initiate multiple tasks and then monitor them
later using the -list action.
-timeout <seconds> The maximum time in seconds to wait for the
completion of the deployment task. When the
time expires the current status is printed
and the program exits.
-source <archive file or directory> Location of the file or directory that
represents the enterprise component or
application tha is being (re)activated. If
the source file is relative it is relative to
the current directory, unless the -remote
option is used. To specify individual files
within an application for reployment or
addition list them at the end of the command
line.
-name <application name> The name of the application being deployed.
-targets <<server 1>,...<component>@<server N>> A comma separated list of the server and/or
cluster names. Each target may be qualified
with a J2EE component name. This enables
different components of the archive to
deployed on different servers.
-id <task identifier> Optional client supplied unique identifier
for the deployment task. The id is first
specified to -activate, -deactivate,
-unprepare or -remove. It is then used later
as an argument to -cancel or -list.
-activate (Re)activates the <source> application on the
<targets> with the <name>.
-deactivate Deactivates the application <name> on the
<targets> leaving an staged application files
in a state where the may be quickly
reactivated.
-unprepare Deactivates and unloads classes for the
application <name> on the <targets> leaving
an staged application files in a state where
the may be quickly reloaded.
-remove Deactivates the application <name> on the
<target> and removes any files that were
staged for this application. If there are no
longer any targets for the application, the
associated configuration is completely
removed.
-cancel Atempts to cancel the task <id> if it is has
not yet completed.
-list Lists the target status of each task <id>
-deploy a convenient alias for activate.
-undeploy a convenient alias for unprepare.
Optionally a list of the specific files in the archive that are to be
redeployed may be specified. If a directory is specified the entire subtree is
redeployed.
Full documentation on this tool is available at:
http://edocs.beasys.com/wls/docs70/adminguide/utils.html#1138475
No actions was specified. Please specify one and only one of:
-activate, -deactivate, -cancel, -remove, -unprepare, or -list.
Type java weblogic.Deployer -examples for example usage.you use "deploy" under DOS-Mode to deploy your web application?
i found some differences between "deploy" and "redeploy" function in jbuilder 9.
when i choose "deploy" ,jbuilder shows me the commond below:
E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -deploy -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
WebLogic Application Deployment Utility
when i choose redeploy,it shows me: (the -deploy parameter has changed to -activate) ,maybe it's a bug.
E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -activate -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
WebLogic Application Deployment Utility -
Need a help to create ejb application in netbeans with weblogic 9.2
Hi guys,
I am new to EJB..can anyone guide me to create a EJB application in netbeans 5.5 with weblogic server 9.2 ..
thank u in advance..Hi guys,
If there is no one to help me with this so simple project then I will have to quit trying. I am getting to much pressure to get this done and I just don't know how to proceed anymore. I have found a document on OTN that explain the basics of binding but it's to vast and too complicated under pressure. If someone could help me to bind this LOV I would appreciate this so much and then I could relax a little and read all the good documents that I have found on OTN.
This is my last chance.
Thank you! -
Problem with weblogic server help me...!
HI,
i have developed and application that was deployed successfully in Tomcat 5.0, but it was not with weblogic 8...
plz help me... thanks in advance..In this case, I would call the OP up from asking a stupid question, with no details at all, rather than Soultech for responding to it in humorous manner.
Hence why I included that link to "How to ask smart questions"
"It doesn't work on Weblogic" will not get any helpful responses
WHAT doesn't work?
Is there an error message?
What have you tried?
The onus is on the OP to post a clear and concise description of his problem, along with error messages/stack traces, anything else that may help diagnose the issue.
I believe Soultechs post was justified, if a little short. -
Need help: how to implement sun niagara encryption chip with weblogic
Hi all, I have a issue with SSL performance on top of T2000 server, thats why I try to use encryption chip provided by SUN T1 technology, but I couldnt find the implementation document for this technology with weblogic server.
Im using weblogic 9.2MP3 with sun solaris 10. I really appreciate if any body can help me with this problem.
Thanks,Hello,
How are you obtaining the EntityManager and EntityManagerFactory? If it is injection, you should verify that the second transaction scope gets its own EM/EMF injected rather than being passed the one from the first one.
Best Regards,
Chris -
hello friends,
i have come from perl/cgi side of web applications and new to weblogic,theorotically familiar with java and jsp. now i have task on working with weblogic portal server 8.1. i need help on where to start and some kind of direction and all the advantages and disadvantages in this new field of mine. I am basically a novice and any kind of information would be greatly usefull. i have weblogic workshop installed.
Thanks in advance
--CHi Chaitanya,
you can find more information on portal at
http://e-docs.bea.com/wlp/docs81/index.html
Regards,
Prasanna Yalam -
Help Required with 2pc Commit (Inet Opta Xa Driver for MSSQL 2000 on Weblogic 6)
Hi,
I was trying to use the "Inet Opta" Xa driver for MSSQL 2000 with
weblogic 6.0.
I get the following Exception when i try to get a database connection
from a "Xa" Pool, in a transaction. The Pool did start up Correctly. Also,
i have given SupportsLocalTransaction="true" in the pool declaration. And
if i give EnableTwoPhaseCommit="true" in the Tx Datasource declaration,
weblogic starts up, but without starting the connection pools. (also it does
not deploy my ejbs in this case!).
Could somebody help?
Atleast, could somebody tell me when BEA is going to finish implementing
an Xa Driver for MSSQL?
Thanks,
Sajan Thomas.
javax.transaction.xa.XAException
at com.inet.tds.i.a(Unknown Source)
at com.inet.tds.i.a(Unknown Source)
at com.inet.tds.i.prepare(Unknown Source)
at weblogic.jdbc.jta.DataSource.prepare(DataSource.java:473)
at
weblogic.transaction.internal.ServerResourceInfo.prepare(ServerResourceInfo.
java:1055)
at
weblogic.transaction.internal.ServerResourceInfo.prepare(ServerResourceInfo.
java:344)
at
weblogic.transaction.internal.ServerSCInfo.startPrepare(ServerSCInfo.java:14
9)
at
weblogic.transaction.internal.ServerTransactionImpl.localPrepare(ServerTrans
actionImpl.java:1478)
at
weblogic.transaction.internal.ServerTransactionImpl.globalPrepare(ServerTran
sactionImpl.java:1304)
at
weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransaction
Impl.java:160)
at
weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManag
erImpl.java:208)
at
weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManag
erImpl.java:201)
at
com.harris.server.list.ListModuleBean.licenseRecords(ListModuleBean.java:182
at
com.harris.server.list.ListModuleBeanImpl.licenseRecords(ListModuleBeanImpl.
java:130)
at
com.harris.server.list.ListModuleBeanEOImpl.licenseRecords(ListModuleBeanEOI
mpl.java:66)
at
com.harris.server.list.ListModuleBeanEOImpl_WLSkel.invoke(ListModuleBeanEOIm
pl_WLSkel.java:112)
at
weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:128)
at
weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
at
weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
java:103)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
7)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.transaction.RollbackException: Could not prepare resource
'entityPool - with nested exception:
[javax.transaction.xa.XAException]
at
weblogic.transaction.internal.TransactionImpl.throwRollbackException(Transac
tionImpl.java:1248)
at
weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransaction
Impl.java:208)
at
weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManag
erImpl.java:208)
at
weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManag
erImpl.java:201)
at
com.harris.server.list.ListModuleBean.licenseRecords(ListModuleBean.java:182
at
com.harris.server.list.ListModuleBeanImpl.licenseRecords(ListModuleBeanImpl.
java:130)
at
com.harris.server.list.ListModuleBeanEOImpl.licenseRecords(ListModuleBeanEOI
mpl.java:66)
at
com.harris.server.list.ListModuleBeanEOImpl_WLSkel.invoke(ListModuleBeanEOIm
pl_WLSkel.java:112)
at
weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:128)
at
weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
at
weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
java:103)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
7)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Hi Sajan,
Certification for MS SQLServer as a XA resource is in our plan for the near future,
so hopefully we will soon find out if there are vendor bugs and also see if we can
provide corresponding workarounds.
Meanwhile, could you start the server with -Dweblogic.Debug=weblogic.JTAXA,weblogic.JTAJDBC
and post the server log file?
-- Priscilla Fung, BEA Systems, Inc.
"sajan" <[email protected]> wrote:
>Hi,
>
> I was trying to use the "Inet Opta" Xa driver for MSSQL 2000 with
>weblogic 6.0.
> I get the following Exception when i try to get a database connection
>from a "Xa" Pool, in a transaction. The Pool did start up Correctly. Also,
>i have given SupportsLocalTransaction="true" in the pool declaration.
>And
>if i give EnableTwoPhaseCommit="true" in the Tx Datasource declaration,
>weblogic starts up, but without starting the connection pools. (also it
>does
>not deploy my ejbs in this case!).
>
> Could somebody help?
>
> Atleast, could somebody tell me when BEA is going to finish implementing
>an Xa Driver for MSSQL?
>
>
>Thanks,
>Sajan Thomas.
>
>
>
>___________________________________________________________
>javax.transaction.xa.XAException
> at com.inet.tds.i.a(Unknown Source)
> at com.inet.tds.i.a(Unknown Source)
> at com.inet.tds.i.prepare(Unknown Source)
> at weblogic.jdbc.jta.DataSource.prepare(DataSource.java:473)
> at
>weblogic.transaction.internal.ServerResourceInfo.prepare(ServerResourceInfo.
>java:1055)
> at
>weblogic.transaction.internal.ServerResourceInfo.prepare(ServerResourceInfo.
>java:344)
> at
>weblogic.transaction.internal.ServerSCInfo.startPrepare(ServerSCInfo.java:14
>9)
> at
>weblogic.transaction.internal.ServerTransactionImpl.localPrepare(ServerTrans
>actionImpl.java:1478)
> at
>weblogic.transaction.internal.ServerTransactionImpl.globalPrepare(ServerTran
>sactionImpl.java:1304)
> at
>weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransaction
>Impl.java:160)
> at
>weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManag
>erImpl.java:208)
> at
>weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManag
>erImpl.java:201)
> at
>com.harris.server.list.ListModuleBean.licenseRecords(ListModuleBean.java:182
>)
> at
>com.harris.server.list.ListModuleBeanImpl.licenseRecords(ListModuleBeanImpl.
>java:130)
> at
>com.harris.server.list.ListModuleBeanEOImpl.licenseRecords(ListModuleBeanEOI
>mpl.java:66)
> at
>com.harris.server.list.ListModuleBeanEOImpl_WLSkel.invoke(ListModuleBeanEOIm
>pl_WLSkel.java:112)
> at
>weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
> at
>weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
>:128)
> at
>weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
> at
>weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
>java:103)
> at
>weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
>7)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>--------------- nested within: ------------------
>weblogic.transaction.RollbackException: Could not prepare resource
>'entityPool - with nested exception:
>[javax.transaction.xa.XAException]
> at
>weblogic.transaction.internal.TransactionImpl.throwRollbackException(Transac
>tionImpl.java:1248)
> at
>weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransaction
>Impl.java:208)
> at
>weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManag
>erImpl.java:208)
> at
>weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManag
>erImpl.java:201)
> at
>com.harris.server.list.ListModuleBean.licenseRecords(ListModuleBean.java:182
>)
> at
>com.harris.server.list.ListModuleBeanImpl.licenseRecords(ListModuleBeanImpl.
>java:130)
> at
>com.harris.server.list.ListModuleBeanEOImpl.licenseRecords(ListModuleBeanEOI
>mpl.java:66)
> at
>com.harris.server.list.ListModuleBeanEOImpl_WLSkel.invoke(ListModuleBeanEOIm
>pl_WLSkel.java:112)
> at
>weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
> at
>weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
>:128)
> at
>weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
> at
>weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
>java:103)
> at
>weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
>7)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
>
-
Help: which LDAP server should I use with weblogic 5.1
Hi:
I try to use LDAP for user profile management. I am free to use any LDAP
server as long as it is easy to work with weblogic 5.1 or 6.0.
Any suggestions?
Thank you.
liThis is what I did for my DS settings
1. select Oracle JDBC Driver
2. set Classes12.jar in Websphre classpath - (Oracle thin driver)
3. create DS with option User defined JDBC provider
means I have added Thin driver provided by Oracle , instead of deprecated Thin driver from IBM. -
JBuilder 8 WebLogic Edition eval requires license key
I have installed JBuilder 8 WebLogic Edition eval, but it requires a license key
to use it. The install and readme docs have no information on how to satisfy
this. Please help.On 12 Jan 2003 10:22:26 -0800, "Brian Welnack"
<[email protected]> wrote:
>
I have installed JBuilder 8 WebLogic Edition eval, but it requires a license key
to use it. The install and readme docs have no information on how to satisfy
this. Please help.Just an FYI - the only real difference between the JBuilder 8 WebLogic
edition and the Enterprise edition is the WebLogic edition comes with
a WLS 7 developer license. If you already have that, then I would
recommend simply getting the JBuilder 8 Enterprise Edition.
Another different: JB8-WL Edition will only deploy and debug to
Weblogic. There's no support for other web servers like Tomcat, for
example. Now, that's fine if you are specifically developing for
WebLogic, but you should still keep that in mind.
hth -
EJB 3.0 MDB deployment issue with weblogic 10.0
Hi there,
I am new to MDB EJB and right now I am using the EJB 3.0 with weblogic server 10.0. I am using Eclipse 3.4 for development.
After developing the MDB from eclipse I export the EAR from eclipse and deploy it in weblogic. When I try to start the deployed EAR it gives me following error.
weblogic.application.ModuleException: Exception preparing module: EJBModule(Message.jar)
Unable to deploy EJB: MessageBean from Message.jar:
[EJB:011113]Error: The Message Driven Bean 'MessageBean(Application: MessageEAR, EJBComponent: Message.jar)', does not have a message destination configured. The message destination must be set using a message-destination-link, destination-resource-link, destination-jndi-name or a resource-adapter-jndi-name.
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:399)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
Truncated. see log file for complete stacktrace
[EJB:011113]Error: The Message Driven Bean 'MessageBean(Application: MessageEAR, EJBComponent: Message.jar)', does not have a message destination configured. The message destination must be set using a message-destination-link, destination-resource-link, destination-jndi-name or a resource-adapter-jndi-name.
at weblogic.ejb.container.deployer.MessageDrivenBeanInfoImpl.ensureMDBHasDestinationConfigured(MessageDrivenBeanInfoImpl.java:1811)
at weblogic.ejb.container.deployer.MessageDrivenBeanInfoImpl.prepare(MessageDrivenBeanInfoImpl.java:1011)
at weblogic.ejb.container.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:997)
at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1273)
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:372)
Truncated. see log file for complete stacktrace
>
Any help really appreciated. It's too urgent.
Thanks in advance,
Piyushhere is the code for my bean.
package com.ups;
import java.util.logging.Logger;
import javax.ejb.ActivationConfigProperty;
import javax.ejb.EJBException;
import javax.ejb.MessageDriven;
import javax.ejb.MessageDrivenContext;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;
* Message-Driven Bean implementation class for: MessageBean
@MessageDriven(
activationConfig = { @ActivationConfigProperty(
propertyName = "destinationType", propertyValue = "javax.jms.Queue"
public class MessageBean implements MessageListener {
private MessageDrivenContext mdc;
* Default constructor.
public MessageBean() {
// TODO Auto-generated constructor stub
* @see MessageListener#onMessage(Message)
public void onMessage(Message message) {
TextMessage tmsg = null;
try {
tmsg = (TextMessage) message;
System.out.println("MESSAGE BEAN: Message received: " + tmsg.getText( ));
System.out.println ("The onMessage() is called");
} catch (JMSException e) {
e.printStackTrace( );
mdc.setRollbackOnly( );
catch (Throwable th) {
th.printStackTrace();
public void ejbRemove( )throws EJBException{
System.out.println("ejbRemove() is executed >>>>>>>");
I have configured my JMS Distributed queue in the Weblogic.
If possible please provide more details so that I can get rid of this error as soon as possible.
Thanks for reply.
Piyush -
Error while deploying application with WebLogic server
Hi,
I use Jdeveloper 11g and created and ADF application which i want to deploy with WebLogic Server.But i have an error which is :
"There was a failure when processing annotations for application C:\...\xxx.war. Please make sure that the annotations are valid. The error is oracle.adf.library.webapp.ResourceServlet "
Plz help me.
ThxI am receiving same message for simple servlet. Running JDev11g build 5166 and embedded WLS 10.3. Servlet used to deploy to embedded WLS and ran fine. Recently running newly created servlets produces error message as in this thread.
Investigation turned up the fact that the class file for the servlet was not deployed to the context-root (o.j2ee\drs) on the server. Copying the class file from the mywork project folder to the context-root folder (o.j2ee\drs) permitted the servlet to run.
Don't know if this is the cause of what you are experiencing but it may assist in your investigation! I have not figured out why the class file for servlets does not deploy to server despite the fact that the log file shows war and ear files were deployed. As it turns out, the war file does not have the class file in it so something is wrong before the war file is created.
Cheers! -
Error while using TXDataSource with Weblogic 6.1 & Oracle 8.1.6
Hi,
I am using Weblogic 6.1 and Oracle 8.1.6.
I have configured JDBC XA Connection Pool with Oracle thin driver. These are my settings...
Connection Pool:
Name - myXAPool
URL - jdbc:oracle:thin:@myServer:1521:myDb
DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
TXDataSource:
Name - myXADS
JNDIName - myXADS
PoolName - myXAPool
I get the following error when I try to lookup the datasource. I am not sure where the problem is as I have configured Connection Pool and TXDataSource as mentioned in the documentation.
java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured in the transaction branch start() failed on resource 'myXAPool' Unexpected error during start for XAResource 'myXAPool': null
It would be really great if you can help me out.
Thanks in Advance,
Sudhir.Hi Sudhir,
If you do not know if upgrade or not, have a look here :
http://e-docs.bea.com/wls/docs61/notes/bugfixes2.html
Note that at the end of June SP3 will be released...
Sergi
"Sudhir Babu" <[email protected]> wrote:
>
Hi Sergi,
Thanks a lot for the class file, I figured out what the problem was. Actually
the
database version I was working with was 8.0.6.0. The Oracle driver doesn't
work with
this but the JDriver worked. This is the output of running CheckDriver..
DatabaseProductName : Oracle
DatabaseProductVersion : Oracle8 Enterprise Edition Release 8.0.6.0.0 -
Production
With the Partitioning and Objects options
PL/SQL Release 8.0.6.0.0 - Production
DriverName : Oracle JDBC driver
DriverVersion : 8.1.7.1.0
Then I tried on using the Oracle Driver on another instance which has the
version
8.1.7.1.0 and it worked. The JDriver and Oracle driver both work with this
database.
The output of CheckDriver for this Oracle instance is..
DatabaseProductName : Oracle
DatabaseProductVersion : Oracle8i Enterprise Edition Release 8.1.7.1.0 -
Production
With the Partitioning option
JServer Release 8.1.7.1.0 - Production
DriverName : Oracle JDBC driver
DriverVersion : 8.1.7.0.0
By the way I am working on WLS 6.1 SP1. What is the advantage of SP2 ? Should
I upgrade
Thanks once again,
Sudhir.
"Sergi Vaz" <[email protected]> wrote:
Hi Sudhir ,
JDriver works well, you can work with it.
Just for curiosity, can you run the class I attached using the "exact"classpath
of your WL instance (with Oracle drivers in front of weblogic.jar) ? What
is the
output ?
On which platform are you running your WLSP2 ?
Thanks
Sergi
"Sudhir Babu" <[email protected]> wrote:
Hi Sergi,
I just checked the things you mentioned. The connection pool starts correctly
without
any errors. I also made sure SELECT previlege was granted to DBA_PENDING_TRANSACTIONS.
I do have the JAVA_XA package installed and it has EXECUTE permission
to
PUBLIC.
I actually tried using the Weblogic JDriver (weblogic.jdbc.oci.xa.XADataSource)
and
it works perfect without any issue. The only consideration is that itis
a Type 2
Driver and needs to have the Oracle Client installed. But right now Ido
have it
installed on the same machine.
Do you know any known issues with Weblogic JDriver. Do you think it'sa
good idea
to go with it ?
Thanks,
Sudhir.
"Sergi Vaz" <[email protected]> wrote:
Hi Sudhir,
does your connection pool start correctly ?
Check the setup of your Oracle server too:
1) grant select on DBA_PENDING_TRANSACTIONS table to PUBLIC
2) package JAVA_XA installed (with grant execute to PUBLIC)
Sergi
"Sudhir Babu" <[email protected]> wrote:
Hi Sergi,
Thanks for the response. I downloaded the driver for 8.1.7 from Oraclesite
and put
it in classpath in front of weblogic.jar. I still get the same problem.
Is there
another location where we can download the Oracle driver with the bug
fixed
Regards, Sudhir.
"Sergi Vaz" <[email protected]> wrote:
Hi Sudhir,
I think you are using Oracle JDBC drivers 8.1.6.
They have a bug, they do not accept a foreign XID.
Use 8.1.7 or higher to solve this problem.
Sergi
Sudhir Babu <[email protected]> wrote:
Hi,
I am using Weblogic 6.1 and Oracle 8.1.6.
I have configured JDBC XA Connection Pool with Oracle thin driver.
These
are my settings...
Connection Pool:
Name - myXAPool
URL - jdbc:oracle:thin:@myServer:1521:myDb
DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
TXDataSource:
Name - myXADS
JNDIName - myXADS
PoolName - myXAPool
I get the following error when I try to lookup the datasource. I amnot
sure where the problem is as I have configured Connection Pool and
TXDataSource
as mentioned in the documentation.
java.sql.SQLException: XA error: XAER_RMERR : A resource manager errorhas
occured in the transaction branch start() failed on resource 'myXAPool'
Unexpected error during start for XAResource 'myXAPool': null
It would be really great if you can help me out.
Thanks in Advance,
Sudhir. -
Hibernate OR EclipseLink...Which is best with Weblogic and Oracle DB?
Hi All,
In my company, we are using Oracle DB and Weblogic application server. So in the process to upgrade or switch to new ORM, we shortlisted two options - Hibernate and EclipseLink.
I gathered following summary regarding both ORMs -
Hibernate:
1. When you need to train people, like we are going to do next week – most of the companies have Hibernate experts.
2. When you hire new developers, most of them come with specific Hibernate experience.
3. When you need to consult with experts, both in the internet or consultants, you have LOTS of options. Endless forums and communities all regarding Hibernate.
4. Hibernate is an open source which has a huge community. This means that it will be improved all the time and will push the ORM market forward.
5. Hibernate is an open source which means you have the code to handle, and in case needed, fit it to your needs.
6. There are lots of plugins to Hibernate, such as validations tool, audit tools, etc. These becomes standard as well and dismiss you from impl. things yourself.
7. One most important thing with ORM tool, is to configure it according to your application’s needs. Usually the default setting doesn’t fit to your needs.
For that sake, when the market has a huge experience with the tool’s configuration, and lots of experts (see point 1 and 3) – most of chances you will find similar cases and
lots of knowledge about how to configure the tool and thus – your application.
EclipseLink:
1. Fully supported by Oracle. Hibernate no. In case of pb, it could be cumbersome to prove that it is a pure Weblogic one. Concretely, we will have to prove it (waste of time and complexity).
2. Eclipse link is developed by Oracle and the preferred ORM in the Weblogic /Oracle DB world.
3. Even if at a certain time EclipseLink was a bit late compared to Hibernate (feature), EclipseLink evolved very fast and we can consider now that they close the gap.
4. No additional fee as soon as you have Weblogic license. You will need to pays additional fee if you want some professional support on Hibernate.
5. We are currently relying on Hibernate for our legacy offer and are facing pb in second level cache (JGroups). Today, we are riding off this part!. Consequences are limitation in clustering approach (perf)
6. On EclipseLink side we do succeed to manage first and second level cache in a clustering approach.
7. Indeed Hibernate is open source, so you can imagine handling it. In reality, the code is so complex that it is nearly impossible to modify it. Moreover as it is LGPL, you need to feedback all the modified sources to the community systematically.
8. All tests performed by Oracle concerning Weblogic are using EclipseLink. Moreover, Oracle says that some specific optimizations are done to manage Oracle DB.
9. Hibernate comes from JBoss community.
Right now we are preferring Hibernate but there are concerns/reasons like EclipseLink developed by Oracle and preferred ORM in Webogic/ Oracle DB world (compatibility of ORM with DB and App. server), support comparison with both ORM, which are preventing to finalize the decision.
Please help me with you views and opinions and share you experience with us so that we can make a perfect decision.
If you want you can also reply to me @ [email protected].
Thanks.The way the ORMs are designed, integration with application servers are relatively simple, and all provides the same features. Also since WebLogic have been around for a while, all ORMs are all well tested in this configuration.
Hibernate has lot more users, and is likely very often used with Oracle DB, so you can expect not much bug against Oracle DB, maybe even less bug than EclipseLink, which is not much used. EclipseLink does provide support for some esoteric Oracle DB features like hierarchical and flashback queries.
OpenJPA and DataNucleus are also JPA compliant. It’s likely that Open JPA has a higher user base than EclipseLink, so less unknown bugs.
Oracle paying support is well known to be a bad joke. It’s a negative return to use this channel, even if they would be free. So in reality, you end up to use the open (free) forum to get support.
What’s was lacking with Hibernate before is Dynamic Fetch Planning, but they now have some support, see http://opensource.atlassian.com/projects/hibernate/browse/HHH-3414. OpenJPA was the first to implement this must have.
EclipseLink has query in memory, which can be used, but the API do not help to leverage it, and EclipseLink’s leadership made it clear that they are not going to make it better, instead they want to push Coherence cache.
Hibernate has an open API for second level cache, which mean you can get out of problem by using another implementation, for example, EHCache seems to be professionally tested, so I would be surprise you find obvious bugs.
I cannot comment on Hibernate source code quality, but I can tell you that locking mechanism in EclipseLink is used to be very fragile, and many concepts are dispersed over the code base.
The runtime monitoring of Hibernate have always been great due to the fact that JBoss have always been strong on JMX, EclipseLink has not much usable features on this.
If I would be you, I would consider OpenJPA or Hibernate instead of EclipseLink, the main reason is that because EclipseLink has a so low user base, I have found lot of obvious bugs in production, like if I was the only user of it. Then, when I submitted bugs to the small development team, which do not encourage user base contribution, they were too busy trying to keep up adding the JPA interfaces on top of their existing proprietary APIs.
Maybe you are looking for
-
Which camera should I buy?
I am looking for a camera to capture my kid's best moments. I want to have an "instant" shot. Multiple shots per second. Built in flash, Video HD 1080, a good zoom so I can use it on a soccer field. Rechargeable battery (I don't want de AA, etc) and
-
Master detail form initial insert issue on details sub-region
Hello, I created a master detail form with report which should do insertion on master and detail region/subregion. On insert mode I enter with data master and detail block, when I press "Create" button, insertion happens only on master block (order t
-
Business Process Monitoring - Modification of the standard alert mechnisms
Hi All, Am using Solution Manager 7.0 BPMON and the alert mechanisms used is the email notification from BPM_NOTIF. Would like to know if the email format can be modified Some e.g of the modification which I am looking at 1) The subject as of now is
-
what is the consolidation account?
-
Hi,does the ipod nano 5th generation have a dedicated data lead?
hi,does the ipod nano 5th gen have a dedicated usb data lead,i cannot get mine to connect to the pc?