Kuts Aryan

Greenhorn
+ Follow
since Jun 27, 2009
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 Kuts Aryan

Thanks Peter.I got my solution from your reply.
12 years ago
I am trying to generate my EJBs jboss.xml for JBoss 5.1.0.GA automatically using EJBDoclet and ANT.I am using the following ant script to generate the jboss.xml.



but generated jboss.xml is not supporting jboss 5.1.0GA as I am mentioning version as 4.0.
I tried given version=5.1.0 or version=5.1.But either way it did not work.Please help me how to automatically generate jboss.xml which will be compatible with jboss5.1.0GA

Thanks
Prabuddha
12 years ago
Hi all
I want to create a j2EE projects from an ant build file.Hence I created a project in eclipse from File->New->Project and written the ant build file.Based on the build file, I created the required folder structure. But the problem is while writting any java code or servlet code,I am not getting any content assist facilities also eclipse IDE not showing me any compilation error as it is using my custom ant build.
It will be helpful if you suggest me how to configure eclipse in this scenario so that I can get the content assist facilities along with if I make any changes in my code,eclipse will automatically run my ant script to validate the changes.

Thanks
thanks for your reply and you are correct.I want to know about the iteration of JSON object.Right now I am doing the iteration like below


It is working but the order of displaying the element is not proper.If my JSON object contains

var foo = { "A":"a","B":"b","C":"c","D":"d"};
It is sometimes printing the oder like
D:d
A:a
B:b
C:c
like this.......Is there any way to display the order properly ?
Hi
I am using struts2 framework and from my js file I am invoking my action class through AJAX call.In the success part of ajax I am getting a JSON object of java map like below


where typeModel is a object of DeviceTypeModel class and DeviceTypeModel class is having a java Map <String,String> class variable.
My question is in the java script part after getting the json object, how can I access this map key/value pair using JSON so that in the jsp page I can print the name/value pair
for the whole map object.

Please help me...............
Hi
I am using jBoss 5.1.0 GA and in this server I have deployed my EJB services.From my tomcat I am running struts2 web application which invoking those EJB services from JBOSS.
applicationContext.xml:

and my struts.xml is


But the problem is when I am calling the service from my action class like below


I am getting the below exception in my tomcat screen

2010-08-20 12:48:10,230 INFO com.alu.mdm.uiservice.actions.DeviceTypesAction.getDeviceTypes:36 - Manufacturer List is null in action class...............
2010-08-20 12:48:10,230 INFO com.alu.mdm.uiservice.actions.DeviceTypesAction.getDeviceTypes:37 - deviceModelService ..............Proxy to jboss.j2ee:ear=mdm-ear.ear,jar=udm.jar,name=DeviceModelRepositoryImpl,service=EJB3 implementing [interface com.mdm.wds.udmi.DeviceModelRepositoryRemote]2010-08-20 12:48:10,292 ERROR com.alu.mdm.uiservice.actions.DeviceTypesAction.getDeviceTypes:62 - NULL POINTER--while invoking the service...
java.lang.NullPointerException
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:379)
at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:211)
at org.jboss.remoting.Client.invoke(Client.java:1724)
at org.jboss.remoting.Client.invoke(Client.java:629)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
at $Proxy23.invoke(Unknown Source)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
at $Proxy17.getAllManufacturers(Unknown Source)
at com.alu.mdm.uiservice.actions.DeviceTypesAction.getDeviceTypes(DeviceTypesAction.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)

It is not hitting the service at all.If I assign null value to deviceModelService,I am getting the same exception.By this I can assume it is not EJB service code issue.
Please help me out ..................
13 years ago
I am having an existing Maven project with struts 2,spring,hibernate technology.In netbeans 6.9 I have included the project.But the problem is I am not able to see any documentation while pressing ctrl+space.....
Most of the cases it is showing errors although I am able to successfully build the project.... I don't have much idea about the configuration of netbeans for Maven project.Please guid me how to set up my netbeans for any existing project so that I would get IDE support while developing.

...........Thanks in advance
.
Thanks for your reply.But say for example If I have two DB,their name cant be similar(hence XE).So XE DB should be unique.Please correct me if I wrong.
Also could you tell how can I check the DB connection in Oracle Management view as you mentioned.
Hi
I am facing a strange problem while invoking DataBase using Hibernate Query.I am getting different set of Data and I dont know which dataBase it is pointing.
I am using jBoss application server and below is my oracle-xa-ds.xml configuration.

<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
<xa-datasource-property name="URL">jdbc:oracle:thin:@localhost:1521:XE</xa-datasource-property>
<xa-datasource-property name="User">test</xa-datasource-property>
<xa-datasource-property name="Password">test</xa-datasource-property>

In my local data base I am having only 5 data in a table but some times I am getting more than that. .....But I am seeing only OracleServiceXE is running in my local service.Please help me to find out which DataBase exactly it is pointing................

Thanks in Advance............................................
Hi, I am working in a service based company and having 2.7 years of experience.Recently got a job in a product based company which is one of the best telecom industry in the world. So how much salary (Indian currency ) I can expect where my current salary is around 4.5 L p.a. Its very urgent for me. Thanks in advance.
13 years ago
In India How much salary can I expect as 2.6 years exp in JAVA field from a service based company??
14 years ago
In my application a jsp page is there and when the jsp is getting loaded for the first time a j Query method is getting invoked and it is displaying the expand/collapse button.If I click on the expand button then it is displaying some message and changed to collapse and if I click on collapse the message is getting disappeared and the button itself is changed to expand again.
Please refer the attached image.

The jQuery code is given below
and in the jsp expand/collapse button display is like below


Now what I want is that using javaScript I want to programmatically make a decision that which button (expand or collapse) is hidden and which one is visible.
Please help me out
could anyone suggest me how can I convert a xml document to a HTML document using JAVA??what are the required technologies I need to learn??
Thanks in advance......
14 years ago