HI,Is there any way we cam store and read Java Exceptional messages thru XML?PLease respondThanks
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". ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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
What is the basic difference between regular bean and enterprise bean?
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 = ...
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
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
How can I differentiate between a stateful and a stateless Session bean?
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
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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.
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 ...
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!!
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 ...
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 ...
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 ...
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
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 ...
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 ...
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
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 ...
while Parsing XML a runtime exception is coming.....org.xml.sax.SAXNotRecognizedExceptionpl. help me..
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"> ...
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 ...
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 ...
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 ...
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 ...
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 = ...
hi all,May i the difference between home interface and remote interface...what is the purpose of that in real time application..