xml along with jsp?

484 byte By shunmugasundaramganapathya at 2007-11-27 8:10:01
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 ...

Attribute 'maxOccurs' cannot appear in element 'element' ..!!!! :(

1932 byte By @developer@a at 2007-11-27 8:10:09
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" ...

How to reference a local WSDL file in a JAX-RPC client.

8352 byte By Richard_Cromera at 2007-11-27 8:11:41
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 ...

Understand InitialContext lookup - Understanding concepts

1096 byte By mohitanchliaa at 2007-11-27 8:12:51
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 ...

POJO and XML arguments

274 byte By jonathancreeka at 2007-11-27 8:13:53
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.

facing problem in XSL FO block element and choose element

1125 byte By lingamaneni04a at 2007-11-27 8:14:26
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 ...

How can I retrive mail from servers

202 byte By kripa_ostwala at 2007-11-27 8:15:00
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

Session doesnt expire after window is closed.

523 byte By rahul.aggarwala at 2007-11-27 8:15:18
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 ...

How to check the value of a variable

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

XPath processing with namespaces does not work. Please review my code..

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

Human readable descriptions on entity fields

758 byte By codebooka at 2007-11-27 8:17:46
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 ...

How to set up to retrieve email from different users

2230 byte By Pleisurea at 2007-11-27 8:18:21
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 ...

Sending email without authentication

459 byte By harish_nkumara at 2007-11-27 8:19:31
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 ...

New to XML+Java: which is the best API?

835 byte By ntalamaia at 2007-11-27 8:19:32
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 ...

hi everyone

2162 byte By deepthi_tirunaharirama at 2007-11-27 8:19:37
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 ...

sending email with javamail

2162 byte By deepthi_tirunaharirama at 2007-11-27 8:19:38
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 ...

Application server and JVM

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

How can I display to screen the contents of a Soap Message

229 byte By Richard_Cromera at 2007-11-27 8:20:33
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

Weblogic8.1 -EJB

137 byte By Jeyashreea at 2007-11-27 8:22:03
I have installed weblogic8.1 server,Can anybody tell the step by step procedure to run EJB applications using weblogic8.1 serrver?

help for set classpath

317 byte By kripa_ostwala at 2007-11-27 8:23:29
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 ...

wsdlDocumentLocation must not be null

1799 byte By anuraktha at 2007-11-27 8:24:18
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 ...

Could not passivate; failed to save state

3078 byte By RicardoMa at 2007-11-27 8:24:55
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 ...

can U solve it ?

3133 byte By kripa_ostwala at 2007-11-27 8:25:01
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 ...

Sun Java System Application Server Platform Edition 9 help need

483 byte By ragavarnan_call_screena at 2007-11-27 8:25:53
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 ...

JNDI lookup for bean [ejb3]

842 byte By B.Harrisa at 2007-11-27 8:26:27
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 ...

System Message Queue 4.0 is starting everytime i run my client program

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

WebServices and Enums

370 byte By DerBruzzzlera at 2007-11-27 8:28:03
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 ...

javax.mail.internet.ParseException: Expected ';', got ":"

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

cannot start imqbrokerd

784 byte By Alan_Smitheea at 2007-11-27 8:28:32
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 ...

Using Netbeans with Axis 1 shows HTTP Version Not Supported

1840 byte By _a_l_e_x_a at 2007-11-27 8:29:06
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" ...

EJB3: Using Stateful session Beans with JSF

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?

Result Set to XML. How to generate a tree structure? Please help

977 byte By crazy_bunnya at 2007-11-27 8:31:16
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| ...

About EJB

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?

exception when invoking create method on entity ejb's home object

3418 byte By Jatin_Kulkarnia at 2007-11-27 8:31:54
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 ...

MessageID Header

279 byte By prabhu.ramadasa at 2007-11-27 8:32:23
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

reading data from tags

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

how can i send values from java to .net

359 byte By chaithubtecha at 2007-11-27 8:32:38
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 ...

Property Chooser dialog from Add Correlation Set dialog Doesn't Expand

640 byte By VegetarianDesignsa at 2007-11-27 8:34:03
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 ...

RBAC check fails Security Constraint Not Enforced

2727 byte By weinharda at 2007-11-27 8:34:36
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 ...

InternetAddress personal name is NULL from

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

It's not working

343 byte By kripa_ostwala at 2007-11-27 8:36:20
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 ...

what should i do the derby database can't be connected?

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

Wrong order of xml tags created while writing xml to a file

4719 byte By AkramChotua at 2007-11-27 8:37:28
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 = ...

setting attributes in many to many relations

766 byte By bakr_awada at 2007-11-27 8:38:04
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 ...

J2E and multi-threading

569 byte By f.visticota at 2007-11-27 8:38:27
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 ...

Issues in looking up a ejb deployed on glassfish from tomcat.

3508 byte By JamesSelvakumara at 2007-11-27 8:39:15
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 ...

Few Java EE questions

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

Named query in Entity Bean - Problem with embedded class

6420 byte By _Morpheus_a at 2007-11-27 8:41:46
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 ...

Want to learn JWSD

164 byte By OnlyForJavaa at 2007-11-27 8:41:58
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

How can i create new text boxes by pressing addtask(submit) button

192 byte By rayees1234a at 2007-11-27 8:43:05
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 ?