This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

vinodreddy kisanagaram

Greenhorn
+ Follow
since Jan 08, 2008
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 vinodreddy kisanagaram

Hi,


Can someone explain the basic purpose of using Setter injections?

For instance variable injections we have
@Resource
private javax.sql.Datasource dataSource
Here the container makes a JNDI look up for dataSource and injects the same into the bean

For setter injections,
@Resource(name="jdbc/actionBazaarDB")
on public void setDataSource(DataSource dataSource)

In seter injections, the underlying purpose is to set the dataSource externally. So when the dataSource is getting set externally, what is the use of having the annotation Resource on top of this setter method?

Does the usage of @Resource mean that if the dataSource is not set externally, container by default injects a resource by looking up the JNDI?

I'm getting the below error (actually a Warning) while starting JBOSS server..

17:21:41,765 INFO [ChannelSocket] JK: ajp13 listening on localhost/127.0.0.1:8009
17:21:41,796 INFO [JkMain] Jk running ID=0 time=0/93 config=null
17:21:41,812 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 47s:734ms
17:21:46,906 WARN [JARDeployer] Failed to add deployable jar: file:/D:/jboss-4.0.5/server/default/tmp/deploy/tmp5616007611931723102adminserver.j2ee.libs.jar
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:111)
at java.util.jar.JarFile.<init>(JarFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:65)
at org.jboss.deployment.SubDeployerSupport.processNestedDeployments(SubDeployerSupport.java:377)
at org.jboss.deployment.SubDeployerSupport.init(SubDeployerSupport.java:284)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
17:21:46,906 WARN [JARDeployer] Failed to add deployable jar: file:/D:/jboss-4.0.5/server/default/tmp/deploy/tmp5581608616597491631adminserver.j2ee.web.jar
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:111)
at java.util.jar.JarFile.<init>(JarFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:65)
at org.jboss.deployment.SubDeployerSupport.processNestedDeployments(SubDeployerSupport.java:377)
at org.jboss.deployment.SubDeployerSupport.init(SubDeployerSupport.java:284)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)


As you can see my JBOSS has started finely, but I'm trying to figure out the root cause for the ZipException...

Before starting the server, I've build my ear file by using ANT and then placed the ear in JBOSS and started it..

Please help..

Thanks.
10 years ago
Hi.. I'm reading RMH. In Mappings fom Java to XML and WSDL topic he mentioned about how a document literal non standard type is mapped to JAVA (Using SOAPElement)..

My doubt is how RPC literal non standard types are mapped to JAVA?
12 years ago
Hi ,

Can you please let me know the function name and usage to find if a given string has numbers in it... like

"app3le" has 3 in it..

I have found one function in w3schools website:

contains(string1,string2)

which returns true if string1 contains string2, otherwise it returns false

Example: contains('XML','XM')
Result: true

but using this function and looping it 10 times (i.e., from 0-9) is bit tedious.

Can you suggest some other way...

Thanks in advance
Hi guys,

Just now cleared SCJP 1.4 and am planning to write WCD soon. Which version of WCD will be better so that it caters for maximum needs.(I've taken SCJP 1.4 as it is widely used than 1.5 )

Please mention the books also.

Thanks in advance.
Is it possible to create a constructor for anonymous inner class? If so, how?
12 years ago
Hi guys. Tried creating a class with name Con but the compiler is throwing some crazy unreadable error.Tried same using Com and is working fine.
12 years ago