Performance when creating XML documents manually

311 byte By mariovargasa at 2007-11-27 7:50:05
Hi all,What is the best way to create XML documents (I have to create it element by element, adding attributes and content manually), having Performance as the main restriction? What are the objects I should use in order to achive the best performance?Thanks in advance.Best ...

Generic Message Object - smtp, irc, web-message,etc

253 byte By binarymonk_01a at 2007-11-27 7:50:43
Does anyone know of a generic 'Message' object that can be used for many means of communication to a specific individual?i.e.SMTPIRC'Web Message' (the list of messages on a portal)etc.thanks,-D

Deploy enterprise application

895 byte By mattias_westerberga at 2007-11-27 7:50:48
Hello!I have deployed an enterprise application on Sun Java System Application Server Platform Edition 9.0.I know the server is working and that there is nothing wrong with my application.The admin tool says that the location of my application is: ...

NoInitialContextException problem when running a client against an MDB

992 byte By dg4a at 2007-11-27 7:50:59
I've created a message driven bean and two physical resources, a connection Factory resource (jms/SimpleMessageFactory) and a Destination Resource (jms/SimpleMessage) I've deployed them in netbeans5.5 to Sun App Server 9 and can see them under JMS Resources in the app server. When I tried to ...

Creating XML file from Java Bean

298 byte By kulkarni_asha at 2007-11-27 7:51:07
HiAre there any standard methods in Java 1.5 to create XML file from java bean,i can use JAXB or castor to do so, But i would like to know if there is any thing in java core classes,I have seen XMLEncoder, but this is not what i want.Any

SMTP Server Changing Unpredictably

2827 byte By rcauvina at 2007-11-27 7:51:32
I am experiencing weird behavior in my JavaMail program. At first, mail sending works fine through a remote mail server. After the program has been running for a while, though, it starts trying to send messages through localhost.I am creating my session once as follows and use it and only it ...

EJB Project ( open source )

314 byte By toysea at 2007-11-27 7:52:25
Could anyone tell me where can i found quality medium size open source projects that uses EJB? I think the fastest way to learn EJB is reading code. There is alot of open source example for JSP / Servlet on http://sourceforge.net but I cannot find any EJB examples in google or anywhere ...

How do you ignore text not in tags when parsing with SAX

9482 byte By SDNJavaa at 2007-11-27 7:52:27
I want to parse log files using the SAX parser. In the log file, at the beginning of the file I have normal text that are not in xml tags, then xml tags, followed by normal text not in xml tags. How do I make my program ignore the normal text not in xml tags in the file and just parse the xml ...

One to many relationships in EJB

14969 byte By MartinOSheaa at 2007-11-27 7:52:30
I have two EBs related by a one to many relationship. The first of these tables is called Student and has studentId as its key. The second of the tables has a composite key made up of studentID, courseID and semesterID.However, when the tables are generated in NetBeans 5.5, I find that the ...

httpunit -- How to get control of windows dialog box?

915 byte By jabduliusa at 2007-11-27 7:52:43
How to get control of windows dialog box?I'm writing some httpunit code that traverses a website, and upon clicking a link, a windows prompt box is displayed with a question and yes/no options. How do I gain control of this dialog? I need to click yes here to continue. I tried implementing ...

JMS, MDB, EJB problem

481 byte By TaurusLeea at 2007-11-27 7:52:56
Hi everybody,I have a question and want to get help from you.one stateless bean and one mdb bean on the same container.Expected stateless bean send message to the queue and mdb get respond by onMessage call simultaneous (ie. one prefer situation send one message and retreive one ...

How to throw error from EJB

888 byte By BomberMana at 2007-11-27 7:52:58
Hi, thereI have some problem about throw an error ......index.jsp//.....int rowCount=adminLogin.loginResult(userName,password); //....AdminLogin.javaimport java.rmi.RemoteException;import javax.ejb.Remote;@Remotepublic interface AdminLogin {public int loginResult(String userName,String ...

RECEIVE EMAIL

322 byte By muthu2007a at 2007-11-27 7:53:46
Hi everybodyI had copy the java -email receiving from the internet. It should be work fine. I only read the mail from the inbox in Dos prompt.,Now i want ur help to create a file for each messageWhether it is possible ? How it is possible? Pls Pls ...

Creating EJB data with composite primary keys

16337 byte By MartinOSheaa at 2007-11-27 7:53:56
I have two related entity beans and I am using a servlet to write persistent data to both of them at the same time. When I populate the first bean, the data persists. However, when calling the relevant method of the second EB's session bean, I get NullPointerException errors but I cannot see ...

Wanted SOAP client and server examples

189 byte By sureshpklra at 2007-11-27 7:54:00
I am unable to run the SOAP client and server programs.Can anybody help me by providing some simple soap examples of both client and server and also how to deploy them.

error sending soap request

475 byte By whitesquirrela at 2007-11-27 7:54:14
Hello!I created a simple web service (jax-ws) using NetBeans 5.5 and deployed the web service to the Sun Application Server 9. The integrated function of NetBeans for testing web services works fine. I can also access the wsdl through the internet browser. But a soap request using Altova XMLSpy ...

jaxp xpath evaluate method node list parameter?

705 byte By queshawa at 2007-11-27 7:55:22
The javadoc for XPath.evaluate(String, Object, QName) says that the second parameter is the context "node or node list for example". I'm familiar with the concept of an XPath context node. What does it mean to pass a node list as the second argument?With Xalan 2.7 and this ...

values between beans

900 byte By pcisara at 2007-11-27 7:55:47
Hi all,got question about giving variables to Beansi'v got LoginForm bean with session scope where user login and 'user' entity is set in this bean. on another page i use bean AccountController (scope=request) to addAccount but i don't now how to give the entity 'user' from LoginForm to ...

JAX-WS and abstract classes in a complex type

2664 byte By sebbera at 2007-11-27 7:56:36
Hi,i'd like to have to following behaviour:@WebMethodpublic int testMethod(ComplexType ct) {return ct.getProcessor().do(5,5);}/// public class ComplexType {Processor p; // + getter + setter ...}public abstract class Processor {public int do(int a, int b) {}}public class ProcessorA {public int ...

Index matching on the basis of occurence in a xml

3409 byte By kunaljain18na at 2007-11-27 7:56:42
Hi All,I read some of your articles, they are really fascinating. I am bugged with a problem of xml transformation using XSL. I tried at lots of places but i am not able to garner much help. I think you will be able to provide me with some thoughts/solution to this.My problem is as follows.I ...

How to Create XML Schema From JTree ?

15322 byte By OhmKu62a at 2007-11-27 7:58:09
Please help me... Thank you.This is CodeTree.java -- Run This Fileimport java.awt.BorderLayout;import java.awt.Dimension;import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing.JFrame;import ...

problem while xml validation with jdk1.6, but at jdk1.5 code is running ok.

5409 byte By sun@2005a at 2007-11-27 7:58:18
Hi All,i have written code to read a xml file to validate it with schemaand it is running fine with jdk1.5 but when i run the same code using jdk1.6it gives the following exception.Please help me to resolve this problem.Thanks in AdvanceSunny Kumar.org.xml.sax.SAXParseException: cvc-elt.1: ...

Authentication failed while using the function from JSP.

4598 byte By sunil962a at 2007-11-27 7:58:47
I am facing a issue with the mail functionality with JAVA Mailing.The problem is that when I am running the stand alone program it is working fine but when same function is called from a JSP it gives Authentication failed Exception.I am attaching the code with the case.testMail() Is the ...

javax.mail.MessagingException: 501 5.0.0 Invalid domain name

1049 byte By Kezmana at 2007-11-27 7:58:58
Hallo,I want to send mails via sendmail.but I get this error if I try to send.The reason can be following :in this company there are 2 mail servers mailext and mailintour smtp server ist mailext but this use the mailint's certificate. (also the name is false) can this be a reason? how can I ...

How Can I access a Stateful Session Bean with a WebService ?

1630 byte By bastrala at 2007-11-27 7:59:12
Hello,Here is my problem: I need to access my session bean with a web service endpoint, but I need to keep track of my session bean instance each time I call my Web Service.As I can only use annotation @WebService with a Stateless bean (@Stateless) as an example I tried something like ...

javax.mail.MessagingException: Could not connect to SMTP host: 172.20.10.11

5800 byte By hockeygod76a at 2007-11-27 7:59:15
Hi there,I wonder if you could help, I've tried searching the FAQ's and around the internet for a solution to this.When I run the code below I get the following error..javax.mail.MessagingException: Could not connect to SMTP host: 172.20.10.110, port: 25, response: -1I can't seem to find ...

to send mail

207 byte By chandrakalaa at 2007-11-27 7:59:31
i want to send mail to my inbox(i.e) either it could be yahoo or gmail...when i click on submit button of my web page the contents should go to my inbox ...how is it possible..can u plz help me

Beyold! the greatest problem of my Carrer

3825 byte By Brian.R.Johnsona at 2007-11-27 7:59:38
OK where to startI created an EE Client that accessed my session beans directly. though I wanted to run this client on the application server command line. So what do i do but copy all the ee Jars from /SUNWappserver/lib/ into the java jre. as well as the ejb jar(not the most sensible thing I ...

Looking for open source email server.

1087 byte By dave.khosha at 2007-11-27 8:00:01
I know this is not the best location for submitting this but I think the people who knows the answer can be found here. We are in need of a decent email server (well at least good enough), for using with our application server which will be j2ee 5 compatible but all of the stuff I found are ...

problem while creating xml using jdk1.6

6122 byte By sun@2005a at 2007-11-27 8:00:20
Hi All,I am creating an xml file and validating with schema, problem is that code is running fine with jdk1.5 but giving problem with jdk1.6(error).Please have a glance on the following code to solve problem.org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element ...

How can i duplicate an entity bean?

531 byte By flavio.freitasa at 2007-11-27 8:00:48
i'm having problme in make a copy of an entity bean..How can i do this!?For example... i created a user like that:User user = new User(); ("User" is an entuity bean)user.setName("testName");userDAO.create(user);This code runs correctly .. but when i try to copy this entity to another its ...

!! need Tomcat help urgently! 500 errors.

2561 byte By alundgrena at 2007-11-27 8:01:09
I've installed apache-tomcat-6.0.10 and jdk1.5.0_12I've set the ENV variables:_RUNJAVA = %JAVA_HOME%\bin\java_RUNJAVAC = %JAVA_HOME%\bin\javac_RUNJAVAW = %JAVA_HOME%\bin\javaw_RUNJDB = %JAVA_HOME%\bin\jdbCATALINA_HOME = d:\apache-tomcat-6.0.10CLASSPATH = ...

AccessorOrder

4066 byte By noodles_a at 2007-11-27 8:02:17
I get an NoClassDefFoundError on AccessorOrder when i try to call a webservice from a client.The problem is that i can't found AccessorOrder anywhere, that class dont exists.Any ideas ? java.lang.NoClassDefFoundError: javax/xml/bind/annotation/AccessorOrderat ...

XML Parsing Error

362 byte By m_irfan_ma at 2007-11-27 8:03:01
Hi,I am parsing an xml using SAX parser; the contains the character &, so the SAX parser is giving the exception "org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup". I sthere any way that i can parse the xml even it has &,< ...

JWSDP 1.2

235 byte By Reegza at 2007-11-27 8:03:16
Hi guys,Some help please. I am looking for Java Web services developer pack 1.2. Its rather urgent. we have code which requires it. i have tried google without much success.can anyone point out a link?thanks

EE application- web application?

711 byte By Scientist2a at 2007-11-27 8:03:29
Hi all,iam about to code a web applciation(Appointment system). It will requie a database, email reminders, and JSP pages. I am not familirar with this Enterprise structure for creating applciations. However for some reason I feel that I am supposed to be using EjB for this. I have 3 different ...

SAAJ and namespace

3061 byte By jonathancreeka at 2007-11-27 8:04:16
Hi,I am having a problem in running SAAJ client for Axis running on Tomcat. My SAAJ code is as follows;SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance(); SOAPConnection connection = soapConnectionFactory.createConnection(); MessageFactory factory = ...

xml creation problem with java6

6075 byte By sun@2005a at 2007-11-27 8:04:51
Hi All,I am creating an xml file and validating with schema, problem is that code is running fine with jdk1.5 but giving problem with jdk1.6(error).Please have a glance on the following code to solve problem.org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element ...

XML-JSP content Type problem

675 byte By hbmehta15a at 2007-11-27 8:05:22
Hi All,Please help me out.I am using AJAX and hence the have to display the response obtained from server in javascript variable on the screen and keep on refreshing it.The problem here is that I am getting the entire XML along with tags as string (or Text) from the server as response and now I ...

new to EJB

261 byte By Jatin_Kulkarnia at 2007-11-27 8:07:03
I have developed a simple eitity EJB (EJB 2.1) using jdeveloper and OC4J as embedded server. When I try to lookup home interface using a simple java client, I am getting javax.naming.NameNotFoundException: Employees not found. What might be wrong?

facing problem in XSLT transformation

3508 byte By Omesha at 2007-11-27 8:07:04
Hi all,I m new bie to XSLT n transformation. I have written a simple java program that uses the javax.xml.transform and javax.xml.parsers package to transform source file using a XSL file provided. When I excuted the program providing XSLT file that worked fine and transformed the XML but when ...

Unable to deploy persistence entity on JBOss : Please Help

4352 byte By Rocker007a at 2007-11-27 8:07:30
Dear All ,I am trying to deploy make a simple flow as :Servlet > (invokes) Stateless Bean - > (invokes) Entity Bean(persistence object )But I am unable to deploy this Entity Bean on JBoss 4.xx. I have packed this entity bean as an ear . The persistence.xml has following entries :<?xml ...

Java Persistance: Question about query within inheritance class

1309 byte By purplecaesara at 2007-11-27 8:07:33
In father class here is the annotation:@Entity@Table(name = "CONTENT_MEDIA")@Inheritance(strategy=javax.persistence.InheritanceType.JOINED)@DiscriminatorColumn(name="CONTENT_TYPE", discriminatorType=javax.persistence.DiscriminatorType.INTEGER)@DiscriminatorValue("4")In son class here is the ...

jAX-WS 2.0 binary data transmission

684 byte By caesara at 2007-11-27 8:07:57
Hi all,Just tap into web service technology recently. I google around and found out that there is MTOM. But if by default, without MTOM enabled, how does JAX-WS handle binary transmission by default?for example: one of my web method@webmethodpublic void upload(byte[] ...

sun java application server 9.1

334 byte By A222a at 2007-11-27 8:08:05
Hi everybodyI am using sun java application server 9.1 and I am getting this warning message when I start the serverjava.util.MissingResourceException: Can't find bundle for base name com.sun.enterprise.jbi.serviceengine.core.LocalStrings, locale fr_FRCan someone help me ...

Invoke a remote object form EJB

242 byte By anand_nalyaa at 2007-11-27 8:08:06
Hi,I want to invoke a remote object ( exposed by RMI on a different host ) from my EJB container. Is there some preferred way or design pattern for doing this, or should I directly lookup the RMI registry and invoke the methods.

where does the ejb store the state

167 byte By Viplava at 2007-11-27 8:08:35
hi all,where does the statefull session store the state in between multiple methods invocations of the client.In which format it will store

converting from XML to pdf: looping in XSL FO

722 byte By lingamaneni04a at 2007-11-27 8:08:42
I have a set of data which is dynamic.i.e the no. of rows is unpredictable.So, I want to use a <xsl:for-each . My code looks like:><xsl:for-each select="parent::EC-REPORT/TITLE-HEADER"><fo:block line-height="19pt" font-weight="bold" font-size="10pt" keep-together="always" ...

XML and Data Structure

1496 byte By Sridhar_Ha at 2007-11-27 8:09:17
Hi,How are you doing? I am just try to find a better data structure for my XML Document. My XML Document is typically contains one-2-many nodes with in elements. Check a sample below. <task id="Task1" type="Type1" Name="SomeName"><sub-task id="SomeTask"><action id="SomeAction" ...

Recipient address rejected: Access denied

2123 byte By StuDeva at 2007-11-27 8:09:48
Hi,I'm using JavaMail for the first time.My SMTP server has a user Id and password so im usingtransport.connect("esmtp.unwired.com.au","name@unwired.com.au","password");But when I send I get the following exception (i have change the email addres but the one I use is valid):-Exception in ...