JPraveen Kumar

Ranch Hand
+ Follow
since Aug 31, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by JPraveen Kumar

Hi,

If an application had multiple threads and one of them tried to make a network call to access a CD drive. Normally such an operation would take a couple of seconds. Do the other threads keep working or do they hang because of this?

As I understand, standard Java threads are simulations of multi-processes not actual OS processes. Each thread runs in a context of one main thread controlling the JVM. The OS sees that the JVM thread made a call and decides to put it to wait till it gets a response. I guess unless the threads were mapped to actual OS processes using p-threads or green threads, they should hang.

Is this reasoning correct?

Thanks Praveen.
Hi,

I would like to know how AJAX is different from remote scripting of Microsof which has been around for ages.

Thanks Praveen.
Hi I have an xml file that looks like this


Now I need to retreive all the id and names of tags which occur as C elements. I started with this xslt and got the id's of C element. Now how to match them against the id of B elements and retreive the names of B?

Is there a more optimized way to do this?



Thanks Praveen.
Hi,

My xml looks like this. I need to select the elements with type = b.



Can you please tell me what should be appropriate xslt:choose and xslt:when statements for this.

Instead of choosing inside for-each can I also apply the filter directly in the xsl:template match element?

Thanks Praveen.
Hi,

I have been breaking my head no this for quite some time now. Im trying to develop an EJB session bean using the foll.

IDE : Eclipse
J2EE Framework : Webtools
App Server : Sun Application Server.
App Connector : Glassfish

My session bean only has a foo method as follows

public String foo(String param) {
return "ASD"+param;
}

When I try to publish this to the server after add or remove projects it says

BUILD FAILED
C:\Eclipse\temp\.metadata\.plugins\org.eclipse.jst.server.generic.core\serverdef\sunappsrv-ant.xml:54: Deployment failure. See the server log file (C:/645/Sun/AppServer/domains/domain1/autodeploy/../logs/server.log) for an explanation.

The log file says

[#|2006-02-12T23:46:03.014-0500|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_ThreadID=11;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Error while running ejbc -- Fatal Error from EJB Compiler -- Invalid jndi name [] found in application [ttt]; module [C:\645\Sun\AppServer\domains\domain1\applications\j2ee-modules\ttt]; ejb [My]; aborting deployment. Please populate the jndi element and try again.
at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:701)
at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563)
at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployModule(EJBCompiler.java:427)
at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:213)
at com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.java:967)
at com.sun.enterprise.deployment.backend.EjbModuleDeployer.deploy(EjbModuleDeployer.java:176)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:140)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:185)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:519)
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:324)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:471)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployEjbModule(AutoDeployer.java:433)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployEjbModule(AutoDeployer.java:411)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:201)
at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:342)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
|#]

[#|2006-02-12T23:46:03.030-0500|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.tools.admin|_ThreadID=11;|enterprise.deployment.backend.autoDeploymentFailure|#]

[#|2006-02-12T23:46:03.217-0500|INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.admin|_ThreadID=11;|[AutoDeploy] Autodeploy failed : C:\645\Sun\AppServer\domains\domain1\autodeploy\ttt.jar.|#]



The jndi tag is correct in the XDoclet tags so I don't know what is wrong.

Please help me out.

Tx Praveen.
19 years ago
Hi,

I have been breaking my head no this for quite some time now. Im trying to develop an EJB session bean using the foll.

IDE : Eclipse
J2EE Framework : Webtools
App Server : Sun Application Server.
App Connector : Glassfish

My session bean only has a foo method as follows

public String foo(String param) {
return "ASD"+param;
}

When I try to publish this to the server after add or remove projects it says

BUILD FAILED
C:\Eclipse\temp\.metadata\.plugins\org.eclipse.jst.server.generic.core\serverdef\sunappsrv-ant.xml:54: Deployment failure. See the server log file (C:/645/Sun/AppServer/domains/domain1/autodeploy/../logs/server.log) for an explanation.

The log file says

[#|2006-02-12T23:46:03.014-0500|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_ThreadID=11;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Error while running ejbc -- Fatal Error from EJB Compiler -- Invalid jndi name [] found in application [ttt]; module [C:\645\Sun\AppServer\domains\domain1\applications\j2ee-modules\ttt]; ejb [My]; aborting deployment. Please populate the jndi element and try again.
at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:701)
at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563)
at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployModule(EJBCompiler.java:427)
at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:213)
at com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.java:967)
at com.sun.enterprise.deployment.backend.EjbModuleDeployer.deploy(EjbModuleDeployer.java:176)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:140)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:185)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:519)
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:324)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:471)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployEjbModule(AutoDeployer.java:433)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployEjbModule(AutoDeployer.java:411)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:201)
at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:342)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
|#]

[#|2006-02-12T23:46:03.030-0500|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.tools.admin|_ThreadID=11;|enterprise.deployment.backend.autoDeploymentFailure|#]

[#|2006-02-12T23:46:03.217-0500|INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.admin|_ThreadID=11;|[AutoDeploy] Autodeploy failed : C:\645\Sun\AppServer\domains\domain1\autodeploy\ttt.jar.|#]



The jndi tag is correct in the XDoclet tags so I don't know what is wrong.

Please help me out.

Tx Praveen.
19 years ago
Hi,

I have to make ejb using eclipse, sun app server and pointbase. I downloaded webtools for making ejb's in eclipse and glassfish for connecting eclipse to sun app server. Now when I goto File->New -> EJB, I just have ejb project, XDoclet Enterprise Java Bean.

Previously I had an option of creating an enterprise java bean but it seems to be missing now. Can somebody help me out pls.

Tx Praveen.
Hi,

I have to make ejb using eclipse, sun app server and pointbase. I downloaded webtools for making ejb's in eclipse and glassfish for connecting eclipse to sun app server. Now when I goto File->New -> EJB, I just have ejb project, XDoclet Enterprise Java Bean.

Previously I had an option of creating an enterprise java bean but it seems to be missing now. Can somebody help me out pls.

Tx Praveen.
19 years ago
Hi,

I have to make ejb using eclipse, sun app server and pointbase. I downloaded webtools for making ejb's in eclipse and glassfish for connecting eclipse to sun app server. Now when I goto File->New -> EJB, I just have ejb project, XDoclet Enterprise Java Bean.

Previously I had an option of creating an enterprise java bean but it seems to be missing now. Can somebody help me out pls.

Tx Praveen.
19 years ago
Hi,

I have to make ejb using eclipse, sun app server and pointbase. I downloaded webtools for making ejb's in eclipse and glassfish for connecting eclipse to sun app server. Now when I goto File->New -> EJB, I just have ejb project, XDoclet Enterprise Java Bean.

Previously I had an option of creating an enterprise java bean but it seems to be missing now. Can somebody help me out pls.

Tx Praveen.
Hi,

I have to make ejb using eclipse, sun app server and pointbase. I downloaded webtools for making ejb's in eclipse and glassfish for connecting eclipse to sun app server. Now when I goto File->New -> EJB, I just have ejb project, XDoclet Enterprise Java Bean.

Previously I had an option of creating an enterprise java bean but it seems to be missing now. Can somebody help me out pls.

Tx Praveen.
Tx friends, actually i HAVE to use sun app server and it seems webtools lacks support for sunapp server.

Im kinda sad abt this, but it forces me to go back to netbeans and not use eclipse.

Does anybody have any suggestions.

Praveen.
Tx Scott,
How is netbeans, does it natively support EJB creation, Can you suggest some other tools or free eclipse plugins which might be helpful.

Tx Praveen.
Hi,

Im new to eclipse, and wanted to develop ejb using eclipse as ide and Sun Application Server as container and Pointbase as the database for entity beans.

I downloaded all of the above, and need to know how to setup my environment and start working. Also how do I connect my eclipse to sun app and sun app to pointbase? Do I need any other plugin for this?

Thanks Praveen.
Actually I am not generating the xml here, its the output of a tool that I am using. I am pasting the file here. Please let me know if there s any way that I can get the value myName and the type of the element from this file.

(I am adding space after each colon to avoid the smileys)


Thanks Praveen.