XML

125 byte By Dollstartera at 2007-11-27 2:30:31
HI,Is there any way we cam store and read Java Exceptional messages thru XML?PLease respondThanks

bookstore 5 JEE5 TUTORIAL: books.jspx FileNotFoundException

961 byte By sparkle79a at 2007-11-27 2:30:40
Hi All!I am trying to execute the bookstore5 example application from JEE5 TUTORIAL. When i deploy and launch appplication in NetBeans i'm getting the following message:javax.servlet.jsp.JspException: Problem accessing the absolute URL " http://localhost:8080/books/books.jspx". ...

Web Service Client works from IDE, not standalone

4196 byte By Ian4a at 2007-11-27 2:31:35
I'm using the Netbeans 5.5 IDE & JAX-WS 2.0 & jdk1.6.I use an Applet to call a webservice on an embedded web-server which has gSoap generated WebServices.The code works fine if I run it from the IDE. However, the following error occurs if I run it from the ...

org.apache.jasper.JasperException: Unable to compile class for JSP

2075 byte By chithrakumara at 2007-11-27 2:31:44
hiI am preparing for scwcd exam. And i'm referring the Head First Servlets & JSP.in the jsp section there is a example for <jsp:useBean>.In this example i'm using one servlet program and one Bean program and one jsp.Both servlet and bean code i saved in the classes folder and jsp in ...

Ajax request triggers pop-up blocker. Why?

2101 byte By sun3sweeta at 2007-11-27 2:32:46
Is it common for an Ajax post-method request to trigger the browser's popup blocker if the Ajax response handling function submits a form to a target window that does not yet exist?The Ajax request is directed to the same web server as the original page.Does anybody have a suggestion for a ...

syncronize remote and local database

375 byte By gionnyDeepa at 2007-11-27 2:33:03
Hi all I have a distributed application where I have a remote database and a local database.Obviously my problem is to guarantee that in any instants the remote and the local database are syncronized.I need an enterprise solution and i think that ejb and mostly message driven bean can help ...

Transformer and Entity Resolution

629 byte By rlubkea at 2007-11-27 2:33:06
Hello,I'm using a Transformer to convert documents from being DTD based to Schema based at runtime. I've run into a snag with doing so. There doesn't seem to be a way to configure entity resolution on the Transformer, so when it loads one of the DTD based documents, it triesto resolve the ...

Java mail C API ....

396 byte By danrkumaa at 2007-11-27 2:34:27
hi all,I was looking for a C mail API like the Java mail. And got the following link. http://docs.sun.com/source/816-6027-10/contents.htmBut I was unable to download that SDK from their link supplied. http://developer.netscape.com/software/sdks/index.html?content=messaging.htmlPlease can any body ...

ORA-00932 in Native Query

734 byte By Hugo_Oliveiraa at 2007-11-27 2:35:23
Hello. I'm using some native queries in my EJB 3.0 project. When I write a native query likeINSERT INTO SOME_TABLE VALUES (:val0, :val1, :val2) and use the executeUpdate() method of the Query interface after assigning all parameters to values other than null everything works OK.However, if I ...

Java Mail Application

327 byte By Manojmaruthoora at 2007-11-27 2:35:52
I am doing a webportal in J2EE,there is a mailing section in the portal so that the administrcan directly convey with the clients .Since i am using Sun One java Applicatin ser ver is it necessary to configure new mailserverIs this possibleor else should i have to use JMSPls ...

Whether JMS or JavaMail

236 byte By Manojmaruthoora at 2007-11-27 2:35:59
I have to do a portal in J2EE and i am using Sun One server.There is a email section in the portal which is engaged in sending mails to other mailservers like (yahoo,gmail etc).So among Java Mail and JMS which will be compatible.

Regarding Java Mail API

3996 byte By vijayarumugamka at 2007-11-27 2:36:00
hi,i am vijay. I have used the below program. i am facing an error of Exception in thread "main" javax.mail.SendFailedException: Sending failed;nested exception is: javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first z15sm2857307podat ...

Use of XSD

162 byte By avina_helloa at 2007-11-27 2:36:32
Hello all,I am just begineer for XML tech.I want to know what is use of XML schema(XSD).Can i get any sample examples for XSD.I am using Eclipse 3.2

Difference

77 byte By asif_need_javaa at 2007-11-27 2:37:41
What is the basic difference between regular bean and enterprise bean?

javax.ejb.EJBException: Impossible to create the MyEjbBean

1382 byte By rafelmita at 2007-11-27 2:37:59
Hi friends,I have created an session ejb and iam calling the ejb from a message drivenbeans ejb create method it look like this context = new InitialContext();service= (String) context.lookup("java:comp/env/myapp/ApplicationService");ref = ...

Getting Not Bound Exception

210 byte By bdontua at 2007-11-27 2:38:38
Hi all,i'm getting the following exception repeatedly while running my application using jboss server.20:47:43,000 ERROR [STDERR] javax.naming.NameNotFoundException: EmployeeImpl not bound

OFX Files

278 byte By roger_sa at 2007-11-27 2:38:44
Hi,My application needs to parse a OFX file (unified specification for the electronic exchange of financial), process it, and create/save another OFX file.Please, Does anybody knows a Java API capable of processing OFX files?thanks a lot,Roger

Which version Struts, Tomcat, Eclipse

320 byte By singhcodea at 2007-11-27 2:38:48
Hi!I haven't used Struts, Tomcat and Eclipse together but now I am ready. I need to know which version should it choose for Tomcat and Eclipse which I can find the sysdeo plugin for. I have gone over taking more than enough time to have these setup...please help. Thanks in ...

XSLTProcessorFactory.getProcessor() - no exception but no error

1357 byte By dragosionela at 2007-11-27 2:39:30
Hi,I have a web application that is trying to create a HTML using an XML and XSLT. I have it deployed on WebLogic 8.1 sp5, jdk 1.4.2Here is a piece of the code:..............//XSL Processorsimport org.apache.xalan.xslt.XSLTProcessorFactory;import org.xml.sax.SAXException;public class ...

want to set timeout for POP3 connection task

1226 byte By strutsa at 2007-11-27 2:39:43
Hello,I have used Java Mail's POP3 protocol to read incoming email & delete it.Java Mail works fine. But problem is, some times (most probably for connection failure) when I call store.connect(host, username, password); code gets stuck at this line. And neither goes to next line nor gives ...

InstantiationException: No destination location set for message-driven bean

8307 byte By anurag_patila at 2007-11-27 2:39:55
I have Oracle JDeveloper Studio Edition Version 10.1.3.2.0.4066.I am having problem with my message-driven bean examples. I have two files, LogBean.java(MDB) and LogClient.java. Both the files are compiling successfully without any warnings and errors. However, when I am trying to run the ...

em.merge does not work while em.persist does?

1354 byte By toon_macharisa at 2007-11-27 2:40:41
Hello,I have a stateless session bean with code snippets below.@PersistenceContextprivate EntityManager em;...public void setList(ContainerList list, int key) {ContainerList stored = (ContainerList)em.find(ContainerList.class, key);list.setId(key);if (stored == null) { em.persist(list); }else ...

How To Add UTF-7 Encoding To Sun JDK?

963 byte By utf-7a at 2007-11-27 2:40:44
We are using Sun JDK 1.3.1, and our customers required us to support UTF-7 encoding in our system.We tried to add a class named "ByteToCharUTF7" and set java property "file.encoding.pkg" to its package, but it does not make JDK able to find either the package or the class.Currently, we can add ...

Session bean

79 byte By asif_need_javaa at 2007-11-27 2:40:56
How can I differentiate between a stateful and a stateless Session bean?

EJB 3.x business delegate & service locater

247 byte By toti82a at 2007-11-27 2:41:51
Hi allare business delegate & service locater patterns still relevant when considering EJB 3.x? Why or why not? Does dependency inversion replaces service locater? was there dependency inversion in EJB 2.x?Thx a lot

PetStore 1.4 doesn't contain webservices?

341 byte By magir75a at 2007-11-27 2:42:17
I know, 2.0 is out, but I have to stick with the older example for now :-).The release notes for the PetStore 1.3.1 list Webservices as one of the new features - JMX was replaced by it. Is it possible, that this was removed in 1.4? I wasn't able to find any references to webservices in the ...

xml data exchange

1440 byte By supsa at 2007-11-27 2:42:26
here, i m developing a code in which i have to send a soap request to weblogic/tomcat server, in response i have to collect data in XML format.i m new to soap,,, plz help me. i m pasting my code with requests..tell me , what more changes i have to make, do i needa java file of ...

Please Help!!!!!!!!

1112 byte By Tomexa at 2007-11-27 2:43:26
Hi all, I am learning Servlets and I was trying to deploy my servlet but it doesn't seem to work can any please help me out as I am new to this:import javax.servlet.*;import javax.servlet.http.*;import java.io.*;import java.util.*;public class hitcountServlet extends HttpServlet{static int ...

What is the meaning of clustering your application in EJB?

253 byte By SheepSheepa at 2007-11-27 2:44:02
I have come across the term "clustering your application" a few times in EJB, except, I don't have any idea of what it actually means, could somebody briefly explain what it means or point me to the right resources for further reading, many thx.

Receive Acknowledgement in JMS

654 byte By BRAJa at 2007-11-27 2:44:10
Hi,My requirement is as follows, fyi, I am using Weblogic 8.1 sp5:I have configured my weblogic with the connection factory, queue and temporary queue. Then I wrote a client a class to put the message in the queue. I also wrote the class to receive the message from that queue.Now, if I want to ...

accessing session bean from application-client module's main method class

744 byte By rkrameshsalema at 2007-11-27 2:44:43
Hi,I had a error while I access a session bean from application client module's main method class with netbeans5.5 and sjsas9.0.1.even I used EJB3.0 through javaEE5 I had a problem.when I run the application client I got NullPointerException".How can I solve this problem?The program follows ...

Persisting an entity bean containing another entity

286 byte By Puzza at 2007-11-27 2:45:02
Hi,I want to persist a new entity bean instance containing another entity.Will the entity contained in this new instance automatically be persisted? What annotations do I need to specify for this to happen? Its a one-to-one-relation between the two entities.

Creating EJB Relationships using container Managed Persistance

1188 byte By sirynxa at 2007-11-27 2:45:09
I'm trying to create relationships between two EJB with a CMP. My tools are Eclipse, xDoclet and JBoss application server. I've created two entity beans one for users and other for the groups the user belongs so I would like to create a relation betwen to beans using xDoclet to make it. I'm ...

Tomcat Problem

240 byte By soumayaa at 2007-11-27 2:45:20
I have developed a web service, when i wanted to test it using tomcat, i got this problem:Caught SOAPException (SOAP-ENV:Client): Error opening socket: java.net.ConnectException: Connection refused: connectplease help!!

java - rest web services question.

1459 byte By kollareddya at 2007-11-27 2:46:18
Hi all, I am new to SOAP and Rest based web services.In my current standalone application, the request and response payload of a query are in the form of a xml document. This application needs to be accessed by several applications that are written in diffrent programming languages(.net, python ...

Problem in when deploying EJB 3 using NetBean 5.5 with Glassfish and Derby

5534 byte By Cindy2007a at 2007-11-27 2:46:39
Hi,I'm using glass fish with NetBean. My EJB module built with no error, but when I run the application (the ear) in NetBean, the deployment fails with following errors in server log:Anyone has idea why this is happening?[TopLink Config]: 2007.04.29 ...

How can i check if a webservice is available?

439 byte By rinoa_fftsya at 2007-11-27 2:47:03
Hi I want to know how can i know if a jax-ws webservice is inaccessible? for example if the computer hosting the webservice is down or the application server is down, how can we be notified about that? Is there a way of checking the webservice availability before sending a request? If the ...

Reading / Writing mails into PST

206 byte By J2EEHungera at 2007-11-27 2:48:11
Hi,Using Java Mail API, Is it possible to read mails from PST file?Also from Inbox, can I move the message into a PST file?Please provide your inputs.ThanksSrinivas

XJC - non-deterministic codegeneration?

5693 byte By veitha at 2007-11-27 2:48:30
Hello,when binding xml-to-java classes via the com.sun.tools.xjc.api-package I recognized that the code generated differs each time the build-job is started!The content in general stays the same, but for example the method-, member-order or the order of annotations for a method varies....The ...

How can I throw exceptions using JAX-WS 2.0?

870 byte By ryanmccolluma at 2007-11-27 2:48:39
I have been using NetBeans5.5 to develop a web service from a WSDL i.e. I write the XSD and WSDL first then generate the web service code in NetBeans5.5. How can I throw an exception so that details of the exception will be contained within the SOAP xml response? For ...

jms Delivary

171 byte By Jagadesha at 2007-11-27 2:49:26
i have a single sender and multiple receivers where i need to identify users by a unique identity.is it possible in jms. please provide me with a sample code

Entity include with relative path in XML using JAXB

3418 byte By Loiza at 2007-11-27 2:49:49
Moving this from the Java Technologies for Web Services forum to this one.With the jwsdp jars I'm trying to use JAXB to load in several specified XML files. This works fine. The XML files are read in from a relative link "/templates/mainXML.xml" and the xml string read in and passed to the ...

Parsing XML file Error

123 byte By Partha_Olimmsa at 2007-11-27 2:49:57
while Parsing XML a runtime exception is coming.....org.xml.sax.SAXNotRecognizedExceptionpl. help me..

XSLTC Giving Could Not Compile Stylesheet.

1321 byte By sasicordysjavaa at 2007-11-27 2:50:31
Hi All,Till now i am using xalan.jar and my xsl is as fallows <xsl:stylesheet xmlns:js="javascriptcode" xmlns:java=" http://xml.apache.org/xslt/java" exclude-result-prefixes="js java" xmlns:xsl=" http://www.w3.org/1999/XSL/Transform" xmlns:lxslt=" http://xml.apache.org/xslt" version="1.0"> ...

Problem with sendRedirect(..)

1222 byte By Blaz1a at 2007-11-27 2:50:34
Hi,here is my problem:I want to log in the user. I have login form, then I send request to the LoginServlet which verifies data and set session attribute (session.setAttribute("isLogin", "true")), then, if user and password is correct I use sendRedirect method to forward user to next page ...

parallel programming in web application

597 byte By smariaga at 2007-11-27 2:51:14
Hi All,I have a situation that my web application has heavy computing. we decided to use parallel programming, by sending the job to few machines and do the computing in slave machine, and return the result back to host computer. I would like to know, Is there any support for this kind of ...

developing a JMS provider

350 byte By hagai2003a at 2007-11-27 2:51:20
Hi,I'd like to write a JMS provider implementation but I didn't find any documentation describing how, I did find the spec but the spec doesn't really tell me what to do, which class should I implement and how.... It's my first implementation of a serious API and I need some ...

Parsing XML using DOM

1827 byte By firoza at 2007-11-27 2:51:37
I have the following xml file:<object type="RimCard" discrep-type="Conflicted-Source1"><SQL>UPDATE t_something SET c_column1 = <ts-field source="Source1">VENDOR</ts-field>, column2 = <ts-field source="Source2">VENDOR</ts-field></SQL></object>I am ...

Problem in Transformation of an XML.

1860 byte By sonashreea at 2007-11-27 2:51:48
Hi All,I am trying to Transform an xml object using the XSL file using servlet.1)Created an object for TransformFactory listed below.TransformerFactory xsltFactory = TransformerFactory.newInstance();2) Created a Source object and the code is listed below:Source strXslSource = ...

its EJB concept?

149 byte By senthil_yogaa at 2007-11-27 2:52:14
hi all,May i the difference between home interface and remote interface...what is the purpose of that in real time application..