Vidya Moorthy

Ranch Hand
+ Follow
since Nov 13, 2003
Merit badge: grant badges
For More
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 Vidya Moorthy

Thank you for posting the answers quickly!

Vidyaram
I have to do a query to a table. If resultset has only one row, I have to set the bean in one particular way and if the resultset has multiple rows in a different way.
I tried


The problem with this code is even if the row count from the query is one, it sets ABC into the bean.
Should I try to get the count and then check if count > 1? If that is the case, then I have to do two queries, one to get the count and the other to do the query itself. Please advise.
Thanks in advance
Vidyaram

Hello
I developed a web service and deployed it on my Local Websphere server. I was originally able to access it from Soap UI but not a client project which I developed because of the java.lang.NoClassDefFoundError. This class is in the war file which is part of EAR. Now, if I access it from Soap UI also, I get the same error. Here is the stack trace of the error. Please help


Please help me. This is really important for me to fix it soon.

Thanks in advance
Vidyaram
14 years ago

Cameron Wallace McKenzie wrote:Which classes were not recognized on the import? Were they base J2EE classes, or your own classes you were linking to?



My own classes. I'll try creating an ejb project and importing the classes
Thanks for your input. BtW, I have enjoyed your presentations very much.
Vidya Moorthy
14 years ago
Hi
I tried importing an existing EJB project and the corresponding EARProject into RAD. The EJB project had it's name ejb-jar.xml named as copyofejb-jar.xml. I renamed it and added a missing classpath file into the project. This project also has a test project which tests the EJB projects classes. They were showing errors in the import statements and I looked in the Project build path and there seems to be none for this project. How do I fix this? I am attaching a screenshot to show my workspace.
Thanks,
Vidya Moorthy
14 years ago
Thanks for your tips.
Jeanne, that did the trick. I feel so much better now:)
Vidya Moorthy
14 years ago
Hello,
This is a very minor problem but seems to irk me. I am not able to find a workaround this. In my J2EE perspective, I am trying to work on a file and when I double click it in the navigator pane, it opens on the right side but does not show on the navigator pane. So, it hard for me to go bak whjen I work with many files to manually go and search for the file in the navigator.
Thanks
Vidya Ram
14 years ago
Hi
I am trying to regenerate Java proxy classes for a new schema in Web Services project. The proxy classes are getting generated but I get this error
IWAB0213E Error in starting server.
org.eclipse.core.runtime.CoreException: The server named WebSphere Application Server v6.0 did not start correctly. Check the Console for error messages. *
at com.ibm.wtp.server.core.internal.Server.synchronousStart(Unknown Source)
at com.ibm.etools.webservice.consumption.command.common.AbstractStartServer.startProject(Unknown Source)
at com.ibm.etools.webservice.consumption.command.common.AbstractStartServer.StartServer(Unknown Source)
at com.ibm.etools.webservice.consumption.command.common.StartProjectCommand.execute(Unknown Source)
at com.ibm.etools.webservice.consumption.command.common.ManageServerStartUpCommand.execute(Unknown Source)
at com.ibm.env.command.fragment.CommandFragmentEngine.runCommand(Unknown Source)
at com.ibm.env.command.fragment.CommandFragmentEngine.visitTop(Unknown Source)
at com.ibm.env.command.fragment.CommandFragmentEngine.moveForwardToNextStop(Unknown Source)
at com.ibm.env.widgets.SimpleCommandEngineManager$4.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(Unknown Source)
at org.eclipse.jface.operation.ModalContext.run(Unknown Source)
at org.eclipse.jface.wizard.WizardDialog.run(Unknown Source)
at com.ibm.env.widgets.SimpleCommandEngineManager.runForwardToNextStop(Unknown Source)
at com.ibm.env.internal.widgets.WizardPageManager.runForwardToNextStop(Unknown Source)
at com.ibm.env.internal.widgets.WizardPageManager.getNextPage(Unknown Source)
at com.ibm.env.internal.widgets.SimpleWizardPage.getNextPage(Unknown Source)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(Unknown Source)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(Unknown Source)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.jface.window.Window.runEventLoop(Unknown Source)
at org.eclipse.jface.window.Window.open(Unknown Source)
at com.ibm.env.widgets.popup.DynamicPopupWizard.run(Unknown Source)
at org.eclipse.ui.internal.PluginAction.runWithEvent(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem.access$2(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.internal.ide.IDEApplication.run(Unknown Source)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
There is no message in the console. Is my RAD 6.0 corrupted! Please let me know.

Thanks in advance
Vidya Moorthy
15 years ago
Hi all
I am new to Struts 2. I have a form with 2 fields, last name and id. If somebody wants to search the data from the Database by either one of the field, they can enter only one field.I wrote a search-validation.xml with both the fields as required string. In the action class, i am checking if both of them are null, go to input page, otherwise, go to the success page.
On deployment, if I miss one of the fields, it still gives me a field is required message.
Is there anything I should do with the validation.xml file to fix this?
The other option I have is write two forms with 2 actions and 2 validation.xml files. Is that the best route?
P.S: I was checking struts validation and in struts 1.2, they have conditional validation. Could I use that or something like that in Struts 2
Thanks in advance
Vidya
[ August 08, 2008: Message edited by: Vidya Moorthy ]
15 years ago
If I delete the Hibernate library and then if I create a new hibernate library and then add all the jar files to it, it works. Strange! But works for the time being for me now!
This happens only if I turn off my pc and start it again. Otherwise, the jar files are fine in the library.
Can it get any weirder!
Thanks
Vidya
15 years ago
Merrill:
I figured the problem. I should have included an example.xml file which I didn't include and my web.xml was not the same as what was in struts 2 blank.war. The problems occured because I was using an IDE and couldn't start the project from blank.war. So, I let the IDE create a new web project and forgot to update the equivalent files. Thanks for your input.
Vidya
15 years ago
Hello all!
I am trying to learn Struts 2 from apache website. This is a basic HelloWorld Tutorial and the name of the project is Customer. It has a HelloWorld.java (it is in a package com.innowix under src)which returns a message that Struts is up and running. I have a feeling that the problem is there in my Struts.xml which has the following code

I am trying to invoke my HelloWorld.action by this link
http://localhost:8080/Customer/innowix/HelloWorld.action

Please tell me what I am doing wrong. I know that it must be something really silly!
Thanks in advance
Vidya
15 years ago
Even after I added the hibernate jar file, it is still showing that the jar file is missing in the build path
Thanks,
Vidya
15 years ago
Hi Renee
Thanks for your response. It didn't work when I tried that suggestion. When I checked the problems after seeing your response, it says that the project is missing a hibernate jar file. I'll add that and let you know how it works tommorrow since I am just leaving.
Thanks,
Vidya
15 years ago
Hi Cameron
I imported the jar file into WEB-INF/lib and it still threw the error.
Pardon my ignorance. Do you want me to write a separate java class to test the driver constructor like this
public class DBTest {
public static void main(String[] args){
try{
COM.ibm.db2.jdbc.app.DB2Driver driver = new COM.ibm.db2.jdbc.app.DB2Driver;**** Shows an error syntax an error on tokens, misplaced construct*********
}
catch(SQLException se){
System.out.println("Problem");
}
}

}
Thanks again for taking so much time.
Vidya
15 years ago