Recent update: 2008-5-9

Web services & XML files

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 ...

Sending mail but displaying the uncode in subject filed...some wht urgent

1450 byte By srikanth_bsba at 2007-11-15
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 ...

Java Technologies for Web Services - This forum is dead or what

2549 byte By Miliana at 2007-11-14
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 ...

EJB Persistence using cron job

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. ...

No error but mail doesn't turn up!

3170 byte By boom_zapa at 2007-9-25
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 ...

Mapping Exceptions Help ( Newbie )

9338 byte By huffboya at 2007-9-25
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 ...

JUNIT test case for webservices.

310 byte By Jeet@Tiwaria at 2007-9-25
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 ...

subject length

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 ...

Get method ignores xml tags?

955 byte By zactoraa at 2007-9-24
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 ...

tomcat startup problem

932 byte By robinjohna at 2007-9-24
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 ...

problem with using net beans

226 byte By teekama at 2007-9-24
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

How to add a Date object in SOAPElement?

244 byte By ashish7sa at 2007-9-24
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?

i need help regarding to implement webservices

572 byte By Muneeba at 2007-9-24
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 ...

onMessage clarification

556 byte By mystruts2004@hotmail.coma at 2007-9-24
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 ...

JWSDP 1.6 -- How to pass parameters to SecurityEnvironmentHandler

243 byte By billyjolama at 2007-9-24
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 ...

What is this error in web service:Collection types are not supported in ..

997 byte By serkolaa at 2007-9-24
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 ...

wscompile, wsdl and separate xsd schema

9111 byte By RobNica at 2007-9-24
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" ...

XML

763 byte By chinnu76a at 2007-9-24
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 ...

web services using netbeans

4881 byte By Sandy.Ea at 2007-9-23
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 ...

New - SPECjAppServer results for SJAS 8.1 2005Q1

228 byte By richsharplesa at 2007-9-23
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

Connecting to MS exchange using ODBC

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

modules to run on sjsas

429 byte By Jwalkera at 2007-9-23
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 ...

Retrieve docroot property

427 byte By kurtpetea at 2007-9-23
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 ...

Basic question regarding SOAP

576 byte By Wrecking_Crewa at 2007-9-23
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 ...

Stateful Session Bean

734 byte By sineadmca at 2007-9-23
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 ...

ANT and VSS

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?

Deployment error

356 byte By J_J_78a at 2007-9-23
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 ...

Visitor support for trees build by JAXB?

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

Save WSDL to xmethods UDDI

494 byte By AAAAQQQa at 2007-9-23
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 ...

writing JSPs to play chess; I get a null at a point, where I shouldn't

16560 byte By mishoch at 2007-9-22
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 ...

JNDI issues -> Weird things

2542 byte By ltcmelo at 2007-9-22
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 ...

conditions in XML schema

341 byte By mspreddy at 2007-9-22
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 ...

how to send html file

223 byte By BluJava at 2007-9-22
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?

DAO, BMP, CMP and O/R Mappers

1249 byte By ltcmelo at 2007-9-22
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 ...

Namespace lost when transforming using Xalan

1901 byte By orangerd at 2007-9-22
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 ...

How to add schema file(.xsd) while parsing using DOM?

596 byte By yupanasa at 2007-9-22
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 ...

Which parser to use ...

240 byte By kok_suma at 2007-9-22
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 ...

Petstore and WSAD 5.0

211 byte By tobyjohnwestona at 2007-9-21
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

Why use procedural code to access XML docs via DOM

237 byte By FatherDaveGa at 2007-9-21
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?

Jva api for xml and xsl transformation to html

176 byte By ashok_daraa at 2007-9-21
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.

Unescaping Entities with Xerces

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 ...

Urgency! Deploy a EJB in Weblogic7

562 byte By bringmea at 2007-9-20
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 & ...

Why use SOAP (SAAJ?)

571 byte By borbjoa at 2007-9-20
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 ...

ejbRemove() query?

1022 byte By shashikant2ka at 2007-9-20
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 ...

how to open powerpoint through java

264 byte By sandeep180a at 2007-9-20
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

Swing and XML

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 ...

XSLT position() not returning sequential values

4175 byte By benstarr at 2007-9-19
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 ...

Registering JavaBean with Tomcat

531 byte By vitaliys at 2007-9-19
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 = ...

XSL to include file content!

763 byte By venkatesh98 at 2007-9-19
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 ...

SMTP authentication for wap baesd email

1578 byte By vicky_pall at 2007-9-18
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 ...