Unable to Send mail.

10755 byte By Java-Helpa at 2007-11-27 8:43:39
I am not able to send the mail with this code. It is giving the following error.javax.mail.SendFailedException: Sending failed; nested exception is:javax.mail.SendFailedException: Invalid Addresses; nested exception is:javax.mail.SendFailedException: 554 SPAM-Relay detectedPlease help ...

am NEW to JMS..

239 byte By ravi-kumar-123a at 2007-11-27 8:44:01
Hi evey one...........am new JMS.. i need JMS service one of my project..i have to start from scrach.. so please any one can help about JMS...its urgent.. waiting for ur replies..Thankx ravi

return LinkedList<Object>

123 byte By cuongdeutsch2@yahoo.coma at 2007-11-27 8:44:11
how can i return a LinkedList<Object> from Server to Client suppose that i have in Client already Object-class

RMI @ WebSphere

413 byte By 1337facea at 2007-11-27 8:45:01
Hello everyone,I've got an RMI application (it expose it's methods through RMI) and I need application to run at application server, namely IBM WebSphere / WebSphere CE. But I don't know how. I tried make servlet which instantialize RMI methods to expose them. But it doesn't work and in ...

web service client should use jndi look up or service factory

215 byte By patel123a at 2007-11-27 8:45:03
hi java folks,i am very new to web services.i want to know, client (servlet or jsp) that access web service should use JNDi lookup or serviceFctory to access web servicethanks in advance.

Urgent--Sun application server will not start

194031 byte By Scientist2a at 2007-11-27 8:45:47
I am having problems starting the sun application server 9. I get the following message:C:\Users\samuel\Exercise2\nbproject\build-impl.xml:440: Deployment error:The Sun Java System Application Server could not start.The server log is below Pleasssssssssssse help ...

WSDoAllReceiver: Request does not contain required Security header

3321 byte By maxpadea at 2007-11-27 8:46:16
hi all,i have a webservice connection which was using wss to creae a signature. Now i dont want to sign my webservice so i deleted all what initiate a signature. after deleting now im getting following error when sending a messageWSDoAllReceiver: Request does not contain required Security ...

Regarding beanness in case of 'afterCompletion' method

638 byte By NareshAnkuskania at 2007-11-27 8:48:50
In EJB 2.0 Spec Pg 81, it is said that Pt 1:Invoking the getCallerPrincipal and isCallerInRole methods is disallowed in the session bean methods for which the Container does not have a client security context.Pt 2:"Accessing resource managers and enterprise beans is disallowed in the session ...

java+xml

209 byte By BhavanamRa at 2007-11-27 8:49:13
aim : java program Input:xml file for a java program which contains japanese/arabic. output: printing those arabic/japanese characters to consolehello can any body help me please...

Handling Bounced Mails

626 byte By Venkysa at 2007-11-27 8:49:16
Dear friends,I am facing a problem. I have to develop a program to handle the Bounced mails. Actually, I am having a DB of thousands of Email IDs. I am sending Newsletters and announcements to these IDs periodically. If there is any problem with the IDs, the mails will be bounced back. Now, I ...

quoted-printable transfer encoding producing a single dot on a line

2222 byte By hauser@acm.orga at 2007-11-27 8:49:28
Subject: javamail breaking signatures - "mail.mime.cachemultipart" notalways working?Attachments: result.eml.zip; jottMini.eml.zipHi Bill,The below example reads a mime message from a file and constructs a new one from the bodyparts.Unfortunately, when writing the newly created mail to an ...

How I can view the content of a message which is inside the quque?

135 byte By Legolas.wa at 2007-11-27 8:49:53
HiThank you for reading my postIs there any way to view content of message which is inside the queue?Thanks

xml to pdf example

132 byte By Taigoa at 2007-11-27 8:51:15
hi!i need a java program to transform xml to pdf with fo.xsl file and i don't use apache libraries. is this possible?

Recieving formatted mails

410 byte By Subramanyaa at 2007-11-27 8:51:50
Hi friends,I am developing a mail client using Jakarta Struts. I am stuck up in a problem. I'm not able to recieve formatted text mails. Can anyone tell me the solution on how to go about this The content type it gave is "content type==>text/plain; charset=ISO-8859-1; format=flowed"But it ...

How to increment using TableGenerator?

690 byte By CJ_125a at 2007-11-27 8:52:01
Hi all,I have a simple program which is customer entry. I use the TableGenerator which to increment the number of entry? i am using netbeans 5.5.Here is the error.javax.ejb.EJBException: javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server ...

Using JDOM and JAXP v1.1 to validate XML

740 byte By C.R.Crena at 2007-11-27 8:52:10
I have a JDOM Document object which is constructed by my program. I need to validate the Document object against an XML schema on the fly (i.e. without saving the XML doc to the file system). I thought it might work to print the Document to standard output and have XMLReader parse ...

javax.naming.NameNotFoundException: service not bound

5569 byte By patel123a at 2007-11-27 8:52:16
hii am trying to access web services using JNDI lookup.this is my client code snippetctx=new InitialContext();//customerSessionRemote remote=(customerSessionRemote)ctx.lookup("customer/remote");Service service=(Service)ctx.lookup("java:comp/env/service/CustomerRegisteration");try { ...

Asynchronous Web Services

1106 byte By Guy_Hudaraa at 2007-11-27 8:52:56
Hi,I would like to implement an asynchronous web service. Here is my plan:1. Client call the web service with some input and a URL for reporting2. Web service check the input, and returns an error (synchroniusly) to the client if needed. If there is no error, it will start a new thread and ...

format-pretty-print doesn't work

845 byte By Eric-the-Ka at 2007-11-27 8:53:19
According to http://java.sun.com/j2se/1.5.0/docs/api/ I should be able to use the followingDOMImplementationLS domImplementationLS = (DOMImplementationLS) doc.getImplementation();LSSerializer lsSerializer = ...

using local interfaces for EJB (session bean)

878 byte By javaguy2007a at 2007-11-27 8:53:22
Hi,I抳e a question regarding when to use the Local interfaces(EJBLocal and EJBLocalHome) of a enterprise bean. I understand that calls to enterprise bean can be made locally if the client which is invoking is in the same JVM as that of EJB. I抳e written a web client (servlet) which is packaged in ...

How to prevent outOfMemoryErrors when performing XSLT transformations

2657 byte By balteoa at 2007-11-27 8:53:24
Hello,We frequently have out of memory errors when our XSLT transformations run depending on the size of our source xml documents. Here is the code that causes the above error to occur:System.out.println("XSLT transformation running...");TransformerFactory tFactory = ...

help regarding books..

339 byte By martiana at 2007-11-27 8:54:25
hi,i need some help regarding the books on advanced java ..the topics i am going to cover are :J2EE application modelJSPStrutsEJBIntro. to HTML and XMLPlease suggest the books which help me to have a good grip on these ...

help regarding books..

339 byte By martiana at 2007-11-27 8:54:26
hi,i need some help regarding the books on advanced java ..the topics i am going to cover are :J2EE application modelJSPStrutsEJBIntro. to HTML and XMLPlease suggest the books which help me to have a good grip on these ...

How to list queue subscribers

180 byte By avirana at 2007-11-27 8:55:36
Hi all,I'm trying to find a way to find out how many clients/subscribers a specific queue has. Is there a way to find out (using java API)Thanks,Aviran

unscribe

156 byte By ElisaCappaa at 2007-11-27 8:57:28
I'm sorry but I need tu be unscribede from the email. I have already triede to unscribe but still receive mail. How can I do this?Help

Purpose File Data Source

548 byte By oasis.deserta at 2007-11-27 8:58:11
FileDataSource filedatasource = new FileDataSource(filename); messagebodypart2.setDataHandler(new DataHandler(filedatasource)); messagebodypart2.setFileName(filedatasource.getName ()); Multipart multipart = new MimeMultipart(); multipart.addBodyPart(messagebodypart1); ...

Professional opinions on web development platforms

1171 byte By noroutea at 2007-11-27 8:58:20
Dear JEE developers,I'm currently part of a research team at the Free University of Berlin, looking into the ways in which the major web development platforms differ. In addition to our work with the Plat_Forms contest, we're now looking for actual professional opinions.If you have practical ...

Can I send large data as a stream in request or response

459 byte By .@_a at 2007-11-27 8:59:43
I have to send a large amount of string data as a part of request to the web service provider. I cant send it as a simple string object as it will lead to OutOfMemory error. Is there any way so that i can send the data as a stream to the web service provider? I couldn't find anything in web ...

getting sql exception when using EJB 3.0 with Java Persistence API

1969 byte By pantulaa at 2007-11-27 8:59:56
Hi,On my PC when I run the sample applications in Java EE tutorial I don't get any errors. But, when I try to run my own code, then I get the SQL exception. I paste the exception stacktrace below.The exception says that the column is not present. But, the column is actually present. The named ...

j2ee connector

554 byte By xleybaa at 2007-11-27 9:00:05
HiI'磛e a package that allow applications connect to an IBM host using sockets and 3270 telnet protocol.I want to isolate and standarize such layer using JCA to run it as a resource adapter in an application server.I'm new to jca and reading specification is drivin me a little bit confused. ...

Remote JMS

2440 byte By channegan1a at 2007-11-27 9:01:24
I'm looking for information on having my application (deployed on SAS9.0) access a remote JMS (deployed on jboss-4.2.0.GA AS using jboss-messaging-1.3.0). More specifically, I want my application to publish messages to a topic (I'm not too concerned about subscribing to a topic yet) that's ...

passing variables frm xsl to a java method

4487 byte By Deathsbaina at 2007-11-27 9:01:25
here is my current frustration -- aside from being new to java and xsl...i have an xml message (that is passed to me from another process) as follows:<?xml version="1.0" ...

A question about the term: "asynchronous web service"

366 byte By Guy_Hudaraa at 2007-11-27 9:01:26
What is exactly the meaning of the term "Asynchronous Web Service"?Does this mean that the Service itself returns immediatly, but the operation continu working on the server side?Or,The client starts a new thread which call a SYNCHRONOUS web service, in this way the client does not block until ...

Need example of client requesting information from server

615 byte By jneaua at 2007-11-27 9:01:53
I have a thick-client application that also acts as a server for remote clients.I have it set up so that they send messages to each other. The server can initiate action on the client and the client can initiate action on the server.All of my communication is essentially asynchronous.Now I want ...

"that domain isn't allowed to be relayed thru this MTA " : Problem and fix

1064 byte By Ni_Mina at 2007-11-27 9:02:25
I am using Java mail to send emails out at work through my web email account.Sometimes it works fine, but after a while, it gives me the following error :javax.mail.SendFailedException: Invalid Addresses; nested exception is:com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain ...

Initialize a web service when Tomcat startup

525 byte By JWKC-5ivea at 2007-11-27 9:04:00
Hi,I have a web service, built using Axis 2 1.2, that will do all the initialization at the first service call (e.g. create new database tables, create JAXB objects, etc), but it's taking too much time to do those tasks (at least twice slower than a normal service call with everything ready).i ...

Return valueb

252 byte By tmmeta at 2007-11-27 9:04:43
Hi,I am new to EJB.I am creating session beans (stateless) .Can anyone say me whether it is ok to have return value as int in an ejb method ?Also, can I call a singleton class's method from a bean method ?Thanks in advance,

XML validation problem, please help

2515 byte By tinnya at 2007-11-27 9:04:49
HiI'm not usually one to post heaps of code in a forum post but im sorry to say that this is the only way I can show you my problem.I'm stuck on this one! (I don't know much about XML)I am getting the following exception message when running my XSD validation on an XML document: "cvc-elt.1: ...

Parameters

234 byte By tmmeta at 2007-11-27 9:04:51
Hi,I am new to EJB.Can anyone say me whether I can return ArrayList from my bean method ?That is, all my input and output parameters of my bean method must always be serializable objects ?Thanks in advance,

getting : org.apache.derby.client.am.SqlException

2315 byte By pantulaa at 2007-11-27 9:05:16
Hi,I am writing a small appl. where I am using EJB 3.0 with Java Persistence API. If I execute the sample programs in Java EE tutorials, then the programs work fine. But, when I try to run the sample application I get the error below. I am using the following named query.@NamedQuery(name = ...

J2EE 1.4 install Problem

272 byte By springwindera at 2007-11-27 9:05:55
for frist time it is successful for installing j2ee1.4,but when i uninstall it for something, it can not install successfully again;the message is:checking disk space, at this page it stop and can not enter the next page;for help;thanks;

I have a question. It's about EJB 3.0 Persistence API...

1420 byte By qwfea at 2007-11-27 9:06:37
Hello.I'm studying Java persistence API..I tested a few Annotations.Example..@@Entity@Table(name = "EJB_ORDER_VENDOR")@NamedQueries({@NamedQuery(name = "findVendorsByPartialName",query = "SELECT v "+ "FROM Vendor v " + "WHERE LOCATE(:name, v.name) > 0"), @NamedQuery(name = ...

How to download SUN J2EE source codes?

70 byte By liaodongyana at 2007-11-27 9:06:40
Especially those Java source codes under the javax.ejb package.

How JPA Transactions Work ? DAOs and Transactions generic is possible ?

1054 byte By Solraca at 2007-11-27 9:08:13
Hi all, I have a question respect to a EJB3.0 JPA Transactions work.if i have the folowing code inside EJB container:In a Generic DAO:public Object mergeEntity(Object entity) {return em.merge(entity);}public Object persistEntity(Object entity) {em.persist(entity);return entity;}In a ...

i am not able to set JMSMessageID when i publish a message to a queue

756 byte By Your-Answera at 2007-11-27 9:08:16
Hi, I am trying to set JMSMessageID using Message_id="5555";tmessage.setJMSMessageID(MESSAGE_ID); statement. but i could set that id. the EMS server is setting some id by default. is there any possibliity to change that id and give user definied id? if so let me know how to do that. the below ...

reference EJB from servlet's action/helper classes

784 byte By STFa at 2007-11-27 9:08:52
HelloHow to make a reference to stateless session bean from one of the helper classes of a servlet WITHOUT using any of these:* dependency injection (like @EJB) - I think this is not supported in this kind of class, EJB references can be injected only to servlets themselves or some other things ...

JRE 1.5 VS. JRE 1.6 - Could not convert socket to TLS

5993 byte By zparticlea at 2007-11-27 9:09:14
I have an applet that is trying to send an email through an SMTP server. It works just fine 1.6 but on 1.5 it blows up and I'm kind of at the end of my rope. Any help here would be great.I've had to set up the DummySSLSocketFactory as described in the JavaMail readme but still no luck on ...

Getting XPath from current Node

1225 byte By andrers2ba at 2007-11-27 9:10:12
Hey everyone,I have a JDom document and I'm trying to visit all the nodes and print their path. How do I do the printing?This is what I have (from javaalmanac):// This method visits all the nodes in a DOM treepublic static void visit(Node node, int level) {// Process node// If there are any ...

Preserving whitespace in DOM

363 byte By ysh78NJa at 2007-11-27 9:10:48
Hi All, Suppose I have an xml fragment within a valid xml file which is like "<input name='test'>". When doing DocumentBuilder.parse(xmlString), is it possible to preserve the space after 'test' and before '>'? Right now when I print the document the whitespace is stripped. I'm ...

how to auto email the generated jsp output page

187 byte By stalin_111521a at 2007-11-27 9:12:37
hi,guys i know how to mail and all that stuff.My present situation is to mail the jsp output page(that is the last page in my application)so thanks in advance.