Java Technology & XML - Tool to view and modify XML in JSP page as label and text format

248 byte By uuuuu8a at 2007-11-26 23:11:18
We have xml document and need to view and modify xml in jsp page as like label and text for tag and value respectively. Please let me know if any tool/framework available for this or any feasible solution to do this.thanksvasan

Enterprise JavaBeans - New to Enterprise beans: Questions about Converter example

1259 byte By malrawia at 2007-11-26 23:11:25
Hi,i am pretty new to the EJB tech., i am using the converter (remote stateless bean) example given by the tutorial, i was able to rewrite,compile and run the client applications but i have some questions :- i noticed that the bean is in a converter.ejb package while the client is in a ...

Java Technologies for Web Services - How can i send a big file as pararameter of any method in a

381 byte By ijimeneza at 2007-11-26 23:11:45
Hello,i have a problem,,,,, i want to send a file of 2mb as parameter of a web service method.When i send this file as a vector of bytes i have the error out of memory...If the file is 200kb or smaller works fine.... How can i send a big file as pararameter of any method in a Web Service?thanks ...

JavaMail - Problem in sending mail via JSP pages

533 byte By roamera at 2007-11-26 23:11:57
http://jakarta.apache.org/taglibs/doc/mailer-doc/mailer-1.1/index.html#requirementsI followed the above instruction, install the required mail taglib, jar files, also JavaMail 1.4, JAF 1.1.When I test the JSP page, no error occurrs, but just no email is sent.The installation of JavaMail and JAF ...

Java Technologies for Web Services - applets & webservices

406 byte By cama_m42a at 2007-11-26 23:12:10
HiI've written an applet which includes a web service client and uses several simple methods from the web service. The applet works well as a stand-alone application. However when I embed it in a jsp page of a web application it stops working. The web methods seem to be the only problem for ...

Java Technologies for Web Services - Not be able to access WSDL file from Tomcat Container (JAXR

461 byte By ntimesca at 2007-11-26 23:13:05
Hi,I have deployed .war file on Tomcat server but when i am firing URL on my browser then the browser giving me HTTP Status 404 errori have checked the content of .war file by extracting it and all the required artifacts are properly created.so if anyone has some idea that why i am not be able ...

Java Technology & XML - Interpretation of javax.xml.namespace.QName.......?

305 byte By barjeshforyoua at 2007-11-26 23:13:14
Hi everyone,I coud not understand the interpretation of the following constructor : - javax.xml.namespace.QName(java.lang.String namespaceURI, java.lang.String localPart);please throw some light on this with an example, as I don't know much about XML.Thnx in ...

Enterprise JavaBeans - Primary key class in ejbCreate method

509 byte By HELLOOOOa at 2007-11-26 23:13:28
Dear all,In an entity bean class (either cmp or bmp), consider the following two ejbCreate methods:public CustomerPK ejbCreate(CustomerPK pk,String custName) {...}public CustomerPK ejbCreate(int pk,String custName) {...}Sometimes I saw people directly passing an instance of the primary key ...

JavaMail - Mail session from JNDI(coded)

1161 byte By JAVA.RULZa at 2007-11-26 23:13:44
private static Session getSession() {Session session = null;try {Context ctx = new InitialContext();Context envCtx = (Context) ctx.lookup("java:comp/env");session = (Session) envCtx.lookup("mail/Session");} catch (Exception e) {logger.error(e);}return session;}My question ...

Java Technology & XML - is DOCTYPE Declaration in DTD possible ?

211 byte By proveindiaa at 2007-11-26 23:13:54
Is <!DOCTYPE tag is possible in DTD file ?.Please let me know the place where can i get more info about DTD ?.I have some DTD file, i wan to check using JavaAPI whether my DTDs are valid.

Java Technology & XML - org.xml.sax.SAXParseException: Reference is not allowed in prolog

1641 byte By shivram_raja at 2007-11-26 23:14:02
Hi,I have been using DocumentBuilder to parse an xml string in our application but now came up with this exception:org.xml.sax.SAXParseException: Reference is not allowed in prologWhen I looked at the xml data, I found that it does not have a prolog in it. I also found that the data contains ...

Enterprise JavaBeans - Exception:null

1258 byte By technotechiea at 2007-11-26 23:14:04
I m executing this code in the servlet and the code is successfully getting executed but it retrurns null after that. 1 is getting printed and after that exception is raised.I think instance of UserEntityBean is not getting created. The step of calling the enterprise bean by right clicking on ...

Java Technologies for Web Services - Accessing a webservice

495 byte By TMKa at 2007-11-26 23:14:11
Hi,I have a middle sized web application with standard components like database access, JSPs and Servlets. I have to extend the application now --> the application should use a web service.My colleague developed the web service in .NET and I have the WSDL file which describes the web ...

Enterprise JavaBeans - problem in Session bean (EJB 2)

991 byte By mirentxua at 2007-11-26 23:14:18
Helloi have the next warnig when i start my weblogic:<Call-by-reference is not enabled for the EJB 'MiSeesionBeanSessionEJB'. The server will have better performance if it is enabled. To enable call-by-reference, set the enable-call-by-reference element to True in the weblogic-ejb-jar.xml ...

Enterprise JavaBeans - How to catch SQLException from a session bean

1222 byte By rabbiaa at 2007-11-26 23:14:50
HelloI have a stateless session bean which has a method to persist an entity (User) in the database. In User there is a foreign key (addressId) from another entity (Address). While i was persisting User, i entered a value of addressId which was not present in the Address table. Since there was ...

Java Technologies for Web Services - Understanding web services

220 byte By artfuldodgera at 2007-11-26 23:16:08
I found an article on line.It allows sending a receiving SOAP messages with SAAJ.What I did not see was any reference to WSDL.Don't I need a WSDL file for creating a webservice?Thanks.

Enterprise JavaBeans - JPA tomcat or AS

462 byte By PeshoChukaa at 2007-11-26 23:16:27
Hello,I am building a small web application. I am trying to findout informationon what is the difference between. EJB 3.0 persistence in the application server and the one that is implemented in AS. For example JBOSS and Tomcat. I noticed that JBOSS initialize the ejbs on the server start, ...

JavaMail - attachments received as .dat

621 byte By Thimetolivea at 2007-11-26 23:16:37
Hello.I am trying to send an attachment via JavaMail, which I can do succesfully.The problem is every attachment Ive tried (other than .txt or .jpg) is received as "correctfilename.dat"If I manually select what program it needs to open, the attachment opens fine.Here is the code Im using to ...

Enterprise JavaBeans - Entity Beans and tables (views)

401 byte By mirentxua at 2007-11-26 23:16:52
Helloi am working using ejb 2, entity beans.My entity beans represents tables from database, one table one entity bean. is this correct?i have other question; if i have one viws from 5 tables from the database can y make one entity bean for this database view?can i work with entity beans, for ...

Enterprise JavaBeans - Clustering etc

983 byte By jqqa at 2007-11-26 23:16:58
Hi,Sorry for long post and thanks for patience (read at leas first question (-:)I would like to ask abt. session beans with Local interface in cluster enviroment and a WEB want to access such bean. I can guess that with stateless beans the situation is easy: the bean will be created locally and ...

Enterprise JavaBeans - (ejb 3.0) stateful session facade?

573 byte By STFa at 2007-11-26 23:17:08
Hello,(1) Would you consider stateful session facade (whose client is a servlet) a bad design?(2) How to have a stateful session facade referenced in a servlet? I am using Sun Application Server Platform Edition 9.0 and trying to make an injection:@EJB(name="ejb/KOGSessionFacade")protected ...

JavaMail - Nid help with processing file attachments

8885 byte By Mark.Ramos222a at 2007-11-26 23:17:32
I'm using javamail to acquire my gmail messages... and i have encountered a problem with my algorithm for processing the mail's content.. the problem came to a message where it contains 2 file attachments.. a picture and a pdf file.. while my servlet was running getting the content of the ...

Java Technology & XML - Reflection on enumerations

212 byte By Jagadaunoa at 2007-11-26 23:18:14
How can I discover the characteristics (values, value range, type, ...) of an enumeration, using reflection?(The enumeration is generated by xjc from an xsd).Thanks for any pointer,wbj

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

2549 byte By Miliana at 2007-11-26 23:18:47
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 ...

Enterprise JavaBeans - TransactionRolledbackLocalException - how to solve this problem

422 byte By stfua at 2007-11-26 23:19:01
Hello,when i'm trying to *query="SELECT OBJECT(p) FROM UserSCHEMA AS p, *UserEmploymentSCHEMA AS pe *WHERE p.userID in(pe.userID) *ANDpe.organization LIKE ?1" *signature="java.util.Collection findByOrganization(java.lang.String organization)"i'm getting exception ...

Java Message Service (JMS) - xml jms mdb

446 byte By raja_enta at 2007-11-26 23:19:02
Hi All,I am new to xml-jms i have a requirement like this:\ I receive xml messages from SAP XI i need to extract the data for xml and check it using a jms queue (mdb) and pass it to Business Rule Engine server, Is that i need to use parsers to extract data from xml and then pass it to jms queue ...

Java EE SDK - session getting destroyed

704 byte By danmaca at 2007-11-26 23:19:06
Hello friends,I am working on a application built on struts framework and am facing a problem where the session is getting destroyed randomly beore the session time out occurs. This happens when I navigate through the links. A particular jsp which contians the links has been included in all the ...

JavaMail - subfolders of public folders not being displayed

299 byte By Suresh.Gantaa at 2007-11-26 23:19:10
Hi All,I am trying to display the all the folders of my mail account using the java mail demo example folderlist.java, but it does not list the sub folders of "Public Folders " folder. Can anyone please tell me why is it so?Thanks in

Java EE SDK - Do I need to install J2EE 1.4 SDK if I already have J2SE 1.5.0_08 SDK?

833 byte By asumotoa at 2007-11-26 23:19:40
Currently my system installed J2SE 1.5.0_08 SDK and Java Studio Enterprise 8. My OS is Windows XP Professional Edition.I want to start to learn J2EE. I read the software requirement in the J2EE tutorial and it asked me to install J2EE 1.4 SDK package which contains System Application Server ...

Java Technologies for Web Services - Tomcat Axis Logging delay

2800 byte By AngusThermopylea at 2007-11-26 23:20:01
Hi all,We're very confused.We have a webservice that is using Axis1.4 and running under Apache tomcat-5.0.27. We have an apache2 modjk connector in it that's forwarding requests to the tomcat.Now we have a webapp that has some servlets/jsps and an axis webservice in the same war.We have ...

JavaMail - problem sending mail using simple servlet

3200 byte By frndinneeda at 2007-11-26 23:20:34
the following is the code i m using to send mail.and i hv kept it in a folder called ServletEmail which is inside com folder which is again inside sprog folder of webapps of tomcat.but when i execute this it shows the error: The requested resource (/Sprog/com.ServletEmail.EmailServlet) is not ...

Java EE SDK - Problems in deploying Duke's bank in NetBeans IDE

682 byte By Mechela at 2007-11-26 23:20:54
I got the followin message in the output window:Deploying application in domain completed successfullyTrying to create reference for application in target server completed successfullyTrying to start application in target server completed successfullyDeployment of application dukesbank ...

JavaMail - Is there is a C implementaion of JAVA Mail API?

140 byte By danrkumaa at 2007-11-26 23:21:05
hi all,I need to know weather there is an C(or a C++) implementation of the JAVA Mail API ?Thanks in advace-danr

JavaMail - Unreadable attachment

339 byte By malashenoka at 2007-11-26 23:21:15
Hi all,when I get name of attachmet by Part p = ....;...String name = p.getFileName();...it return something unreadable like this:"=?windows-1251?B?SW7AwsDLzs0wMDIyODFfQWRtaW5zX3dtc0B1dGxvZ2lzdGljLnJ1LmNzdg==?="how I can transform it to normal letters?Thanks in ...

Java Technology & XML - Ignoring a crimson.jar which is in the /lib/ext folder of the JRE.

1571 byte By SantiBailorsa at 2007-11-26 23:21:58
My RCP plugin uses Xerces to parse XML files. To do this, I have Xerces jars in my classpath, and all looks fine.But, if crimson.jar is put in the /lib/ext folder of the JRE (1.5.0_11), then when I use getTextContent() method of an instance of org.w3c.dom.Node interface, I realize that the ...

JavaMail - How to lock a (IMAP) Folder or Message?

460 byte By maolea at 2007-11-26 23:22:09
I am working on a program that reads and processes email messages from a IMAP folder. Because there might be huge volume of messages to be processed, multiple processes of this program may run on different machines. Since a single message can only be processed once, I need a lock mechanism that ...

Java Technologies for Web Services - Using sub classes in Axis2 to create a web service

1768 byte By andydela at 2007-11-26 23:22:37
Hi AllI'm very new to axis2 and although I have managed to get it working without too much difficulty I'm having trouble publishing inherited methods. Basically I have a class (just a plain bean at the moment which extends a super class). When I publish the web service using the following ...

Enterprise JavaBeans - Question on maintaining State in Stateful session bean

4273 byte By garollousa at 2007-11-26 23:22:45
Hi,I am learning EJB and I coded the stateful session bean and a servlet to access the bean. All I have is a variable int i in my bean that is incremented every time I submit my form. With the code below, the counter gets reset and is always showing value 1 on my JSP. If I change the ...

Java Message Service (JMS) - Need help

474 byte By sudipta_hitka at 2007-11-26 23:22:51
Hi,I have to communicate between two independent java processes. Java Processes means two different java programs with two different void main() method.I have to send some messages from one java program to another with JMS. Now what i have to do please give me some idea.If anybody have some ...

Enterprise JavaBeans - strange web.xml tag error deploying on jBoss 4.0.5 / java5 / ejb3 : local

847 byte By jsebastian_cla at 2007-11-26 23:23:45
Hi. We have an ejb3 / jsf / Java5 app that lives quite happily on OC4J standalone. When i try to deploy it on BEA 10 (tech preview) or jBoss 4.0.5 - ejb3 it throws the following:[org.jboss.web.tomcat.tc5.Tomcat5] Problem in init org.jboss.deployment.DeploymentException: Failed to parse ...

JavaMail - problem with SMTP

5088 byte By shantanuka at 2007-11-26 23:24:05
hello i m shantanu.i m final year engg student .....actully we r implementing a speech enabled mail client as our major project...2 more gals r wid me..we planed to use SMTP protocol to send mails n POP3 protocol to receive mails in our application.yet we ve successfuly configured speech ...

Java BluePrints - How can I move a web tier componet to an EJB in Pet Store 2.0

83 byte By AaronMTa at 2007-11-26 23:24:15
I just want a quick example of what exactly I can do with an easy component.

Java Message Service (JMS) - methods to write JMS program other than MDB

289 byte By SKS2005a at 2007-11-26 23:26:25
HI guys,Could you please help me out.I need to call a webservice using JMS.I know how to write a JMS message consumer or producer using MESSAGE DRIVEN BEAN,but i would like to know is there any other technologies to write JMS message consumer or producer.Thanks

Java Technologies for Web Services - Axis client to JAX-RPC based webservices Invocation.

2614 byte By RameshPolarisa at 2007-11-26 23:26:48
Dear all,I am facing problem while invoking the JAX-RPC based webservice from AXIS based webservice client.I have created the webservice Client with AXIOM model.During the invocation I am getting "unexpected encoding style: expected= http://schemas.xmlsoap.org/soap/encoding/," exception.My ...

Enterprise JavaBeans - Resource Ref's settings of a CMP bean in SAS PE 8.2 - Deploytool

297 byte By HELLOOOOa at 2007-11-26 23:26:50
Dear all,In the deploytool of SAS8.2, in the [Resource Ref's] tab of a CMP bean do I need to set anything here to enable the CMP bean to connect to the database?I already have a JDBC source registered in the server and it is called jdbc/mydatasource.Thanks in

Java Technologies for Web Services - Attachments in Axis2

131 byte By RameshPolarisa at 2007-11-26 23:26:54
Dear all, Can anyone tell me the procedure how we can send attachments using Axis2.With regardsRamesh.G

Java Technology & XML - is it possible to insert TWO root element under dom?

1188 byte By JbloodHa at 2007-11-26 23:27:16
<?xml version="1.0" encoding="utf-8"?><root1> i am root 1</root1><root2><a>aa</a>bb<c>cc</c><d>dd</d><e>ee</e></root2>make it looks like the abovei tried the codeElement root1 = dom.createElement("root1");Text ...

Enterprise JavaBeans - Why Bean does not ?

101 byte By Notty_ra at 2007-11-26 23:27:27
Hi,please clerify me why does Bean class does not implement remote interface.Raj

Java Technology & XML - Content is not allowed in prolog.

2717 byte By MEJavaa at 2007-11-26 23:27:31
Hi I have created the following schema to use in JAXB but getting the Content is not allowed in prolog. error while running xjc.bat Could you plz help me .<?xml version="1.0" encoding="UTF-8"?><xs:schema ...

Enterprise JavaBeans - Stand-alone EJB3 Client

1186 byte By kapkara@a at 2007-11-26 23:29:23
My EJB is located on a remote located java application server (v9).The access code is:....System.setProperty("org.omg.CORBA.ORBInitialHost","abc.selfip.com");InitialContext ctx = new InitialContext();SessionUpdaterBean br = (SessionUpdaterBean) ...