I want to know how to retrieve values from the below xml.Because the firstname and the lastName are dynamically populated from the jsp?<c:case><c:data>name<c:party type="personName">firstName<c:rule>none</c:rule></c:party><c:party ...
Hi I am trying to validate an xml against the schema..and i get the following error : Attribute 'maxOccurs' cannot appear in element 'element'where my xsd is :<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs=" http://www.w3.org/2001/XMLSchema" ...
Greetings,I am writing a simple service client using Java WSDP 2.0. I already created a Web Service that is a STAND-ALONE executable. It is listening on a port.I created this service with gSoap (C++). I HAVE created and successfully tested a gSOAP client for this (of course).However, now I am ...
I am new to EJB, I am trying to understand the concepts. I am trying to understand example posted on https://glassfish.dev.java.net/javaee5/ejb/examples/Sful.html.What I don't understand is how Standalone Java Client is doing the lookup and against what is it doing the lookup. Is it just ...
Hello,I am curious how I can pass XML string arguments to POJO methods and also get return strings in XML. It seems that POJO at least in Axis is not handling well!I am looking for simple ways to do this without using attachement methods.regards.
I have a set of data which is dynamic.i.e the no. of rows is unpredictable. So I want to use XSL <for-each> element . Also I want to put conditions. My code is like:<xsl:for-each select="parent::EC-REPORT/TITLE-HEADER"><xsl:choose><xsl:when ...
Hello Sir/madam,I want to develop an application,which fetch all mails from my all mail accounts & send me in my local mail account.Would you help me by suggessions?Plese
Hi All,I have facing this issue for quite some time now.1. I login into my application using Firefox. User now can view below the line pages.2. Open another window of firefox.3. Close the window open in the first step.4. Hit the application URL in the second firefox window and u find the user ...
566 byte By
vatora at 2007-11-27 8:15:26
I'm making a webapplication and I find it really hard to check the value of the variables? What is the best way to do this? I've tried using the debugger, but for some reason I can't get it to work properly. How do the professionals do it? Do you write the value to the browser? Or do you ...
3167 byte By
Ziga at 2007-11-27 8:16:09
Dear all,I am working on with the IMS Group's Enterprise XML standard ( http://www.imsproject.org/enterprise/) and need to retrieve member information using XPath.After significant fault finding, I have narrowed down the problem to the XML file containing multiple namespaces in the root ...
My current project is using Hibernate/JPA as our DB access technology. We have all of our entities described using JPA annotations. What we need now is a way to add a human-readable description String to each @Column and @Table. We want to be able to use these in the code as tooltips as well as ...
Hi,I have the following problem:I have written a Java application for some video/postproduction work.This application is using Java webstart, so different users are able to use the application via internet. Now I want the users to be able to send the content of a JTextField by e-mail ...
I have a form where the user fills in the to and from email addresses. Then clicks on the send button. Now I want to send the email automatically without password authentication. JavaMail API I used, but it is giving me AuthenticationFailed Exception. How to solve this problem without ...
Hi,I am new to XML+Java and I am trying to develop an application that will both read and write to an XML file. After reading some tutorials, I decided that jaxp, sax, and org.w3c.dom.* are rather low-level and very unfriendly.After a cursory web search, I came to the conclusion (please correct ...
HiI am new to javaMail....And i having a problem with this program.I getting the following exception when the run the following programimport javax.mail.*;import javax.mail.internet.*;import java.util.Properties;public class MailDemo {public static void main(String[] args) throws ...
HiI am new to javaMail....And i having a problem with this program.I getting the following exception when the run the following programimport javax.mail.*;import javax.mail.internet.*;import java.util.Properties;public class MailDemo {public static void main(String[] args) throws ...
465 byte By
kehu0a at 2007-11-27 8:19:42
II am trying to install a certain application server on certain Unix platform (let it be anonymous for now), the 1st thing the installer asks me to do is to run a script that will install some kernel extension and turn on asynchronize IO. I am pretty sure these things have nothing to do with ...
I am writing a JAX-RPC client and just want to look at the actual XML soap message I get back. I have access to the class SoapDeserializationContext and to the XMLReader. Can anyone help?Thanks,Richard
I have installed weblogic8.1 server,Can anybody tell the step by step procedure to run EJB applications using weblogic8.1 serrver?
Dear Sir \ MadamI have download javamail-1.4.zip and jaf-1.1.zip from sun at c:\j2sdk1.4.1 directoryThen I extract these files in same directory with folders javamail-1.4 and jaf-1.1. These folders have mail.jar and activation.jar fileI am confused to set correct pathPlease help ...
I got these error when calling webservices that deploy on other machine(sun appserver 8).[#|2550-06-21T16:33:03.625+0700|WARNING|sun-appserver-pe8.1_02|javax.enterprise.system.core.naming|_ThreadID=14;|java.lang.IllegalArgumentException: wsdlDocumentLocation must not be nullat ...
Hi guysI'm using ejb with a web application on jboss 4.0.5 with jdk 1.5 and i'm getting this exception:11:53:50,390 WARN [AbstractInstanceCache] failed to passivate, id=f373o8gy-sjavax.ejb.EJBException: Could not passivate; failed to save stateat ...
This is my code for retrive mail import java.util.Properties;import javax.mail.internet.*;import javax.mail.*;import javax.swing.*;import java.awt.*;import java.awt.event.*;//import javax.activation.*;import java.util.*;public class FetchMail {private String host = "";private String ...
I am trying to download Sun Java System Application Server Platform Edition 9 version, but i am not able to get the exact software, while i am clikcing the link "Sun Java System Application Server Platform Edition 9.0; Java Platform, Enterprise Edition 5 SDK" it is going to "Sun Java System ...
I've EAR with 2 modules:a) ejb module, which contain 1 session bean:public interface TestBean {...}@Statelesspublic class TestBeanImpl implements TestBean {...}b) web module, which contains some *non managed* service, which needs access to above bean. Question is - how can get access to this ...
2057 byte By
Pragadaa at 2007-11-27 8:27:39
I am using SJSAS PE 9.0.I have created a connection factory and queue using Admin console.Whenever i try to run the client application to send or receive messges, System Message Queue is automatically starting.Here is my program to access the message queue to send and receive message. But it is ...
Hi!I'm trying to write a little web service using NetBeans 5.5.1 and Sun Application Server 9 on Mac OS X.I have problems with objects containing enum attributes. These objects can't be used as a return value of a web method :(Is there any solution to this? What am I doing wrong or is it just ...
2613 byte By
appy77a at 2007-11-27 8:28:27
Hello Everyone, I get 2 exceptions when I use the MimeMultipart's getCount method on e-mail messages that have either a colon or equals characters.javax.mail.internet.ParseException: Expected ';', got ":"at javax.mail.internet.ParameterList.<init>(ParameterList.java:179)at ...
I've installed the MessageQueue under C:\Sun\MessageQueue\bin Where the log files are being outputted to, I do not know.I can not start the service. When I start from the command line, there is simply no output or any indication that anything has happened. When I start as a service from ...
Hello,I need to use Axis 1 with Netbeans. So i have integrated Axis 1 in build.xml file to use axis ant targets. If i am executing the deploy target:<target name="AdminClientDeploy" description="adminClient" depends="validate"><java classname="org.apache.axis.client.AdminClient" ...
250 byte By
jdesmeta at 2007-11-27 8:29:32
I envision that a managed bean with session scope makes the use of Stateful session beans unnecessary.Is there any case we can make in favor of using Stateful session beans?Is there any best practices that I can learn about this?
Hello everyone,I went through some of the posts here and I wasnt able to find my answer. Hence I am posting a new thread. If this question was already answered kindly point me to that thread.My scenario:I have a result set which has following set upREGION | STATE | DISTRICT | CUSTOMERNE| ...
128 byte By
AWCPa at 2007-11-27 8:31:34
i,m starting to lerning EJB plese explain how i start this.what are the main component and explain about this technology?
I have a simple entity bean. I am able to get the reference to the entity's home object. But when I run create method on entity's home interface, I get the following exception. The create method takes no arguments as the primary key is Auto-Increment field in MYSQL database. Here is the ...
Is the Message-ID header a mandatory header? And can it be safely used to distinguish between different messages on the inbox? (As in how unique is it in reality?).Also is there any other way to identify a particular message on the inbox?THanks,Prabhu
331 byte By
aaa801a at 2007-11-27 8:32:28
i have a sample xml filewith these tags in it<siteurl>##</siteurl><publisher>###</publisher>and lots more tagsim writing a program to print the data from the filelike http://java.sun.com/suninstead of printing a whole fileany ...
hello,some one told me that by using webservices we can send values from java to .netis it truei dont know the webservices in java.can you plz suggest mewe have a crossplatform project in which we have to send values from java to .net like we have to maintain sessions.can you help me.thanks in ...
We are using Windows XP with NetBeans IDE 6.0 Preview (M9, build 070502).We are creating a BPEL workflow. We want to create a correlation set. 1. In the Navigator, we right clicked on Correlation Sets, and and chose "Add Correlation Set ..." from the menu2. The Correlation Set dialog opened. It ...
I configured a simple WAR to ony allow a specific role to be able to execute my Helloworld url. Now it appears that any valid user defined on the appserver can access the url. Shouldn't it be limited to the specific role i defined using the deploytool? It almost appears as if the security ...
1677 byte By
J-Ka at 2007-11-27 8:35:25
Hi,I am using Java Mail APIs to access Lotus IMAP Server. I am trying to get the Personal Name of the From Address in a Message. I have casted the Address Object to InternetAddress Object. There is no value for Personal Name. It returns NULL. Here is the test code.String host = ...
Hi,I found program on sun...\Retrieving Mail with the JavaMail API and Working with the Java Communications API.mht for fetching mailI copid it and compiled.But It gives me error for "Fetch" program as incompatible types forMessage message[]=folder.getMessages();Can you tell me what I will ...
432 byte By
weieila at 2007-11-27 8:36:55
i downloaded the j2eetutorial of Sun ,and i practice the bank examples of J2EE platform, the other steps finished successfully according the pdf tutorial ,and formed the BankApp.ear ,but when i run the web client and the application client ,when accessed the database ,it can't show the data in ...
I am trying to write xml to a file using below code:......DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();Document doc = builder.newDocument();// Insert the root element nodeElement element = ...
in my problem i have two entities A , B they have many to many relationpesodo codeclass A{ //Code .... Set<B> bs;}class B{ //Code .... Set<A> as;}Session Bean:-A a = new A();Set<B> bs = new Set<B>();bs.add();a.setBs(B);entityManager.persist(a);this is not a real code!!!i ...
I know that multi threading is not permited in J2E applications.BUT my pb is as following:My J2E application is using a scheduler (Quartz). This scheduler reads a file witch contains commands to be inserted in database.If i make a classical loop with a for instruction, the performance are not ...
Hi all,I have followed the steps mentioned in the EJB FAQ in the glassfish site and was able to lookup a remote ejb deployed in glassfish from a standalone client.In case of standalone client, i set the appropriate jndi properties in the initial context as mentioned in the FAQ and added the 4 ...
3951 byte By
atl3kgta at 2007-11-27 8:40:29
Hey guysI am writing my first EE application and running into a few problems and would appreciate any help i can getoverviewAt the moment the application consists of an enterprise module and a windows client application.Web module will be done laterSQL server 2005 is the database being ...
Hello Forum,I'm trying to set up a named query in my Entity Bean and I'm unable to getit up and running for an embedded class object.The class hierarchy is as follows: @MappedSuperclass AbstractSapResultData (contains dayOfAggregation field)^|@MappedSuperclassAbstractSapUserData (contains the ...
HI ,allI am intrested in jwsdp package. I want to study about that.So which book is best for studing ?Also suggest best online resources
HI All, In a page there having a text box in a row and a add task button , while pressing the add task button, need to create a one more text box ......... any one can help me ?