Recent update: 2008-5-9
382 byte By
sche4a at 2007-11-15
I am trying to develop a web services with XFIRE and Tomcat, this web services will use an XML file to store some data, I have integrate this file in the web services project, but when I invoke the service, I get an exception that the file don not exist. I know very well that the problem is about ...
Hi every oneand Thanx to every one...for giving their precious help for every one Here i want to explain a small problem in java mail with unicode Here it is ....Iam sending a mail with some chinese characters in the subject field..internally these chineese characters are converting in to html ...
Why the apt tool throw an error when I reference a class inside of a jar in my web service ?I have the following class package org.rmilian;import javax.jws.WebMethod;import javax.jws.WebService;import javax.xml.ws.Endpoint;import org.apache.log4j.Logger;@WebServicepublic class Hello {static ...
571 byte By
HMMa at 2007-9-25
We have a EJB based bean managed persistence classes that run on the app server. I want to use same classes using cron job.How do I do that?Tried to execute these classes thru following steps...In side stand alone java class - main method create instance of the pmf and get persistence manager. ...
import javax.mail.*;import javax.mail.internet.*;import java.util.*;public class EmailMessage{public void postMail( String recipients[ ], String subject, String message , String from) throws MessagingException {boolean debug = false;//Set the host smtp addressProperties props = new ...
Hi,I cant seem to find out whats wrong with my code... what I need to happen is that the NumberTooLargeException error, which I created, when invoked make the errorpage.html appear.What is happening right now is that the default error page from the app server is appearing. the code is supposed ...
we are developing webservices through axis +java .Now we require to test this webservices with junit test case.Is there any difference in junit test case for java code and webservices.Any one know how can we do junit test case for webservices.Thanks and RegardsRuchira ...
535 byte By
s@ma at 2007-9-25
i wanted to get the string till specific limit and using substring method but if it get the string shorter then the limit i have given to method i gave error,java.lang.StringIndexOutOfBoundsException: String index out of range: 20at java.lang.String.substring(Unknown Source)Kindly help me out ...
This is what I have in my little servlet:response.setContentType("text/xml;charset=UTF-8");PrintWriter out = response.getWriter();String xmlRequest = request.getParameter("xml");if (xmlRequest != null){out.println("Client request: " + xmlRequest);}When I tried passing the data to the server ...
Hi folks,this is probably a little off topic, but maybe someone's seen this before:I've installed tomcat on redhat enterprise 4, but when I try to run it via /usr/local/tomcat/bin/startup.shI get'Neither the JAVA_HOME nor the JRE_HOME environment variable is definedAt least one of these ...
when i am creating session bean with remote interface using netbeans ide it is giving error nullpointer exception if u have worked on netbeans then plz. tell me is there any setting is required or what can i do for this
Hi,I have a SOAP server which expects an XML string in the SOAPBody. The XML string though has to comply with an XSD. Few xsd elements are non-Strings like Date and Any objects. How can I send a SOAPBody containing these elements?
well my name is muneeb n currently im doing my final year project which is implemtation of grid based e-Learing infrastrucutre. well i m using globus tool kit which provides services of grid computing the thing in which i need help is that i wan to know how can i implement webservice regarding ...
After sending a message to Queue, the client waits for the response. Once MDB picks up the message, it has to do two things:1. sending reply back to caller (using QueueRequestor ...)2. Do other processing (after the first step)When working in WSAD 5.0, it is replying back only after completing ...
We need to insert a SAML token dynamically based on who was login from Client side. I cannot find a way to pass any parametrs to the CallBack handler (SecurityEnvironmentHandler). Any one has any idea ? Any sample code ? Please help ...
i m creating a Web service, which has a method with a Vector as return value.Now wenn i build my project in Netbeans 5.2 i get this error, which refers to the build-impl.xml file :Collection types are not supported in the document literal mode - type: "java.util.Vector" The Method header look ...
Hi all,I am attempting to consume a web service which as far as I know publishes valid wsdl.The wsdl references separate xsd schema files for the message and data types.I get the following error when I try to run wscompile against the wsdl.modeler error: invalid entity name: "FindCustomerById" ...
I have an xml file like file1:<abc><Hello11></Hello11><Hello22></Hello22><Hello33></Hello33></abc>The task is I have to separate each child tag(Hello11, Hello22, Hello33) and put them in separate fileslike(Hello11.xml,Hello22.xml,Hello33.xml)I am ...
Hi frndsCurrently i am creating a webservice using java. I am using netbeans4.1 IDE. When i checked the example given in the quick start guide of Netbeans i am getting an error like cannnot find the Wscompil.class. Here iam pasting the build ...
Read more here : http://biz.yahoo.com/prnews/050421/sfth063.html?.v=7The full results are here : http://www.spec.org/jAppServer2004/results/jAppServer2004.htmlRich SharplesSun Microsystems
184 byte By
bumpa at 2007-9-23
Hi i am wondering if anyone knows how to establish a connection with MS exchange using ODBC, so that i can extract information from users folders such as appointment information
hello all!I'm a newby to java server and want to use it to put together a site that will be functional for service clients and a techies forum and maybe expand things a little later, question is how and where do I find apps to deploy that will work? I've tried some of the jakarta apps but ...
This seems like it should be a simple task, but I can't find an example or glean much from the documentation. I simply want to retrieve the docroot property value from the virtual server "server" from a deployed application.(I'm running Sun Java System Application Server 8.0.0_01)Any pointers ...
I want to use SOAP to implement a remote procedure call between two machines. The client is a dumb machine that does not support a web server.SOAP encapsulates an XML document., and XML docs typically reference a URL for a DTD or schema file that define the element names that are used in the ...
Hey AllI hope some one can help me out. I am creating an application whereby I have created a Stateful session bean for a login user. This LoginSessionBean is connected to a UserCMP bean which is connected to a user table in mySQL database. My problem is that, when testing the application using ...
226 byte By
EJBsa at 2007-9-23
Hi I am trying to build an ANT file in eclipse and using vssget to get the latest version. When I run it it gives me this error "'ss' is not recognized as an internal or external command". Can somebody help me?
I have a session bean that uses other java classes that are in other package.I need to build and deploy my J2EE app with Ant script but it fails because this package i have imported to AJB class, can't be found. But when compiling classes, there's no problem. Do I need to do somethig to Ant ...
257 byte By
jporsa at 2007-9-23
I'm new to the JAXB-part of Java Web Services.JAXB offers the possibility of converting an XML schema to a tree reprensentation... - How can I access this tree structure using (preferably) some visitor pattern?Best regards Jacob
I try to save my WSDL to the xmethods UDDI, so that my application can go to UDDI xmethods to find out my WSDL and continue invoke my method but I cannot save my link to the xmethods web site. Is anyone here have been save thier WSDL to UDDI xmethods before. Can you teach me how to do it? My ...
I am writing a set of JSP pages in order to play chess online. I know it is better to do this task using an applet, but the man I am working for doesn't want it to be an applet. The idea is two clients play a game, while in fact manipulating a single object in the application or ServletContext ...
Hi,i'm really confused right now, it's so weird, i just can't get it.I use POJO business objects in a layer between my session fa齛des and my cmps.I already have on use case working like this: the fa齛de doesn't make references to other ejbs (neither in ejb-jar.xml nor jboss.xml), as it ...
Hello allThis is more of a XML schema design question.If I have 2 elements, both at the same hierarchy level in a xml document, how can I enforce a condition such that atleast one of these elements should occur ? I don't think choice, all or sequence would do it for me!! Thanks for your ...
I have created an html file that i want to email. I didn't want to email it as an attachment but as the contents of the email(so the recipient opens the email and sees the html file). How do I do this?
Hi,i'm pointing some characteristics (that came up my mind) of the following techonologies.I'd like to have some more comments on them, so if any one would like to point more vantages or disavantages... DAO- jdbc wrapper, direct access to db, easy implementation for complex queries- nice for ...
Hi Java experts,I'm trying to output a DOM object to a file. I used Xerces to create the DOM object:DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();factory.setNamespaceAware(true);DocumentBuilder docBuilder = factory.newDocumentBuilder();docBuilder.setErrorHandler(new ...
Hi,I am having problem in retrieving child nodes value, the schema file say's it is type="xs:string" which is "#TEXT" node, but whenever I try to get value using element.getNodeValue() for this child I get "null". Do I have to put this schema file which is external to my application in context ...
Realise that currently in the market there are thousand and one parser available .... Just wondering which one is the best when comes to functionality and XML processing ... I guess many ppl is asking why this parser and not that ...
Hello,Does anyone know of any good references that help setup / configure the Petstore sample application on IBM Websphere Application Developer? A tutorial would be great.Cheers,Toby
I think it is a pain to have to use procedural code to access XML documents via DOM. Why can't I use an XML-based language to describe XML documents? Wouldn't that be more natural? Is there anything available that would do this?
Hi all,I want to know is there any API in jdk1.4 which has the functionality to transform a xml and xsl file to a html file.Thanks in advance,Ashok.
1977 byte By
rooksa at 2007-9-20
Hi, I've written a short test app that takes two strings of text, sets one as a text node, and the other as an attribute, both in the same Element in a DOM. I want to then run the DOM through the serializer and pretty-print it.The problem is that when default character entities such as an ...
HelloWhen I want to deploy a ejb, I got such a Error!weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Table:java_cert_lst Full Table Check failed, but table all columns were found! ]What's the meaning of "Full Table Check failed"?How can I deal with it?I utilize MySQL & ...
Take a look at: http://www-106.ibm.com/developerworks/xml/library/x-soapcl/listing1.htmlThis code is so much more simple to work with than Sun's implementation where one have to create a new SOAPEnvelope, Body, Header, etc. each time one want to send a message ...There just seems to be a lot of ...
In the book "Mastering EJB 2.0" the author strongly suggests the usage of the EntityContext's getPrimaryKey() method in the ejbRemove() method before executing any SQL query on the database to remove the entry. According to him, there is a chance that if the already existing field values from ...
Hello,i am trying to open powerpoint presentation file in my application. i dont know wheather it is possible or not.if possible then tell me how i can do that.plz send me coding.i m wating your replyThank in advancesandy
901 byte By
_nmka at 2007-9-19
Hi all,I am a university student and have just gotten the following assigment. I have to represent java classes as XML documents. To be more specific, I have to represent classes building GUIs... so the presentation is to be kept at the container level. Containers that contain containers, that ...
I'm having trouble with the XSLT position() function. I have the following snippet of XML:<categories> <category id="6"><title>Alumni</title> </category> <category id="10"><title>Built Environment</title> </category> <category ...
I wrote a very simple JavaBean, compiled it without any problem and placed under WEB-INF/classes/...However when I am trying to instatiate it from JSP <jsp:useBean ../> I am getting the following error in my log system :Class statistic.getStatBean not found.statistic.getStatBean stat = ...
hi all, I am new to XSL as such and would like to know whether a file content can be included by using XSL (using transformation). The scenario is such that personalized email have to be generated for users, and the program receives a XML that contains information to be used for ...
Hi...I m trying my hands on WAP based email system... I m working with javamail and servlets for the same..The application developed so far works well except while sending mails, SMTP authentication is requred..can some one elaborate how to handle this thru java as in while creating SMTP ...