Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!

lmahesh kumar

Greenhorn
+ Follow
since Feb 27, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by lmahesh kumar

Hi,

I am having an string array of some size.
\
I want to sort in alphabetical order .

Pls give me the logic or simple example .



ThankS.
Mahesh L.
=========
17 years ago
Hello Friends .,
I want to read windows registry using java how can I do that ?
Pls let me know at the earliest.
Thanks in advance ..
Regards.,
Mahesh L.
==================================================
18 years ago
COULD ANY ONE TELL ME WHAT NEEDS TO BE DONE , FOR THE CLIENT SIDE VALIDATION , DO I NEED TO USE
VALIDATION.XML AND VALIDATION-RULES.XML ALSO FOR CLIENT SIDE VALIDATOION .

MAHESH l.
==========
19 years ago
Hello everyone ,
Currently I am working on struts frame work .
Facing problem in client side validations using
Validator frame work . I am currently including
java script files in form beans and doing client
side validations , but I need to implement
validator frame work , could any one get me one
example and give in brief explanation for the
same . If you have any documents or url's
for the said requirements kindly do send to mine
email id .
thanks a ton in advance ..
Best Regards.,
Mahesh L.
l.kumar@zensar.com
lmaheshkumar@hotmail.com
============================================
19 years ago
I have checked the link you said , but its not sufficient to code , can you pls get me some links
with examples .

Mahesh L.
=============
19 years ago
JSP
Hello everyone ,
Currently I am working on struts frame work .
Facing problem in client side validations using
Validator frame work . I am currently including
java script files in form beans and doing client
side validations , but I need to implement
validator frame work , could any one get me one
example and give in brief explanation for the
same . If you have any documents or url's
for the said requirements kindly do send to mine
email id .
thanks a ton in advance ..
Best Regards.,
Mahesh L.
l.kumar@zensar.com
lmaheshkumar@hotmail.com
============================================
19 years ago
JSP
hI Meka Kota ,
Here the ejb-jar.xml file
-------------------------
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC
'-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN'
'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>containerManaged</ejb-name>
<home>CheckingHome</home>
<remote>Checkings</remote>
<ejb-class>CheckingsBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>checkingsPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-field>
<field-name>account_number</field-name>
</cmp-field>
<cmp-field>
<field-name>customer_name</field-name>
</cmp-field>
<cmp-field>
<field-name>balance</field-name>
</cmp-field>

</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>containerManaged</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
The table structure is
SQL> desc checkings
Name Null? Type
----------------------------------------------------- -------- ----------------------------
ACCOUNT_NUMBER NOT NULL NUMBER
CUSTOMER_NAME VARCHAR2(20)
BALANCE NUMBER(10,2)
SQL>
Kindly help me in resolving the same ..
Mahesh L.
============
Dear All,
After deploying the bean and when i run the client i am getting the following error ..
E:\CONTAINERMANAGED\ENTITY_BEAN_GOPAL>java CheckingClient
home object is created
EJB Exception:; nested exception is:
java.sql.SQLException: ORA-00904: invalid column name

E:\CONTAINERMANAGED\ENTITY_BEAN_GOPAL>
kindly advice ..
Mahesh L.
============
Hello ,
I am working on EJB 1.1 with WLS - 6.1 . Am getting the following error when the following command
java weblogic.ejbc Employee.jar Employeedep.jar
is given at command prompt.
In home interface I declared ..
public EmpRemote findByPrimaryKey(int empid ) throws FinderException , RemoteException ;

E:\CONTAINERMANAGED\Example5>
java weblogic.ejbc Employee.jar Employeedep.jar
<Mar 6, 2003 12:51:52 AM IST> <Warning> <EJB> <EJB Deployment: containerManaged
has a class EmpBean which is in the classpath. This class should only be located
in the ejb-jar file.>
<Mar 6, 2003 12:51:52 AM IST> <Warning> <EJB> <EJB Deployment: containerManaged
has a class EmpHome which is in the classpath. This class should only be located
in the ejb-jar file.>
<Mar 6, 2003 12:51:52 AM IST> <Warning> <EJB> <EJB Deployment: containerManaged
has a class EmpRemote which is in the classpath. This class should only be locat
ed in the ejb-jar file.>
ERROR: Error from ejbc: In EJB containerManaged, the home interface's findByPrim
aryKey methods parameter must be the primary key type or java.lang.Object: {1}
ERROR: ejbc found errors
E:\CONTAINERMANAGED\Example5>
19 years ago
Dear All ,
I am unable to deploy the CMP Bean , getting the following error on staring the server.
Am using weblogic 6.1 app server .
The ejbname in deployment descriptor is correct .
Kindly let me know at the earliest .

====================================
<Mar 5, 2003 3:01:23 AM IST> <Error> <J2EE> <Error deploying application acct:
Unable to deploy EJB: containerManaged from acct.jar:
The DataSource with the JNDI name: MyPool could not be located. Please ensure th
at the DataSource has been deployed successfully and that the JNDI name in your
EJB Deployment descriptor is correct.
>
<Mar 5, 2003 3:01:23 AM IST> <Error> <Management> <InvocationTargetException set
ting attribute Deployed on MBean mydomain:Location=myserver,Name=acct,Type=Appli
cationConfig to value true. Method: public void weblogic.management.mbeans.custo
m.Application.setDeployed(boolean) throws weblogic.management.DeploymentExceptio
n,weblogic.management.UndeploymentException

Unable to deploy EJB: containerManaged from acct.jar:
The DataSource with the JNDI name: MyPool could not be located. Please ensure th
at the DataSource has been deployed successfully and that the JNDI name in your
EJB Deployment descriptor is correct.
Hi Danna ,
As you said , I have written the sameple test program and I could able to execute it successfully .
Still I am facing the same problem .
Kindly do the needful .
Cheers .,
Mahesh L.
===============================================
19 years ago
EJB doesnot support threading in application , as such you cannot use wait method ..

Mahesh L.
Dear All,
I am in designing EJB using UML Rational Rose .
I am just new to design patterns of EJB .
Can any one tell me what the design patterns that we can use in EJB and when to use it .
If you think the information u r going to give is huge kindly send to my personnal account .
lmaheshkumar2002@yahoo.co.in.
Your response is highly appreciated .
Thanks to all in advance .
Regards.,
Mahesh L.
================================================
Dear All,
I am currently working on EJB with weblogic 6.1 App Server.
The problem is as follows :-
I created the connnection pool and when I start my server I am getting the following error .. Pls guide me in resolving the problem . Its very urgent , your early response is highly appreciated ....
Note :- This is occuring in both the databases
Oracle , SQLServer .
I have used the following for ..
SQL SERVER
url = jdbc:JSQLConnect://localhost/database=pubs
class = com.jnetdirect.jsql.JSQLDriver
user = sa
no password

ORACLE
url=jdbc racle:thin:@localhost:1521 RCL
driver=oracle.jdbc.driver.OracleDriver
user=SCOTT;password=tiger

=======================================================================
<Feb 28, 2003 9:54:52 PM IST> <Error> <JDBC> <Cannot startup connection pool "de
moPool" weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: Io exception: The Network Adapter could not establish the
connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:260)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:189)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:131)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllo
cator.java:698)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.j
ava:282)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:620)
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:279)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:233)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:606)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:590)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy31.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
yments(ServerMBean_CachingStub.java:2706)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
er(ApplicationManager.java:360)
at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
nManager.java:152)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:606)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:590)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy41.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
.start(ApplicationManagerMBean_CachingStub.java:479)
at weblogic.management.Admin.startApplicationManager(Admin.java:1138)
at weblogic.management.Admin.finish(Admin.java:561)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:501)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:198)
at weblogic.Server.main(Server.java:35)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:205)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:131)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllo
cator.java:698)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.j
ava:282)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:620)
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:279)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:233)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:606)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:590)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy31.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
yments(ServerMBean_CachingStub.java:2706)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
er(ApplicationManager.java:360)
at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
nManager.java:152)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:606)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:590)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy41.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
.start(ApplicationManagerMBean_CachingStub.java:479)
at weblogic.management.Admin.startApplicationManager(Admin.java:1138)
at weblogic.management.Admin.finish(Admin.java:561)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:501)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:198)
at weblogic.Server.main(Server.java:35)
>
<Feb 28, 2003 9:54:53 PM IST> <Error> <JDBC> <Error during Data Source creation:
weblogic.common.ResourceException: DataSource(Myjndi) can't be created with non
-existent Pool (connection or multi) (demoPool)>
<Feb 28, 2003 9:54:53 PM IST> <Notice> <Management> <Application Poller not star
ted for production server.>
<Feb 28, 2003 9:54:53 PM IST> <Notice> <WebLogicServer> <ListenThread listening
on port 7001>
<Feb 28, 2003 9:54:53 PM IST> <Notice> <WebLogicServer> <SSLListenThread listeni
ng on port 7002>
<Feb 28, 2003 9:54:54 PM IST> <Notice> <WebLogicServer> <Started WebLogic Admin
Server "myserver" for domain "mydomain" running in Production Mode>
========================================================================
19 years ago
Dear All,
When I am trying to launch the wl 7.0 example server I am experiencing the following error ..
Kindly help me out in resolving the prob..
Thanks in advance.
Mahesh L.
===========
ERROR REPORTED AS FOLLOWS :-
---------------------------
<Feb 28, 2003 11:25:28 PM IST> <Emergency> <WebLogicServer> <000351> <Unable to
create a server socket on Channel Default for port: 7001. java.net.BindException
: Address in use: JVM_Bind Perhaps another process is using port 7001.>
<Feb 28, 2003 11:25:28 PM IST> <Emergency> <WebLogicServer> <000351> <Unable to
create a server socket on Channel Default for port: 7002. java.net.BindException
: Address in use: JVM_Bind Perhaps another process is using port 7002.>
<Feb 28, 2003 11:25:29 PM IST> <Emergency> <Security> <090085> <Server failed to
bind to any port such that it is not reachable from the console.>
<Feb 28, 2003 11:25:29 PM IST> <Emergency> <WebLogicServer> <000342> <Unable to
initialize the server: Fatal initialization exception>
***************************************************************************
The WebLogic Server did not start up properly.
Reason: Fatal initialization exception
***************************************************************************
===============================================
19 years ago