Cannot Upload a file from local system

1886 byte By Dinesh123a at 2007-11-27 0:50:30
Hi,I am trying to send an email with an attachment from an JSP form using javamail in a STRUTS action class. I uploaded the JSP form and action class to my web server (Unix with JBOSS) and now the email is not sent and I receive the following error javax.mail.MessagingException: IOException ...

JMS session is not closed even after calling close()

669 byte By Antsa at 2007-11-27 0:51:04
Hi All, I am using JMS to receive and publish topics for a process,in my java code i am creating new JMS Session on demand(ie., whenever a new topic is received) after processing the topic i am closing the session with close(),but still the session is not closed.In a period of time more ...

NullPointerException

637 byte By RS_Deva at 2007-11-27 0:51:14
Hi Friends !!!!I'm trying to tokenize a string with the following code....strFiles=application.getAttribute("files").toString();System.out.println("?str from session ........!"+strFiles);StringTokenizer stok=new ...

Enterp App Client Packaging Error

2041 byte By Mackela at 2007-11-27 0:51:26
Hello,I'm trying to make work this simple example:https://glassfish.dev.java.net/javaee5/ejb/examples/Sless.htmlBasically it's this:1) A Stateless Session bean that has a Remote business interface with a single business method.-package ejb30;import javax.ejb.Remote;@Remotepublic interface ...

the parameters seem to lose their names in the translation to WSDL.

1802 byte By asabbia at 2007-11-27 0:51:31
I am building a webservice using the weblogic "servicegen" ant task. Everything seems to be working well, but the parameters seem to lose their names in the translation to WSDL.I have a method like: saveNewUserData(String emailAddress, String username,String password, String confirmPassword, ...

Call Java 6 web service using AXIS 1.4, Endpoint use HTTP/1.0

1914 byte By Florian_Rackya at 2007-11-27 0:51:55
Hi,I am trying to use the new Java 6 feature that easily allows to create a web service and make it availabe for clients just by adding the WebService annotation to a class. The web service works fine with the generic web service client provided in the Rational Application Developer 6 and RAD ...

storing data in a xml file

461 byte By siva4ua at 2007-11-27 0:52:01
Hi,i have html page which contains username and password.After submitting the page,i have to get the values in a servlet and i have to store that values in a xml file.when i send the request for the first time,the data is getting added to the xml file.Now,how i have to add the data coming to ...

adding data to an existing xml file using java

807 byte By siva4ua at 2007-11-27 0:52:05
Hi,I have a xml file by name ex.xml as shown below.<?xml version="1.0" encoding="UTF-8"?><PurchaseOrder pono="10"><POLINE><itemid>1000</itemid><qty>10</qty></POLINE></PurchaseOrder>Now,what i want to do is:i have to add two more elements to ...

What to do with the Business Interfaces?

691 byte By Mackela at 2007-11-27 0:52:30
Hello,in a distributed environment with many EJB running in different AppServers what should be done to distribute the many Business (Remote) Interfaces?Usually you build your EJB project joining the implementation and the Business Interface in a single JAR. But what if you want to access it ...

JAXB, SAX and XSLT Transformation

1265 byte By simon_frencha at 2007-11-27 0:52:45
Hi,I'm trying to get to grips with JAXB, SAX and XSLTBasically I've got a JAXB Java Model and and when its Serializing requires an OutputFormatter to setup NonEscapingElements.I then want to transform this three times.At the moment I'm just using serializing the XML to file, and then using ...

nb5.5 j2ee 1.4 webservices needs JDK 1.5 ?

402 byte By _NetMackan_a at 2007-11-27 0:54:00
I have a web project in NetBeans 5.5, using j2ee 1.4, source level 1.4 and sun-jdk 1.4.I want to add a web service to my project but when I try to do that (New->Web service...) NetBeans complains:"To create web services in this project, the Java source level must be at least JDK 1.5"But I ...

XML: cvc-complex-type.3.2.2: Attribute X is not allowed to appear in Y

5252 byte By grilleda at 2007-11-27 0:54:16
hello,I am trying to validate an XML instance document against an XML schema and I get the errors (i have included schema and instance below): Error: URI = "file:/amd/nfs/pegasus/disk/ptn155/s0567057/project/interface/Voge/data/layout.dat", Line = "4", : cvc-complex-type.3.2.2: Attribute ...

Netbeans 5.5 WebService Client - How do I pass a parameter to the service?

2282 byte By Tosa_Developera at 2007-11-27 0:54:17
I'm using Netbeans 5.5 and have generated a webservice client (JAX-WS 2.0) off of the existing WSDL. The webservice requires me to pass it some information. Per the generated code, it is expecting an EncryptedData object. The problem is, I have no idea what the content of this data object ...

EJB home methods are not allowed ?

307 byte By deAppela at 2007-11-27 0:54:25
Ive been working on an entitybean (cmp) for a while now and now i get this error:"java.rmi.NoSuchObjectException: EJB home methods are not allowed to access CMP or CMR fields: methodName=getId"I have no idea why but it happens in an enumeration when i want to get something like ...

JMS Best Practice

898 byte By steve@whitesquaresoft.coma at 2007-11-27 0:55:10
We are starting to use JMS more and more heavily for back end sync and replication of changes.What I want to know is how should I use connections and sessions? These processes are always running, but they seem to time out.Should I be opening new connections each time, or just sessions, or even ...

javamail sending mail

244 byte By yzmewona at 2007-11-27 0:56:05
how to make sure the mail is sent to the recipient successfully....taking into consideration is recipient mailbox is full , or attachment size too big...network down, what jamail exception cater for this...pls advice

JavaMail in Jboss EJB3

292 byte By lngo77a at 2007-11-27 0:56:25
Hello,I am trying to send an email notification from my EJB3 bean. I am using JBOSS application server. I can not find any documentation or examples showing how to configure and send an email programmatically from inside JBoss. Has anyone done this ?Thank you,LNgo

Dojo version

298 byte By JuanIgnacioSancheza at 2007-11-27 0:56:28
Hello, I've downloaded blueprints catalog 0.8 and compiled it. I've read it uses dojo 0.4, but when I use bp-ui-14.jar it displays an older calendar. The distribution contains dojo-0.4.1-ajax.zip. How can I configure my app to use the newer version of Dojo?Thanks in

Help - cannot access web service outside web proxy

4377 byte By pavel1233a at 2007-11-27 0:56:42
I'm trying to access a public web service - and web proxy stops me from doing it.Here is my code:package test;import java.rmi.RemoteException;import javax.xml.rpc.ServiceException;import net.webservicex.www.WeatherForecastLocator;import net.webservicex.www.WeatherForecastSoap;import ...

Need Sample Example to start with EJBs

109 byte By bdontua at 2007-11-27 0:57:56
Hi can any one send me the specifications needed to run EJB project on JBoss Server using Eclipse IDE.

Question about Correlation set

656 byte By SpencerSa at 2007-11-27 0:57:59
There is a process: a proposer submit a claim, then it needs all the proposer's supervisors to approve, if any of them reject the request, the claim will return to proposer and process terminates. If all the supervisors approve, the process can continue. I know after the correlation set is ...

4.12 Equality and Comparison Semantics - asking for some explanation

630 byte By JacekLaskowskia at 2007-11-27 0:58:00
Hi,I'm studying JPA spec and came across an issue understanding the following note in 4.12 Equality and Comparison Semantics page 106:Note that the arithmetic operators and comparison operators are permitted to be applied to state-fields and input parameters of the wrappered Java class ...

How to read the error messages from java console..

410 byte By JoeBorlanda at 2007-11-27 0:59:36
HaiHow to read the error messages from java console..Bcoz i am compiling java file from jsp and try to print the compilation error in the browser itself.The class file is created after sucessfull compilation. But if compilation error occurs it will printed in the tomcat console.I want to ...

xalan backward compatibility problem

1600 byte By mehul_patela at 2007-11-27 0:59:44
I am migrating my application from Jrun to JBoss.And I am getting the following problem.java.lang.VerifyError: (class: org/apache/xalan/xpath/xdom/XercesLiaison, method: parse signature: (Lorg/xml/sax/InputSource;)V) Incompatible object argument for function calljava.lang.Class.forName0(Native ...

connection pooling

198 byte By raghu2ta at 2007-11-27 1:00:43
Hi guys, This is my first time working with Jboss 4.0.2 server and iam not aware of the configuring for connection pooling. Can u make me work it out?Thanks,Raghu.

apt ant task suceeded but did not generate wrapper java/classes

1397 byte By hjuilinga at 2007-11-27 1:00:57
Hi, This is the first time I use apt task. Could someone help me out here.Thanks. Ant build suceeded but did not generate wrapper java/classes. Warning message I got is [apt] warning: Bad annotation processor factory: java.lang.ClassCastException: ...

How to set a timeout for a ws call?

1305 byte By Mr_Nicotraa at 2007-11-27 1:01:17
Hi all. I tried looking inside the forum though I couldn't find anything about this, please, if I'm wrong let me know.The issue is the following, the company has a mainframe that exposes through CICS-SOAP a webservice which is known to be running properly (lets call it WS1). I am developing a ...

Validator cannot be created

1397 byte By ethical_anarhista at 2007-11-27 1:02:20
I get UnsupportedOperationException when trying to create a validator:Exception in thread "main" java.lang.UnsupportedOperationException: This feature is not available in JAXB RI 2.0at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.createValidator(JAXBContextImpl.java:663)at ...

Read/update large xml files

815 byte By Srikanth_Ma at 2007-11-27 1:03:00
Hi,My requirement is to store and update data in xml files (no other option) which can be of size > 100MB. This is what I am doing at the moment..1. In order to be able to modify, delete nodes easily I am using DOM (Dom4j) 2. As the file size is blowing up memory I have decided to distribute ...

web services issue

875 byte By kollareddya at 2007-11-27 1:03:29
Hi all,I am new to web services. I am using weblogic 9.2, spring 2.x(latest version), xfire 1.2.5.I have a stateless session bean that needs to be exposed as web service. I did everything as speciifed in http://www.tsolak.com/?p=15The ear that includes the war is deployed fine. But in weblogic ...

Resouce is not available in bean constructor

2147 byte By lngo77a at 2007-11-27 1:05:06
Hi,I want to execute a method periodically. So I try to create a session bean with a TimerService resource declared. In the constructor of the session bean I used the timer service object to create a timer. I also annotated a method with @Timeout so the method would be invoked everytime the ...

How to deal with localization (locale)

608 byte By Mellona at 2007-11-27 1:05:19
In my web application , I wanna implement a localization feature, for example, the date shown on the page will be different format according to the place where is the user. Also the unit like(kilogram) on the page be shown use the current local representation (like pound, kg,ect). Is there any ...

sendning emails using gmail

93 byte By Mahesh.Pa at 2007-11-27 1:05:59
Hi All,is it is possible to send emails using gmail?Thanks,Mahesh

How to call EJB2.0 from one application in another ?

623 byte By parshuba at 2007-11-27 1:06:16
hi,I am new to EJB, and we have an application made in EJB2.0 that has an architecture as follows: web-->service/business delegate-->control(session beans)-->entity beans.I need to to access data provided by one application from another application.I believe EJBs provide different ways ...

Tutorial JMS

112 byte By JPABLOa at 2007-11-27 1:06:56
Hi, I'm new in JMS and I need a "JMS tutorial for SJAS 9". Sb have got any?ThanksJP

How can I get a reference to the Local interface of a EJB 3 session?

2584 byte By Cindy2007a at 2007-11-27 1:08:07
Hi,How can I get a reference to the Local interface of a EJB 3 session?My session implements both the local and remote interfaces, so in my client, when I look up the remote interface using the following code, I did get a referenceprocessor = ...

Java Mail

493 byte By PrathimaPrasunRaoa at 2007-11-27 1:08:20
Hello sir,My system has Eclipse with j2se 1.6 installed.I would like to know what needs to be downloaded in order to develop java mail application.I have a JSP.Within this jsp, when the user clicks submit button an email needs to be sent to a particular email id.I think Java Mail program would ...

Remote Print Java Applet

8357 byte By vpirea at 2007-11-27 1:08:47
I am trying to write an applet to run on jboss so the client can access it and print out the barcode label through client zebra printer connected to client parallel port. Below are my source code for the applet. However I won't be able to print the label out from the client machine at all. I ...

XSLT - if condition

281 byte By kk_da at 2007-11-27 1:09:21
hi i wanted to check a value with condition.something like this <xsl:variable name="rootname" select="name()">i wanted to check whether the $rootname= SportsData.how will i express this condition in a conditional statementrgds

Problem in Jboss EJB

2991 byte By raviadhaa at 2007-11-27 1:09:45
Hi,I am new for EJB. i have written a Entity bean using xdoclet. there are list of classes what i am using jboss.xml , jbosscmp-jdbc.xml ,mysql-ds.xmlenvironmentjboss4.0, Eclipse3.1, Mysql4C:\j2ee_servers\jboss-4.0.4.GA\server\default\lib\mysql-connector-java-3.1.6-bin.jar*********** Jboss.xml ...

ClassCastException - While type casting Home object after EJB JNDI Lookup

1646 byte By keerthi5678a at 2007-11-27 1:09:52
Sun One Application Server throws a ClassCastException when I try to type cast Home object to it's respective interface type.Here is the code ==============================================Object obj = PortableRemoteObject.narrow( context.lookup( jndiName ), ...

how to compare the contents of two XML documents

714 byte By tina66a at 2007-11-27 1:10:30
Hi all,I was trying to compare the contents of two xml documents, they are both validate for the same XML Schema. i was using the xmlunit to do this. but some how it doesn't work like what i have expected. for example:1.xml : ...

wich javamail et jaf for jdk 1.3

110 byte By JusteUneQuestiona at 2007-11-27 1:11:25
Hello i'd like to have a link for downloading javamail api and jaf to work with jdk 1.3. Thanks a lot.

ArrayList/LinkedList data displayed in a table

3025 byte By evepokuaa at 2007-11-27 1:11:48
Hello,I have successfully retrieve data from a Database to which I'm using a LinkedList.The data is being displayed in a servlet but I would like to display it in a table with all the columns.The following is what I have so far.The romete interface defines my method as: java.util.List ...

EJB 3.0 Locking (entity not in the persistence context)

3883 byte By paataa at 2007-11-27 1:11:58
hi all,i have some problems about locking,i have 1 remote and one local interface1. Remote Interfacepublic @Stateful@Remote(RemoteInterface.class)class RemoteInterfaceBean implements RemoteInterface{@PersistenceContext(unitName = "CustomerCareOracle")private EntityManager oracleManager;public ...

JMS Queues

348 byte By mynaa at 2007-11-27 1:11:59
Which Queues can be used as JMS Queues to send and receive Asynchronous messages. i.e; Can any one please mention the example queues? I know some queues like ( MQ Queues, SOnic Queues, Tibco Queues). Are they the queues which can be used for JMS queues? If not what we use ? If you any links for ...

JMS suscriber

1074 byte By Palexa at 2007-11-27 1:12:21
hello im french excuse my english...i have realize a jms server with a topic name MYTOPICi create 2 clients each one nead to create a distinct DURABLE suscriber FirstSub and SecondSub after i atatch a listenner on each suscriber.another client can post message with publisher. its work fine. ...

How to edit org.w3c.dom.DocumentType?

481 byte By RidwanHabbala at 2007-11-27 1:12:32
Hi all, I'm creating xml files using org.w3c.dom.Document. I want to add the DocType. I see on the net that DocumentType is readonly http://www.w3.org/2003/01/dom2-javadoc/org/w3c/dom/DocumentType.htmlis there a way other than importing and using jdom.jar to do so. it's really disappointing ...

unable to run jar file from command line

3094 byte By JVasilisa at 2007-11-27 1:13:12
i have created a jar file from a java SE application, using java persistence, in NetBeans environment. The application is executed normally via netBeans, but from command line I get the following exception, even though I have correctly set the classpath ...

What is use of Home BL methods

177 byte By anilpatroa at 2007-11-27 1:13:16
hii m new to EJB. Actually i want to know, is there any necessity of Home BL methods, as we have remote BL methods, which can provide the business services for us.