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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
hi all,I need to know weather there is an C(or a C++) implementation of the JAVA Mail API ?Thanks in advace-danr
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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
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 ...
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
Dear all, Can anyone tell me the procedure how we can send attachments using Axis2.With regardsRamesh.G
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 ...
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
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 ...
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) ...