XML formatting not fine in a text editor

634 byte By Priya_Indiaa at 2007-11-27 9:43:00
Hello Experts,am generating an xml file through a java program using javax.xml.parsers.Following is the format of file (say for eg) generated when i see in notepad<root><tag1>val1</tag1><tag2>val2</tag2></root>which is not required. I want the file to be in ...

Problem with running EJB Program in NetBean 5.5.1

369 byte By loginforma at 2007-11-27 9:43:10
Hello,Any body know how to run the EJB program in NetBean.I am using Application server 8.1 and NetBean IDE 5.5.1.While running the source code of EJB(available at http://www.netbeans.org/kb/55/ejb30.html)its giving the deployment discriptor build.xml not found error.How to solve this one.Pls ...

Exception got in deployment of EJB3 .ear

6384 byte By Rocker007a at 2007-11-27 9:43:29
Hi All ,I am using ejb3 along with JBoss 4.2.0 , Java5 and Oracle Toplink as the persistence provider and Oracle 10g . After having deployed my datasource successfully , when I deploy my ear file , I get this error :Please help me out .11:17:51,078 WARN [ServiceController] Problem creating ...

How to use EJB ?

229 byte By Vansha at 2007-11-27 9:43:51
Hi to all,I m new in EJB i want to how to create first ejb program n how to deploy it on weblogic server also how to run it ? please send me good link for EJB.Expecting for favorable reply Vansh

exclude http headers from reponse?

1240 byte By worapoj@gmail.coma at 2007-11-27 9:43:53
Hi all,I post data to a server and get response[in xml] back like thisSocket theSock = new Socket(serverhost,80);PrintStream ps = new PrintStream(theSock.getOutputStream()); ps.println("POST /url HTTP/1.0");..SAXBuilder builder = new SAXBuilder(); //==<< get reponseDocument doc = ...

Java and Microsoft Exchange 2007

4970 byte By craig1980a at 2007-11-27 9:44:10
Hi.I'm trying to connect to microsoft Exchange 2007 by using javamail on IMAP.I'm using this code:import java.util.Properties;import javax.mail.Session;import javax.mail.Store;import javax.mail.event.ConnectionEvent;public class MailHandler {/** * @param args */public static void ...

Circular Dependency - Local EJB Lookups

4730 byte By SandyShah-Indiaa at 2007-11-27 9:44:59
Hi all, In My Enterprise Application I have two EJBs with Local Interafaces.Both the beans are packaged within same EAR.For some functional reason both the beans are dependent on each other i.e. circular dependency.While deployment It shows me following error:Error loading deployment ...

sending mail programatically

4994 byte By Java_Aspiranta at 2007-11-27 9:45:27
hI GUYSThis is sri, i need to have done an application to send mails programatically, below is the code, can any one fix the bug or give me the code which works fine?Any help will be appreciable!!!!!!Thanks & Regards,Sri.CODEimport java.util.*;import java.sql.*;import javax.mail.*;import ...

Create and write XML

363 byte By txatia at 2007-11-27 9:45:33
Hi,my app has to output an XML file with the results of the process, so I need to create the XML and write it to file.It will be a small XML, and I' ve got the DTD syntax.I use jdk 1.4, and only included libraries.My question is, should I use SAX or DOM? JAXP? how to link with the DTD?Examples ...

newbie question - servlets and JMS

10134 byte By mlynch147a at 2007-11-27 9:45:49
Hi GuysIm trying to write a servlet that receives a File and then sends it using JMS.... i have some basic code in place (from examples ive fouond) ...Ive written 2 classes 1) a servlet that receives the file2) a requester that sends the data to the JMS QueueBut there is a couple of things im ...

About Web Service

172 byte By GYANa at 2007-11-27 9:45:53
Hello to All For creating web service i know abt wsdl , axis not anything elseplz give me some guide line and steps to creating web service from eclips

JTA problem - class not found exception after database operation.

946 byte By dev_viveka at 2007-11-27 9:45:57
Hi folks,I am using Kodo for persistence in weblogic 10.0.For data source with (configuration Non-XA , two-phase commit, Global transaction),when enabling transaction Required for my MDBs, i am gettinga class not found exception for my entity class, after all operations.Entity persistence is ...

Webservice Endpoint URL

186 byte By TouringBMWa at 2007-11-27 9:46:02
Hello,I have developed a Webservice Client in Netbeans 5.5 It al works perfect, but how do i change the URL for the ENDpoint or the URL from the webservice?Greetings

What directory to put bean classes on application server PE9

545 byte By robert_t_stonea at 2007-11-27 9:47:07
Hello Everyone,I am new to Java EE and I am in need of a little assistance. I am in the middle of a JSP tutorial and it is teaching how to apply the <jsp:useBean> tag however I am unsure of where to put my complied bean classes on the server so that it can find them. Is there a special ...

Merge Two XML Files -> without using document() method of xsl

1588 byte By sat_83a at 2007-11-27 9:49:38
Hi,I have 2 xml files as shown ...

@EJB Injection use or not ? Portable or not ?

1316 byte By Solraca at 2007-11-27 9:49:39
I test a simple EJB in OC4J and JBoss, both have problems to use dependecy Injection with EJB. I test dependency injection in a JSF managed bean and.The @EJB(name="application/EJBX/local")run in JBoss and the address of EJB is "application/EJBX/remote or local"To return this object by lookup ...

classnotfound when POP3s account connected to before IMAPs account

4305 byte By zparticlea at 2007-11-27 9:49:49
I have implemented the DummySSLSocketFactory stuff for handling unsinged certs on POP3s ser vers and it works fine, However is I connect to one of these servers before connecting to an IMAPs server I get the following error:javax.mail.MessagingException: java.lang.ClassNotFoundException: ...

about javamail

5904 byte By abhinay_31a at 2007-11-27 9:51:24
can anyone tell me what is the meaning of following error/takeaction.dqlhalfleave= 0.5 Error Message: Operation not allowed after ResultSet closed Cause: null Error code: 0 Error state: S1000 java.sql.SQLException: Operation not allowed after ResultSet closed Error Message: Error during query: ...

About pop3

666 byte By youhaodiyia at 2007-11-27 9:52:33
I use these program to get the email from my email server:Properties props = System.getProperties(); Session session=Session.getDefaultInstance(props,null);Store store = session.getStore("pop3");store.connect(email_host,username,password);Folder folder = ...

How can i get only non-read email?

50 byte By youhaodiyia at 2007-11-27 9:52:38
Can I check whether an email has been read?

How to send a HTMl content via email

307 byte By VenkataRajesha at 2007-11-27 9:53:12
Hi all,I want to send a html content via email. A html page is having an email link. On clicking the link it should prompt for to address and from address and should send what ever the content in that HTML page as the mail body. Can anybody help me out!!!! Its Urgent...Thank ...

Mail Server

397 byte By Abbskoola at 2007-11-27 9:53:38
Hi Iam Shishir ,I need to develop an application that sends emails to various email addresses.Is it necessary to install a SMTP mail srever?If so please tell me, where i can get it?I f it is not necessary to install the mail server, then please tell me how to achieve the same objective ?I am ...

Passivation/Activation extended entitymanager

245 byte By p2auljra at 2007-11-27 9:54:15
If I have a stateful session bean that has been passivated and uses an extended entitymanager and has a reference to a managed entity, will the managed entity be detached from the extended entitymanager when the session bean is activated?

How to send 20 mail?

144 byte By boske3a at 2007-11-27 9:55:08
Hi i got one problemI need to send about 20 mails with attachments in the same time.Has anyone has idea how to do it.Thanks

When transaction starts and finally ?

1268 byte By Solraca at 2007-11-27 9:55:24
Hi, i have a questiom from container transaction.If i have a servlet-->businessdelegate-->sessionejb-->entitybean-->databaseWho begin a transaction ? and when the same finally ?/********* Servlet *********/...call... businesDelagate.actions(XXX);/********* BusinessDelegate ...

XSL comparison ignore case

168 byte By Sheni_a at 2007-11-27 9:56:20
Hi,How to do string comparison in XSL by ignoring case.test="($pr= 'yes')I want this conditon return true even if pr is Yes or YES or YEs.

Stateful Session Bean Initialization (EJB 3.0)

268 byte By albertthea at 2007-11-27 9:57:35
Hi all!In EJB 2.1 the initialization was with create (args) methods. NOw, how is it exploited? Create methods are no more there and there must be a way to send parameters to the stateful session bean when it is newly created...isn't it?Thank you!

javamail

673 byte By abhinay_31a at 2007-11-27 9:57:46
hi i am facing one problem related the javamail actully i have using one javamail simple class but the thing is that that class is taking 4 parameter from,to,sub,mess so this class i am calling from my servlet handler so in servlet handler i have created the object of this class and passing 4 ...

2 xml signatures in one xml document

133 byte By Ahmad_Khana at 2007-11-27 10:00:11
How can I sign a single xml document with 2 signatures and be able to verify both signatures as well.ThanksAhmad

SOAP in Servlet

346 byte By ticanoa at 2007-11-27 10:00:46
Hello.I have a problem in Servlet for responding for a request.I think I succeeded getting the soap request in my servlet.And I'm stuck in sending my soap response back.Is there anybody tell me exactly how to send my javax.xml.soap.SOAPMessage instance through HttpServletResopnse?Please help ...

JMS connection

112 byte By viciouslybluea at 2007-11-27 10:01:13
is is possible to have 2 connections to 2 different subscribers with 2 different topics at the same time?

Statefull Session EJB(2.1)朇lient Crashed朒ow to rollback the transaction?

1324 byte By nag1610a at 2007-11-27 10:01:17
I wish to begin a transaction (JTA) in one method of a statefull BMP EJB, call multiple methods from multiple client calls (which could even be JSPs/Servlets initiated by the user from his browser in a session), all the methods are in same transaction and would process the client input in the ...

Sending UTF-8 + HTML messages.

1223 byte By jimfixera at 2007-11-27 10:01:34
Hi all,I'm working on sending Turkish email to our customers, notify them that they need to activate their account before using our product. Email should contain a link that customers will click on, and it should be in Turkish. I store all messages in .properties file. MimeMessage message = ...

Serious javamail problem? socketRead0

1104 byte By Andremona at 2007-11-27 10:02:44
Let's imagine such experiment:1. we have java-program, which receives mail from some POP3 server.this program simple uses something like this:....msgs = folder.getMessages(1,1);folder.fetch(msgs, fp);....2. Let's imagine, that our test POP3 server has bug: in some moment, when our ...

Character encoding issue

510 byte By RajeevSahu_Sahua at 2007-11-27 10:02:57
I'm using the below give code to send mail in Trukish language.MimeMessage msg = new MimeMessage(session);msg.setText(message, "utf-8", "html");msg.setFrom(new InternetAddress(from));Transport.send(msg);But my customer says that he gets sometime unreadable characters in mail. I'm not able to ...

how to get successful delivery of mail.

330 byte By RajeevSahu_Sahua at 2007-11-27 10:03:04
I use to log all outgoing mails in a table and this code executes after successfull execution of Transport.send().Some time some of my customers complain that they are not receiving mails while we have logs in our table. Is there any way to get it confirmed that mail has been sent successfully ...

Netbeans Web Service GUI

864 byte By sabatiera at 2007-11-27 10:04:21
Hi everyone, I'd really appreciate any help on this matter. I'm trying to build a GUI for a web service. I want the GUI to accept input from the user which is converted to a soap request which is then sent to a server to be processed, and a response is sent back. I want to format the response ...

Using Lotus notes API

256 byte By rinkesh.patela at 2007-11-27 10:05:43
HI,Is it possible to recieve a new email in Lotus Notes from a Java Application? I am trying to write a application which keeps an eye on inbox for any new email. Anyone has idea to do this using Lotus notes API ? Thank you in advance.

Bulk Mail

683 byte By bib1a at 2007-11-27 10:06:07
Hi AllMy company decided to send email to nearly 20000 users on a weekly basis.=> I have the list of email address in a database.? How can I send email to so many addresses. I possible cannot make it into a string and put in to address string of javamail.? Any pointers on how to do this ...

package javax.mail does not exist (Still having trouble)

5685 byte By irbia at 2007-11-27 10:06:48
Good MorningI know that there are several posts regarding issues with javamail. I have viewed them for the past hour. While several of them address my issue I have been unable to locate a solution.Bare with me please, I am making this post very thorough. The other threads I have read are ...

Sending VRFY command using Java mail api's

161 byte By bdighea at 2007-11-27 10:07:11
Hi,How can I send VRFY command to verify email address. Is there any api to do this ?Any code examples would help.TIA,- Bharat

Consolidate XML End Tag on a single line

365 byte By akgorrella at 2007-11-27 10:08:32
By default, it seems JAXB puts the end tag on the second line. For example:<w:Element w:prefix="c" w:name="Person" w:isReference="false"></w:Element>Is there any way to tell the Marshaller to put the end tag on the same line so the output would be: <w:Element w:prefix="c" ...

XML/HTML to Excel (.xls) Conversion

341 byte By JChefa at 2007-11-27 10:10:55
Hi,Currently i'm working on a J2EE Project and in that project i generate someHTML reports. Now I want to allow user to save this report as a Excel File.Is that possible to convert HTML file in Excel file? if yes, Which is better to use ? XML or some third party software?Please ...

SMTP Error

2307 byte By WaqasAhmeda at 2007-11-27 10:10:58
Dear All, i am using mhsoftware event calendar while sending emails i am facing following error. with smtp authentication true.... DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]And javax.mail.NoSuchProviderException: invalid ...

about string buffer

593 byte By abhinay_31a at 2007-11-27 10:11:48
hi i have one problem in stringbuffer please anyone solve this problem here my code is there about the stringbufferStringBuffer=msg=null; msg.append("Your leave has been successfully sanction from");msg.append( " "+starttime[j-1]+" To "+endtime[j-1]+" "); after that i have passing msg value in one ...

JNDI lookup

1212 byte By mohitanchliaa at 2007-11-27 10:11:49
I have deployed ear file in Jboss and trying to run Java client as described in Sless example on one of the glassfish website. It's something like this:Properties props = new Properties();props.setProperty ...

SOAP over HTTP/POST

884 byte By sabatiera at 2007-11-27 10:11:54
Hi everyone, I'd be eternally grateful if someone could provide me with a quick + easy solution to the following (basic?) task.I have a user form with the required parameters and a submit button. I have an XML schema which specifies the format for the soap requests and responses. How do I accept ...

SOAP over HTTP/POST

884 byte By sabatiera at 2007-11-27 10:11:55
Hi everyone, I'd be eternally grateful if someone could provide me with a quick + easy solution to the following (basic?) task.I have a user form with the required parameters and a submit button. I have an XML schema which specifies the format for the soap requests and responses. How do I accept ...

Accessing an EJB from Struts Action class

2843 byte By jeganspa at 2007-11-27 10:12:13
Hi All,Sorry if this a repetitive question.When I am trying to access a stateless Session bean from a struts Action class, I am getting NullPointerException. It is a very simple application as I am a newbie in EJB. Please see my code below.My Local Interface:@Localpublic interface ...

Fetching user credentials on non-secure EAR

1096 byte By J2EEDeva at 2007-11-27 10:12:42
Hello forum,I have an Enterprise Application EAR1 which is security-enabled (means requires username/password to access the application using J2EE security defined in web.xml). On the same WebSphere Application Server I have another EAR2 which is non-secure (means user need not require ...