java

JBoss Error in ejb-jar.xml for Message Driven Bean TextMDB: expected one res-ref-name tag

I've copied and pasted the example ejb-jar.xml and jboss.xml file from http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch6.chapt.html#ch6.mdbejbjar.ex and I'm receiving the following error when JBoss attempts to deploy it: ERROR [ScannerThread] deployment.MainDeployer (MainDeployer.java:943) - Could not create deployment: file:/...-ej...

What has replaced JINI?

It seems that JINI is pretty much an abandoned project. The latest release from the Jini.org site is from last year, and there has been no news since then. JINI appears to be very useful to provide services in a completely distributed minor. What happened to this technology? Also what has replaced this technology? The thread that I lin...

Concatenating 2 2D arrays in java?

I've got 2 2D arrays, one int and one String, and I want them to appear one next to the other since they have the same number of rows. Is there a way to do this? I've thought about concatenating but that requires that they be the same type of array, so in that case, is there a way I could make my int array a String array? ...

WebLogic "Exceeded stated content length" Error

Hi, I have a servlet filter that is generating "Exceeded stated content length" errors in WebLogic 10.0. I would appreciate any suggestions to fix this issue please. Details as follows. The servlet filter resizes images. This error is occurring then writing the contents a FileInputStream (from disk) to response.getOutputStream() : jav...

How to access SessionFactory of Hibernate using JNDI in WEBLOGIC 9.2 server?

We are using Weblogoic9.2.3 & DB is Oracle10.2.0.3. How can we access Hibernate SessionFactory using JNDI? ...

Where are JMS messages stored in WebLogic 9.2 server?

Hi All I would like to know at what location WebLogic 9.2 server stores JMS messages on disk. Regards Chaitanya ...

Popular IDE for Struts 2

I'm beginning to learn Struts 2, and am wondering: Which is the most popular IDE for Struts 2? I've looked at a few of them (netbeans, idea, eclipse) and only idea seems to treat Struts as a first class citizen. But the community version of idea doesn't have this capability. The others have third party plugins to support it but it doe...

How to assign a JavaScript variable to Java

I'm trying to assign a js variable to java's request or session and want to access it from the server side. I dont want the js variable to be passed on in the URL. Help me, I'm seeking for a solution. Thanks in advance ...

connect Ms Access to java

I extracted data from excel using poi api. Now I want to store the data in access please clarify ...

How to show captured images in a sequence so it look like a video?

Hi, I am currently capturing diffrent images using java.... Now i want to show all these images in a sequence so that it should look like a video... How should i do this? I have been suugested that I need to use JMF.But i dnt have any idea about JMF....Can anybody help me? ...

How to use Axis WSDL2Java generated files?

I generated Java files from WSDL with WSDL2Java converter, but I don't know how can I use service with these files, because there are no examples. I'm implementing client side. ...

Server Side Validation using Spring Web MVC validator class

Hello All... I am developing app using Spring Web MVC, Hibernate.. Now, i have my login page configuration like : <bean name="/uservalidate.htm" class="UserValidateFormController"> <property name="sessionForm" value="true"/> <property name="commandName" value="User"/> <property name="commandClass" value="User"/...

Hibernate lazy initlaization exception

I am trying to create an application using spring mvc and hibenate.I have been seeing this exception "failed to lazily initialize a collection of role" for nearly two days now :(..The application runs fine if i eager load the collections.But i dont want it that way I tried implementing OpenSessionInViewFilter in web.xml but still the er...

How can I initialize a String array with length 0 in Java?

The Java Docs for the method String[] java.io.File.list(FilenameFilter filter) includes this in the returns description: The array will be empty if the directory is empty or if no names were accepted by the filter. How do I do a similar thing and initialize a String array (or any other array for that matter) to have a length 0? ...

identity from sql insert via jdbctemplate

Is it possible to get the @@identity from the SQL insert on a Spring jdbc template call? If so, how? TIA ...

Java Compilation date, like C __DATE__

I need to automate getting the compilation date in a specific format into one Java Source file, like the C compilers DATE define, How? ...

Getting binary file and text information

Currently, I have a servlet act as web service. When I pass in parameters using POST, it will return me an executable binary file (application/octet-stream). However, beside binary file, I would also like to get additional information (in text format) about this binary file. Is it possible to achieve this by using only single POST requ...

Establisment 2 relationship from one table to one table in hibernate

I have 2 table one table is City Table ( int id, string name) and my another table is Distance table(int id,int cityId (FK city),int neighbourId(FK city)),and i want to use hibernate but i cant establish relationships of these table to Hibernate. Thanks for everything... ...

Java RMI (Server: TCP Connection Idle/Client: Unmarshalexception (EOFException))

I'm trying to implement Sun Tutorials RMI application that calculates Pi. I'm having some serious problems and I cant find the solution eventhough I've been searching the entire web and several javaskilled people. I'm hoping you can put an end to my frustrations. The crazy thing is that I can run the application from the cmd on my deskt...

Java HTTPS client certificate authentication

I'm fairly new to HTTPS/SSL/TLS and I'm a bit confused over what exactly the clients are supposed to present when authenticating with certificates. I'm writing a Java client that needs to do a simple POST of data to a particular URL. That part works fine, the only problem is it's supposed to be done over HTTPS. The HTTPS part is fairly ...