Jayanath

Greenhorn
+ Follow
since May 21, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jayanath

Hello,
I'm trying to use MQ 6.0 as the JMS provider on WAS 6.1. When I test the server connection it gives me the following error message.

WebSphere MQ server MyMQServer connection test failed for WebSphere MQ queue manager QM_bss_spare_03 with an exception:
MQ resource discovery classes are not available.


- The value of MQ_INSTALL_ROOT? C:/Program Files/IBM/WebSphere MQ
- Does the MQ_INSTALL_ROOT\Java\lib directory exist, and in particular does the com.ibm.mq.jar file exist? YES
- The full version of my install? WebSphere 6.1.0.0 and MQ 6.0

Thanks in advance for any help / suggestion.
15 years ago
Hi all,
Thanks for your posts..
I found the issue and thought its better to post that for any other readers..
I replaced my db with a new dump and .. thats it.. now its working fine..
I think globleStartup might have corrupted my db

cheers,
Jayanath
18 years ago
Hi,
I have executed the start method in GlobalStartup MBean in my Jboss management console.Then it gives an exception.Now when Im going to start the server it gives me the following error.

I have removed everything, even the codebase and Jboss and started from the scratch.
Still Im getting the same error.

======================== part of the server lot============
javax.management.InstanceAlreadyExistsException: jboss.management.local:J2EEServer=Local,j2eeType=J2EEApplication,name=print.ear already registered.
at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:617)
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:198)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

===================================================================

2007-02-09 16:59:41,730 DEBUG [org.jboss.management.j2ee.factory.EARModuleFactory] Created J2EEApplication: jboss.management.local:J2EEServer=Local,j2eeType=J2EEApplication,name=print.ear
2007-02-09 16:59:41,730 INFO [org.jboss.deployment.EARDeployer] Started J2EE application: file:/C:/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/print.ear/
2007-02-09 16:59:41,730 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: print.ear
2007-02-09 16:59:41,730 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/print.ear/
2007-02-09 16:59:41,730 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/print.ear/ -> file:/C:/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/print.ear/META-INF/application.xml
2007-02-09 16:59:41,730 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
<none>
Incompletely deployed packages:
<none>
MBeans waiting for classes:
<none>
MBeans waiting for other MBeans:
[ObjectName: zeborgprint:service=GlobalStartup
state: FAILED
I Depend On: jboss.jca:service=LocalTxCM,name=printPool
jboss.jca:service=ManagedConnectionFactory,name=printPool
jboss.jca:service=ManagedConnectionPool,name=printPool
jboss.j2ee:service=EJB,jndiName=Sequence
jboss.j2ee:service=EJB,jndiName=SequenceMgr

Depends On Me: java.lang.StackOverflowError]

============================================================

Appreiciate any help on this.
Thanks in advance,

jayanath.
18 years ago
<td height="28" valign="top">Description</td>
<td rowspan="2" valign="top"><textarea name="Description" rows="5" readonly id="Description"><%=Description %></textarea></td>

this code gave me the answer.
But is there anything else which I can use instead of a text area for view the description.Suppose if I want to print the description on a letter in a nicer manner.

by the way, is there any method to print a letter as same as displayed on the browser.

Regs,
Jayanath.
Hi,
Im getting a description of a book from a user by a text area in to a variable in a jsp page.I want to preview that description in a html page in a specific area.But when I preview it,its displaying that description as a single line in the preview page.

what is displaying=qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

what I want is= qqqqqqqqqqqqqq
qqqqqqqqqqqqqq
qqqqqqqqqqqqqq
and so on.

Ive used a disabled text area but it didnt show me all of the description but a part of it.

Pls help me on this .
Thanks in advance for any comments.
Best regs,
Jayanath.
Hi,
Thanx for ur help Anurag Mishra and hanx Ali Gohar..

Im taking a string date from a user in a Jsp page and Ive used the codings given below to convert string to Date

String today="27.06.2004";
SimpleDateFormat formatter= new SimpleDateFormat ("dd.MM.yyyy");
Date d = formatter.parse(today);

This gave me a java.util.Date type d.
but it didnt souit with

pstmt.setDate(2,d);
pstmt is a PreparedStatement obj.

since pstmt needs a java.sql.Date type rather than a util date.
How can I overcome this problem.

Thanx in advance for any help.
Best regs,
Jayanath
21 years ago
Hi,
Im using j2sdk1.4.0
when Im compiling this small class it get compiled.
when I try to execute it it gave me an error saying,

Exception in thread "main " java.lang.NoClassDefFoundError :test

Whats wrong with this???
Pls help me to clarify this strange error...

Thanx in advance for any comments,
best regs,
Jayanath.

import java.io.*;
public class test
{
public static void main(String arr[])
{
System.out.println("testing ");
}
}
21 years ago
Pathak,
Im using the command prompt and when I type echo %classpath% it displayed the servlet.jar file in the path.
My OS is WinXP & Ive used environment variable setting to add the servlet.jar file into the classpath.
But problem is still there.

Paul,How do I verify whether my servlet.jar file is corrupted or not.Pls let me know.

Thanx for your help.

Jayanath.

21 years ago
Hi
When I tryed to compile this simple servlet,

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class HelloWorld extends HttpServlet {

public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<body>");
out.println("<head>");
out.println("<title>Hello World!</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Hello World!</h1>");
out.println("</body>");
out.println("</html>");
}
}

it gave me the error-> package javax.servlet does not exist

Im using
j2sdk1.4.0
Tomcat4.1
CLASSPATH=C:\Tomcat4.1\common\lib\servlet.jar
Whats wrong with this..
I went through the web befor submit this,there were plenty of occurences of the same problem but the answers were same as "Check your classpath" for most of the times.

Pls help me on this.
Thanx in advance for any help.
best regs,
Jayanath.
21 years ago
Hello,
Im taking the date as dd/MM/yyyy from the user.I want to save it in the database which holds dates in Dste type.
Part of the codings Ive used are given below.


String TodaysDate = "12/30/2003";
SimpleDateFormat formatter= new SimpleDateFormat ("dd/MM/yyyy");

Date today = formatter.parse(TodaysDate);

and so on..

But this doesnt work.
Anyone knows how to convert string date to Date type to save in to a db as well as give the date to the user when required in string format.

Pls help me.
Thanks in advanced for any help...


[ May 25, 2004: Message edited by: Bear Bibeault ]
21 years ago