Hi,Below is my piece of code where i access a web service that returns a xml as a string. I apply a xsl tranformation on it and try to store the result as a string. I get this error messagejavax.xml.transform.TransformerException: Result object passed to ''{0}'' is invalid.at ...
Hi, I test the follow Jguru tutorial code for getting atacchements-Multipart multipart = (Multipart)message.getContent();for (int i=0, n=multipart.getCount(); i<n; i++) { Part part = multipart.getBodyPart(i)); String disposition = part.getDisposition(); if ((disposition != null) && ...
Hello,i'm modifying existing EJB code, but i'm completely new in EJB :(Inside the method addClient - i would like to do partial rollback.I invoke createClients to add clients to the databse. If one client for some reasons (some business rules) couldn't be added to the databse, then the ...
Hello, I am planning the development of a web application/web service which asks users questions according to a script represented in XML. There is likely going to be many hundreds of such XML scripts.I would like some advice as to the best way to handle this XML data, particularly in terms of ...
Hi,I am wondering if there are any Java API for identifying the character encoding of a text content. I came across NGramJ but not enough documentation to integrate with my application. Any help would be appreciated.Thanks.
I am trying to deploy the cb-jaxws project from the coffee break example in the Java EE 5 tutorial. I am able to build the cb-jaxws project using ant and NetBeans 5.5 but I cannot deploy it. I get the following error (from NetBeans and ant)wsgen successfulError parsing ...
hi friends.. this is vamsi from india.. i have been working on jsp, java bean, xml, jms, message driven bean , ejb and database from last couple of days. but i am not able to retrieve data from fields in xml file to jms. can any one help me out in retrieving the data from xml to jms..thanking ...
144 byte By
gsoapa at 2007-11-27 5:45:09
Hi,I am referring to "org.w3c.dom.Document".How can we set the Document Type Declaration (DTD) of a document?Thanks.
5845 byte By
waipuna at 2007-11-27 5:45:22
Dear all,Would you please help to solove the problem? In the code, my flow wen to the else caseI tried to connecton to Exchange server. When I try to telnet the 995,$ telnet <mail server IP adddress> 995Trying <mail server IP adddress> ...telnet: Unable to connect to remote host: ...
457 byte By
MAYAa at 2007-11-27 5:45:40
Hi i have a zip file with size 7.2MB(approx 7549747 bytes). In thunderbird mail client(linux version) i created a mail with this file as attachment and saved that mail as eml file in my hard drive. After that i read that eml file using JavaMail API, but it gives the attachment size as 10159900 ...
10561 byte By
Lepr8a at 2007-11-27 5:45:54
must send a mail use a SMTP with SSL.This is an example of my code :public void sendMail(String destinatario,String mittente,String oggetto,String messaggio,String fileName,String fileNameInMail)throws Exception{if (protocol.equals("smtps")){ Security.addProvider( new ...
Hey folks,i am wondering if there is a C client for JMS which doesn't require a java-Proxy?I know the active-mq website, but the c/c++ client section there is really confusing and it seems that no one takes care of it anymore:The active-mq website suggest the following as c/c++-clients:It is ...
Dear All,I have a java program which will iterate all nodes from xml document.But i want to return/display each node's XPath with out using any DTD and XSD file standard.Please help me!.Thanks in Advance Saravanan.P
How to use annotations for this classes:public class Document{private int id;...}public class DocumentItem{private int id;private Document document;...}to obtain that schema (especially primary key constraint for table documentitem):create table document(id decimal not null,...,primary ...
800 byte By
Kyprysa at 2007-11-27 5:46:22
Hi guys,I installed Java Application Server on my PC (OS OpenSuse 10.2) and have a very serious problem when trying to run Application client modules that use EJB. Starting with Duke's bank and ending with more simple applications I always get the following error: Duplicated project name in ...
441 byte By
karan88a at 2007-11-27 5:46:27
Hi Friends,I am new in EJB , In my application i have one form which takes userName n password and send it to session bean for validation.But i dont know how to pass the parameters from jsp to Bean.(Here iam calling servlet which takes the parameters from jsp but dont know further process means ...
143 byte By
Dudleya at 2007-11-27 5:46:28
Anybody has a working example of a simple EJB? with the explanition?I'm quite new to EJBs.Need some help over here.Thanks
800 byte By
Kyprysa at 2007-11-27 5:46:54
Hi guys,I installed Java Application Server on my PC (OS OpenSuse 10.2) and have a very serious problem when trying to run Application client modules that use EJB. Starting with Duke's bank and ending with more simple applications I always get the following error:Duplicated project name in ...
353 byte By
andhabla at 2007-11-27 5:47:08
Hi there!can anybody tell me the necessary steps to access a remote ejb from an ejb-project running in an other app-server (sun app server 9).I've searched for a while but all i found was confusing.I've good skill in java programming and want to step into ee5 technology. any hints are ...
String str="abc1,ss10";String strArr[] = str.split(",");here i want to split string and intigers separatelly, for example 'abc1'i want to split this...i want to display only charecters.....plz help me
7558 byte By
pajasa at 2007-11-27 5:47:32
Hi!I have found lots of documentation on how to send messages to a SOAP server when the xml is already specified. A lot less is written how this should be done programatically, and I can't find the solution to my problem. (I think doing it programatically is more pretty....)So, I got my web ...
Hey,How to obtain Entity manger in application server ?The class is a simple class (no Ejb), and i can call to this class from Ejb or from inner schdeuler process (not container management)I want that if i call to this calss from Ejb , that the entity manager transaction will join to the global ...
Hey,The user in my system can create his personal schema, so i need to work with multiple schemas.As i understand i need to create at run time persistence unit for each schema.The problem is that my DAO i inject the entity manager in the following ...
I compiled and deployed the HelloService example according to the jee tutorial documentation. This worked fine and the service showed up in my Java Application Server and the web based test ran fine.When I try to compile the client program SimpleClient, I get the following error and the xsd ...
271 byte By
JUnkiea at 2007-11-27 5:49:41
Hi,What tools do you use to unit and integration test your Session and MD Beans (especially EJB 3.0)?MockEJB and Apache Cactus only seem to relate to EJB 2.1. Not sure about JUnit (junit.framework.ejb.ServerTestCase).Thanks!Best Regards
790 byte By
lindda at 2007-11-27 5:50:59
Hey guys, I got problem when I tries to parse a rss feed url to dom. It works fine with most xml urls. However, e.g, " http://digg.com/rss/index.xml" doesnt work at all. It gives java.net.SocketException (connection reset). So I reckson it even could not open the connection to that url.Not sure ...
1618 byte By
djnosea at 2007-11-27 5:52:06
Hi,i just got a question, not really a problem. So let me try to explain.We receive mails from a groupwise server. Sometimes (not every mail, but some, could not find out which) i am getting a nullpointer if i ask for the contentType.If i now read the message, write it back .. the rest will ...
I'm trying to run a testing jsp file for JMS (without MDB) on WAS 6.0. I've done below configuration but there is such a exception when calling QueueSession's createSender method: javax.jms.JMSSecurityException: MQJMS2008: failed to open MQ queuecom.ibm.mq.MQException: MQJE001: Completion ...
When i tried deploy this web service in my end. http://www.netbeans.org/kb/55/websvc-jax-ws.htmlI am getting this error.D:\NetBeans\CalculatorWSApplication\nbproject\build-impl.xml:453: Deployment error:nullSee the server log for details.BUILD FAILED (total time: 0 seconds)Under my Netbeans 5.5 ...
1073 byte By
xhreskoa at 2007-11-27 5:53:04
I am using NB 5.5.1 with JDK 6 and I am building an web service application. When I try to connect to my web service following error appears :java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from ...
266 byte By
Mellona at 2007-11-27 5:53:49
Hello, I am doing one project, which is a forum. login user can write message and send to another user(user B), when user B login, the forum will inform him he has a message from user A. to implement this, Is it compulsory to use JMS? or not necessary?
1358 byte By
vikenga at 2007-11-27 5:53:51
Hi Guys I am stuck in a problem for which I need your help.I have used Enum.java class and provided a typemapping in the wsdd as follows<typeMapping xmlns:ns=" http://localhost/hth/services/Equipment?wsdl" ...
Hi,How can I carry out an xsl transformation in java without validating the xml document?regardsanand
Hi there!I have a case where I have to reuse a xml Source for some transformations. Is there a way to do that, or do I have to build the Source again and again?Kind regardsKai
I get an exception when performing a delete with jpql.Why doesn't the parameter ContactId get interpreted?Here is exception and relevant code:Servlet.log:at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)at ...
Hi All,I am using Weblogic App. Server and I want to write code for encrypting the data sent through the Java Web service. I am new to this so can anyone please tell me the steps for that? If you have working code for that, it will be of great help. Its very very urgent for ...
[Out-of-container,]1. Can JPA handle multiple persistent units defined in multiple persistent.xml files?(If the files are in the classpath.) In other words, if it can't find a unitName given when instantiating the EntityManagerFactory, should it check the classpath for additional ...
hi all,i have an xml file with lots of stuff in it that uses an xsl to display...my question is how can i open a new window by clicking a button ...may be if i click the button name "new" it open a new window with www.yahoo.com. The button is already there only need help to find the perfect ...
I would like to know whether native XML databases are still something that are being developed? I ask because I am struggling to find very up-to-date references to these technologies, and I didn't want to embark on using a system like Xindice if it isn't going to be developed/supported in the ...
Hey,Can i have a private variable in a stateless session bean (Ejb3)?Lets say that i want to implement a DAO as a stateless , so i have a CRUD functions.create, find ...all of them need to use entity manager (i cant use injection because i dont know the persistence unit name at run time)So i ...
I am evaluating the Sun JMS MQ implementation and I am trying to determine if messages sent to a Broker within a Cluster are replicated to different Brokers and as such the different Brokers' persistence message stores?I what a HA solution that has no single point of failure within a site (and ...
Hello all, Here is a set of XML nodes that I need to process. <message><text> The meeting is scheduled <secure>at 1600hrs</secure> and the attendees will be VP engineering, VP finance, VP products.</text></message>In the above XML, when I use a DOM parser to ...
This is my sample pgm,when i run this pgm, i got an exception ,nested exception is: javax.mail.SendFailedException: 554 <xyz@yahoo.co.in>: Relay access denied. Can u give me the suggestion.package com;import java.util.*;import javax.mail.*;import javax.mail.internet.*;import ...
Hi,I'm using IMAP protocol and I want to get total message count and unread message count to display near the folders. By using getMessageCount() and getUnreadMessageCount() methods of IMAPFolder, I got them but it works slow especially when calling these methods for more than one folders. How ...
409 byte By
Figoa at 2007-11-27 6:01:14
Hello everybody,For a project i need to make a java interface with xml communication. For example ; from 1 laptop I press on a java button and then i need to get a text message on the other laptop.The java interface is already created now the xml code for communication.I hope someone can help ...
573 byte By
AP_javaa at 2007-11-27 6:01:15
Hi Friends I am new in j2ee.In my academic project i want to do some ejb programming.For that purpose i want to write some ejb's.I have written all required class for ejb,created ejb-jar.xml file manually,weblogic .xml file manually. I am using weblogic8 as an server for deployment.I know ...
923 byte By
txatia at 2007-11-27 6:01:37
Hi,I'm going to use JAXP and SAX to read my application XML config file.But I'm lost, I don't know how to read the elements.How does it function, do I have to put in the startElement() method as many "if" as entitys I need to process?And how can I guess if an element belongs (is inside) one ...
We use to send mail to our clients in various languages(like Russian,Spanish,Turkish). My problem is that when this mail is received by client they complained to get unreadable characters.While i do try to send mail for myself i get it in proper characters. I use thunderbird as mail client. ...
hello,i have a javamail code which able to send mail within my domain (mailserver ) . but when i try to send mail to any yahoo id then i get following error :--javax.mail.SendFailedException: Invalid Addresses; please, anyone help me ; what should i do modification in my existing code for ...
Hey all,I've been struggling with JBoss queues over the past few days, and I think I'm almost there, but now I'm getting a new exception.Properties env = new Properties(); env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");env.put(Context.URL_PKG_PREFIXES, ...