javax.xml.transform.TransformerException durin XSL Transformation in Java

5461 byte By dilip_jsfa at 2007-11-27 5:40:58
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 ...

Error in cast to MULTIPART

750 byte By Fireantologya at 2007-11-27 5:41:25
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) && ...

SessionContext Rollback

1629 byte By Roberts_Va at 2007-11-27 5:42:31
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 ...

How to manage large quantities of XML data efficiency in a web app

714 byte By GregScotta at 2007-11-27 5:42:38
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 ...

Any Java API for character encoding recognition

251 byte By emailGala at 2007-11-27 5:43:16
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.

Problem deploying Coffee Break example from tutorial

613 byte By jphilli9a at 2007-11-27 5:43:59
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 ...

how to retrive data from .XML file to JMS

325 byte By udaykantha at 2007-11-27 5:44:15
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 ...

How to set Document Type Declaration of xml Document?

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.

java mail - SSL POP3

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: ...

Attachment file size

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 ...

Javamail - Send mail over SSL

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 ...

JMS C/C++ client without a java proxy

3331 byte By j0llyr0g3ra at 2007-11-27 5:45:57
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 ...

How can i get XPath of the XML Node using Java API without DTD and XSD

251 byte By saravananppsa at 2007-11-27 5:46:05
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

JPA primary key problem

1088 byte By margar@o2.pla at 2007-11-27 5:46:07
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 ...

cannot run Application client Modules that use EJB

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 ...

How to send parameters from jsp to session bean ! !

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 ...

Simple EJB

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

cannot run Application client Modules that use EJB

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 ...

Define and access a remote ejb

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 ...

how to split intiger and string

237 byte By god_bless1_you1a at 2007-11-27 5:47:17
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

Accessing SOAP server programatically with a client

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 ...

Topic: How to obtain entity manager in application server?

352 byte By AvihaiMara at 2007-11-27 5:49:08
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 ...

Can i pass the persistence unit to the Ejb before it inject the entity mana

663 byte By AvihaiMara at 2007-11-27 5:49:12
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 ...

Can get HelloService example to compile

3528 byte By simps05192a at 2007-11-27 5:49:22
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 ...

EJB Testing Tools

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

Problem occurs when parsing uri into dom.

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 ...

getContentType = Nullpointer, "rebuild" message finally works... *confuse*

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 ...

JMS on WAS 6.0 to MQ

2338 byte By Mike_in_Javaa at 2007-11-27 5:52:23
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 ...

Web Services (JAX-WS) in Java EE 5 Error

1401 byte By Ajaxranda at 2007-11-27 5:53:00
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 ...

LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader

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 ...

Do I need to use JMS technology in my project?

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?

Problem with DeSerilization

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" ...

xml transformation without validation

129 byte By anand_nalyaa at 2007-11-27 5:54:48
Hi,How can I carry out an xsl transformation in java without validating the xml document?regardsanand

Reusing a Source for transformation (JDK1.4.2)

203 byte By Hackemessera at 2007-11-27 5:55:52
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

Delete query

9171 byte By tobiassen666a at 2007-11-27 5:55:55
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 ...

Code for secure WebService

325 byte By Radhakrishnaa at 2007-11-27 5:56:11
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 ...

JPA; out-of-container; multiple persistent.xml files

634 byte By nnatgrossa at 2007-11-27 5:56:16
[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 ...

open a new window in xml

332 byte By sangha79a at 2007-11-27 5:56:20
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 ...

Is Xindice not the way to go?

397 byte By GregScotta at 2007-11-27 5:56:23
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 ...

Topic: Can i have a private variable in a stateless

680 byte By AvihaiMara at 2007-11-27 5:56:39
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 ...

Broker/Cluster Message Persistence and Replication

1156 byte By paularmstronga at 2007-11-27 5:57:16
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 ...

How to parse/process this XML (DOM or SAX)?

690 byte By Gautham.Kasinatha at 2007-11-27 5:58:02
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 ...

How to send a yahoo mail id from javamail

3410 byte By SARAV_RSa at 2007-11-27 5:58:53
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 ...

Message Count

367 byte By messagecounta at 2007-11-27 5:59:22
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 ...

Java interface with xml communication

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 ...

How to deploy and run EJB in eclipse without XDoclet

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 ...

SAX and XML file, how to?

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 ...

Mail contents are not appearing in proper style.

683 byte By RajeevSahu_Sahua at 2007-11-27 6:02:08
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. ...

sending mail to yahoo using javamail

2641 byte By gyan_softa at 2007-11-27 6:02:17
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 ...

java.lang.ClassCastException: org.jboss.mq.SpyTopic

2296 byte By Trunks7712a at 2007-11-27 6:02:28
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, ...