Who's right - JDK 1.6 stax or WoodStox?

3449 byte By virgo47a at 2007-11-26 22:16:16
Hi all...I have a serious problem with switching between aforementioned technologies and I'm confused which one works properly. My case is easy - I have XML that starts like this:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE field-specification SYSTEM ...

Unable to send mails

2065 byte By talk2keya at 2007-11-26 22:16:43
Hi,I'm trying to send an email using mail APIs. But I'm unable to send the email and getting the following error:javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.SendFailedException: Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 ...

EJB3 Transaction Isolation level with Oracle 10g XE

594 byte By abhinav_nigam19a at 2007-11-26 22:16:44
Hi AllI have two CMP entities (EJB3) defined over two tables in Oracle 10g XE DB, namely User & UserDetails. UserDetails references User entity in One-to-one unidirection fashion.When I create a new User I have to insert a record using User entity & a corresponding record using the ...

How to read emails from Inbox file on PC created by Thunderbird

471 byte By Ni_Mina at 2007-11-26 22:16:46
I used Thunderbird to download my Yahoo Inbox emails, it's saved to a directory on my PC, in it there are the following two files :Inbox[ Huge : 800 MB ]Inbox.msf[ 390 KB ]I know that "Inbox.msf" contains info about the Inbox. There are mostly returned emails in the Inbox with bad addresses.I ...

SOAP error when trying to invoke an WebService

1850 byte By Powerhouse_ba at 2007-11-26 22:16:59
Hello.I have an ejb 3.0 as a WebService. I deployed it on Jboss 4.05GA, all ok.But when i try to call the service from an application it does't work.XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]Message: Premature end of file.at ...

JAX: xsd,xml during generetion of code and during runtime are different

532 byte By leon_johna at 2007-11-26 22:17:46
Hi Below is problem where I am getting stuck..I created java code using a xsd with suppose 4 string tag. Every thing works fine, when i pass a xml with only the 4 string tag.Now the xml with 5 string tag, basically a new string tag has been added which was not added in the scehma. As soon as I ...

at com.sun.xml.stream.xerces.util.SymbolTable.hash(SymbolTable.java:222)

2990 byte By obelixa at 2007-11-26 22:17:52
Hi all,I'm trying to use a gSOAP server and a jax-ws client.I did a first test with WSDLReader to ask the wsdl from the gSOAP server and read it to display all informations.It was ok !Now I try to call a method whit this code :URL url = new URL(" http://localhost:" + port + ...

wsimport not generating all methods

906 byte By bkeysera at 2007-11-26 22:21:16
Hi,I have a simple model where a class has a property that is a java.util.List of another object. When I use wsimport to generate the bindings for a client application, it generates the getter, but not the setter for the property. In other words,class A{List<B> collection = null;public ...

EJB3 Entity Beans and Message Driven Beans from EJB App Client

790 byte By Chris313a at 2007-11-26 22:21:34
I'm new to EJB3 and MDBs and need a little advice regarding running an EJB App Client.My basic scenario is that I use a MDB queue for asynchronis comms with a couple of EJB 3 Entity beans. My problem is that from the App Client I do not have visibility of the Entity bean so that I can ...

Develope Chat Application Using J2EE and network programming.

235 byte By Prabhu_Coimbatorea at 2007-11-26 22:22:13
Hi friends this is my first message to java forums,I am trying to develope a chat application using J2EE and networks..I don't have the base idea where to start with....Can anybody help me please...?

authentication failed

6335 byte By erikaa at 2007-11-26 22:22:25
This is my code .I get authntication failed error everytime thoughthe password and userid is correct.pl help me.I need to finish this,pl help.package com.randomtest;import javax.mail.*;import javax.mail.internet.*;import java.util.*;public class Email {private static final String SMTP_HOST_NAME ...

E-banking?

202 byte By Kanata at 2007-11-26 22:23:08
Hello, I want to develop e-banking system like PayPal.com. I've tried find some information but not successful. I抦 new in this deal. So can anyone advise me tools and information sources?

DEBUG SMTP: exception reading response

1967 byte By fabismta at 2007-11-26 22:24:41
Hello,I am coding a background process to send e-mails. It uses Threads so each Thread opens a connection with a local smtp server and send a configured amount of e-mails.It goes well when there aren't too many Threads, but in opposite to that i receive the following message : DEBUG SMTP: ...

Do EntityManager queries actually query the database?

614 byte By Perryiera at 2007-11-26 22:24:51
When I write a method that returns object(s) based on an EntityManager query, return em.createQuery("select object(o) from Address as o").getResultList();Is that query actually looking at the database and getting the most recent data? For example, I manually change an address using SQL right in ...

Version compatability for Transformation

1797 byte By schooltiger@walla.coma at 2007-11-26 22:25:15
Hi,I developed code for transforming the xmls by using xsl contain java methodsex:<xsl:stylesheet version="2.0" xmlns:jiva="com.seq.sqlxml.xslutil" xmlns:xsl=" http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="seq" ><xsl:output method="xml" indent="yes" ...

NullPointerException on local interface

4804 byte By tobiassen666a at 2007-11-26 22:26:10
For some reason my client requests don't work. I get a NullPointerException when I call methods on the EJB interface. Do you have any suggestions as to why this fails?Here is the client code:public class HandleDataInput {public HandleDataInput(){}@EJBWVFacadeLocal fl;@EJBWVUpdatePresenceLocal ...

Running EJB 3.0 Entity Bean from JSP

448 byte By Arod2007a at 2007-11-26 22:27:09
Hello all,I'm newbie and I"m trying to do simple jsp page that calls an entity bean that displays data from a table.This is just a test that I want to do to see how jsp can call a bean that is pulling data from a table. I'm sorry if maybe this is not the right place to post this. But can ...

Is manual XML parsing ever required instead of JAX-WS or SAAJ?

628 byte By domfromlondona at 2007-11-26 22:27:17
I抦 just starting out with web services, so please excuse my silly question:Most of the books and tutorials on web services that I抳e read explain XML parsing at great length (JAXB, SAX, StAX and DOM).Although web services do make extensive use of XML in SOAP and WSDL, I can抰 see why I would need ...

Clients patterns for java application

567 byte By kerulea at 2007-11-26 22:27:23
Hi, i dont nkow that i stay in the correct forum. I am development a java swing client application, no web, and i dont know that if there are any patterns for a client of this type.I have readed http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.htmlbut after of Buissnes Delegate ...

Default Persistence Context or Extended Persistence Context?

268 byte By rabbiaa at 2007-11-26 22:28:05
HiI wanted to ask a question related to PersistenceContext in JPA. What is the better approach for using a Persistence Context when using container managed transactions i.e. the default Persistence or the Extended Persistence Context?Thanks

Castor and XML comments

63 byte By bama51a at 2007-11-26 22:28:17
Does anyone know how to maintain XML comments in Castor?

attachment with an e-mail.

202 byte By Dil.Paria at 2007-11-26 22:28:26
I am not using Java Mail. i have created a program so it will log into any smtp server and will send mail. i need to know how i can attach a file with my e-mail and sent it. thanks!

Designing an application using EJB

2220 byte By HELLOOOOa at 2007-11-26 22:28:44
Dear all,I am trying to build a simple EJB application which involves using SessionBean and EntityBean.The application must allow a user to login and then perform some operations. Depending on what type this user is, they are allowed to perform different operations. The type of a user can ...

Problem with bpcatalog-1.0.1_02-installer.jar

310 byte By ivlad10a at 2007-11-26 22:28:55
I was trying to install some ajax examples and learn how they work.The installer aborted with the message 'Could not find main class. Program will exit'. - both ways - when doubleclicked or when runs after downloading.It seems like I'm missing something in my ...

Hi can any one help with solving this problem

611 byte By Ramkoila at 2007-11-26 22:30:29
Hi Every body,I had an xml file ,with using parser i want to read the xml file ,but in my xml file i had an error "&data_12546_norm_589567;"To process this error and read the xml file content in java file.How can i read the xml file using java with out removing the error line.My xml file is ...

ejb3 inheritance and overriding of persistence attributes in subclass

3702 byte By red_max_ivva at 2007-11-26 22:31:15
Hello!I'm having trouble with the OR-mapping and an inheritance class structure.Here is a code example of what I try to do:@MappedSuperclass@IdClass(CustomerPK.class)public abstract class Customer extendsAnotherNonPersistentAndNotMappedSuperclass {private int custNo;private String name;private ...

Store file in xml

1037 byte By ikkyua at 2007-11-26 22:31:16
Hi all,I have a simple application, the user fill a form with the possibility to add an attachment. That form will become an xml file stored on the server.Later on a parser will build a mail from this xml.My main question is at thi point: how to store the attachment ?I think I have two ...

getting delivery receiept with message-id

454 byte By rvnareshkumara at 2007-11-26 22:31:57
i wrote the following code also. i didn't get the message id. but i get delivery receieptprops.put("mail.smtp.dsn.notify","SUCCESS,FAILURE ORCPT=rfc822;recip@foo.bar");props.put("mail.smtp.dsn.ret", "HDRS");message.setHeader("Disposition-Notification-To","billg@microsoft.com");if u get any ...

Stubs containing method which returns null;

277 byte By Notty_ra at 2007-11-26 22:32:46
Hi,i am facing problem when i am generating stubs for EJB. I have a method in the entity beans for which Homestub is having a method which is returning null. Not the actual implementation.Please help me on this. Why i am facing such a problem.Thanks

Packaging adapters

614 byte By prabhu.ramadasa at 2007-11-26 22:33:23
We are building a JCA mail resource adapter. We have the classes we needed including the Message driven beans. We are also using JMS queues into which the MDB listens.Now how should our package structure loook like? Should the MDBs come in a separate package?Right now we have all of this in one ...

XSD xs:all and other order indicators

824 byte By westmeadboya at 2007-11-26 22:33:30
(Not really Java-specific, but I can't find a decent XSD-dedicated forum)How do I specify a bunch of child elements where the order is unimportant AND some children occur multiple times?<xs:all> looks to be almost what I would like except you cannot specify an element to have unbounded ...

Default Persistence Context or Extended Persistence Context?

267 byte By rabbiaa at 2007-11-26 22:33:40
HiI wanted to ask a question related to PersistenceContext in JPA.What is the better approach for using a Persistence Context when using container managed transactions i.e. the default Persistence or the Extended Persistence Context?Thanks

Accessing the business methods of CMP beans via a Session bean

593 byte By HELLOOOOa at 2007-11-26 22:33:46
Dear all,Is this a common practice to access the business methods of entity beans via a Session bean?For example, if I have an AccountBean(EntityBean) which exposed a deposit (double amount) method. And I have a CustomerServiceBean(SessionBean) which also exposes a deposit method. When the ...

When is it necessary to declare a transaction?

1426 byte By Perryiera at 2007-11-26 22:34:06
I am struggling to understand when it is necessary to declare my own transaction to ensure the data is properly updated. For example, in the following code, which is part of a java bean in the EJB project, KeyFacade is a stateless session bean tied to the entity "Key". it is a standard EJB ...

message has attachment or not?

101 byte By JTable_need_infoa at 2007-11-26 22:34:22
Hi how can I check that my message has attachment or not?Thank you sumant

Flags

278 byte By JTable_need_infoa at 2007-11-26 22:34:23
I am using one server I don't know which flags are they using for recent or unread messages.It shows unread message when i use web interface of thembut I want to see which flag they are using for unread messageHow can I?thank yousumant

Address Book

137 byte By JTable_need_infoa at 2007-11-26 22:34:24
Can I access the address book of account.I want to use that at client side which i m devepoingthank yousumant

java.lang.NoClassDefFoundError when trying to create my first EJB

705 byte By garollousa at 2007-11-26 22:34:26
Hi All,I am trying to learn EJB's on my own. I installed the WebLogic Server Trial version and then wrote the Home Interface, Component Interface and the Bean Class. Now I started the WebLogic server and tried and create the deployment descriptor.. I am getting the error below even after I set ...

Which Application Server should I Use

391 byte By garollousa at 2007-11-26 22:34:33
Hi All,I am learning the EJBs for the first time. I tried to search for tutorials and found a few tutorials in SUN website. For some they asked me to install weblogic server. Then in another link they are showing sun application server. Please advise which application server is better or more ...

Mail.jar + Tomcat

678 byte By Kobayashia at 2007-11-26 22:34:45
Hi,Is it possible to put the mail.jar (and activation.jar) in the web application's WEB-INF/lib folder instead of tomcat's common/lib?I did have it working in common/lib but then moved it - due to requirements - and I now get the following error:java.lang.NoClassDefFoundError: ...

moving message from one folder to other user created folder

76 byte By JTable_need_infoa at 2007-11-26 22:36:06
how can I move message from Inbox folder to other user created folder

package import javax.ejb doesnot exists!!!

20897 byte By mastery20a at 2007-11-26 22:36:42
hi all,when i execute the ejb it display import javax.ejb.*;does not exists. i am using jboss4.02. jdk1.5. and ant 1.6.0..plz help me .ERROR REPORT[javac] D:\New project\itracker\src\cowsultants\itracker\ejb\beans\entity\CustomFieldValueLocal.java:4: package javax.ejb does not exist[javac] ...

Basic EJB access question

1252 byte By garollousa at 2007-11-26 22:36:44
Hi ,I am learning the basic EJB and trying to write my first piece of code.I wrote a HelloWorld.jar(EJB) and deployed it in Websphere server.Then I wrote a standalone java program with main method to access the EJB client. As per the tutorial..public void callEJB(){try{java.util.Properties env ...

xml transform

248 byte By khan2265a at 2007-11-26 22:36:52
when usingTransformerFactory.newInstance().newTransformer().transform.......is there a way so that it will not add the declaration at the top?so that when i do a toString it will not output <?xml version blah blah>

Deleting records from XML file--just a little problem

3423 byte By byteministera at 2007-11-26 22:37:13
Hi! My xml file has a simple form like this: <?xml version="1.0" encoding="UTF-8"?><AdressBook><Name>Suzy</Name><Lastname>Love</Lastname><Adress>You street 22</Adress><Phone>911</Phone><Email>loveme@gmail.com</Email> ...

"Core J2EE Patterns"

864 byte By jtjlia at 2007-11-26 22:38:02
I used to find the "core J2ee patterns" useful because it covers the whole picture of a web application. (see here: http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html )However, these patterns were designed in 2002 (or earlier). So I am a bit reluctant to read them now as I do ...

EJB3 newbie - when to use EJB?

323 byte By jtjlia at 2007-11-26 22:38:09
If I just want to build a reusable module that does not have any business critical actions, such as a login module, or a blog module, should I use EJB?Also, am I correct that only EJBs can run on distributed servers, and that all other non-EJB components in a web applications can only run on a ...

With Java Persistence, are DAOs (data access objects) still needed?

373 byte By jtjlia at 2007-11-26 22:38:11
I have just looked at the Java Persistence tutorial and it says each table row of a database can be represented as a Java Persistence entity instance.The definition of an "entity" is very much like how you would define the class of an equivalent DAO. So I am wondering... should DAOs still be ...

ejb lifecycle

319 byte By clarenceloha at 2007-11-26 22:38:41
hi,i wrote a bean that has a looping function that will sleep for 2secs and then continue to loop. this function is called from the jsp. my problem is that the bean will not be functioning after a period of time. how do i overcome this problem? i need it to be running up to maybe a few ...

Problem with passing exception with declarative security

18396 byte By FrankF@Suna at 2007-11-26 22:39:33
I am having a problem with passing exceptions with message security bunding enables. I have a JAXWS EJB 3.0 web service, The service defines methods which throw exceptions. The exceptions are passed correclty when there is no message security enabled. once the security is enabled and an ...