317 byte By
djSpeefa at 2007-11-27 6:03:09
Does anyone know how launch your main browser from within a java program. So i have a program and when i run it a panel appears with a menu. this menu has File edit view etc on it within view there is a report button. when i click report i want my browser to appear.Message was edited by: ...
HelloI know how to create and send SOAP message, for example like that:SOAPConnectionFactory soapConnFact = SOAPConnectionFactory.newInstance();SOAPConnection soapConnection = soapConnFact.createConnection();SOAPMessage response = soapConnection.call(soapMessage, ...
I am using XMLDecoder to read the following XML input and get an object out of it. If you observe here the value in "<string>" is split into two lines. So when I print this field value from java object it comes as "spouse agency |||||||interact". I would like to get it as one string in ...
I tried the following:ByteArrayDataSource bs = new ByteArrayDataSource (is, "application/excel");as my datasource (all other apis are fine)But when I send this message with this datasource as attachment,I get a ParseException with the VM complaining about malformed headers.Please ...
1844 byte By
orbacha at 2007-11-27 6:06:01
Hi everyone,I am trying to understand the language when speaking about EJB2 vs. EJB 3. In the course I am taking, the following question or topic was presented:"Discuss the difference between container-managed and bean-managed persistence and when you would use each."Now I took this to refer to ...
I am receiving SOAP messages over jms Queues. After receiving messages I need to get the content of SOAP:Body as a String or as InputStream. How can this be done?
I tried lots of tutorials to create a simple web service but i couldn't make it to run.I am using IDE :NB 5.5.App servers: SJSAS9 and Apache Tomcat 5.5.17JDK 1.5 availableApart from these do i have to use any other plug in.i need to continue with this sample ...
I am unable to deploy my application - I receive following error when I attempt to deploy the application (J2EE 1.3, EJB 2.0, CMP 2.0):Compilation failed.at com.sun.ejb.codegen.GeneratorDriver.compileClasses(GeneratorDriver.java:232)at ...
2272 byte By
elnara at 2007-11-27 6:09:42
SemmleCode ( http://semmle.com/product/semmlecode/screenshots/) is a free Eclipse plugin to query static structure of java code (both source and byte code). Code queries are generally used improve software quality: one can find bugs, compute metrics, search code or enforce coding conventions ...
349 byte By
philgmoa at 2007-11-27 6:09:44
Hi,Does anyone know of a good example of using a XML over HTTP web service? Especially one that would be easily graspable by someone who's new to web services (read: me)?Is there a way to generate stub classes from a WSDL? I tried to do it in NetBeans but it didn't work, maybe NetBeans ...
1554 byte By
warapa at 2007-11-27 6:09:47
import java.io.Serializable; import java.net.URL;import java.net.HttpURLConnection;import java.net.URLConnection;import javax.xml.rpc.ServiceFactory;import javax.xml.rpc.Service;import javax.xml.rpc.Call;import javax.xml.namespace.QName;import com.sun.xml.rpc.client.*;import ...
RequirementI want to browse for messages, using a selector. SENDERI'm sending messages in my Queue, with a property PARAMETER_ID set in it as.message.setStringProperty("PARAMETER_ID",param_id);Assume there are 4 messages sent in my Queue.1. Text=Message1,PARAMETER_ID=12332. ...
HiI'm very new to java and java ee. While working with java ee 5 with netbeans 5.5.1, when I try to deploy any project it always shows "The module is not deployed" and point an error at this line in build-impl.xml file.<nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>I've ...
741 byte By
@tticusa at 2007-11-27 6:14:12
Hello,I have an Axis 1.4 web service framework installed with my tomcat5.5 server. It works fine. I can invoke the methods which are published as web services.....but I would like to know if a certain web service method is invoked. I would like to make a kind of observer on a web service ...
452 byte By
xama at 2007-11-27 6:14:19
Is it possible to call a BPEL operation more than once? Call an operation in a loop?I see the problem in the correlation. So for me it seems that you may call an operation only once.Use case: user has to put some data and expects an output. But the user may put data not only once, however it ...
Hi Dear Alli want source code for a forumThanks
I have a CDATA section in an element tag which contains new line characters however when this is parsed the whole CDATA section is returned with the newlines removed, any idea how I can retain these
1827 byte By
snxamaa at 2007-11-27 6:16:44
ENGLISH:Symbols sequencing/identification (stream): 1. Map sucesive symbols with numbers (starting at 0) 2. Symbol repeated, use the identifier used the first time the simbol appeared 3. After a repeated symbol, continue with id sequence if next symbol is new, use last otherwise 4. Apply ...
i get a error in eclipse..SEVERE: Servlet.service() for servlet default threw exceptionjava.lang.NoClassDefFoundError: oracle/xml/parser/v2/XSLExceptionand if i add xmlparserv2.jar into project lib, then come with another error.INFO: XML validation disabledXML-22103: (Fatal Error) DOMResult can ...
Hello everybody,Tomorrow we have an exam about J2EE with ant.our teacher have give us a file, called 'build.xml' but he doesn't mentioned what it do...I really hope someone could explain a bit more the following code because we have to know it for our exam....Build.xml<project ...
Hi!I'd like to obtain the absolute path of the folder of the application within the code of the web service.How can I do this?I tried with File f = new File("."); String p=f.getAbsolutePath(); but it does not workWith best ...
import javax.servlet.*;import javax.servlet.http.*;import java.io.*;import javax.mail.*;import javax.mail.Authenticator;import javax.mail.PasswordAuthentication;import javax.mail.internet.*;// importantimport javax.mail.event.*;// importantimport java.net.*;import java.util.*;public class ...
Hello,After french forums, I try this one, I encounter this error since 1 week, and i can't find the solution...I've got a web service called by a client. The problem is that when i marshall a message with JAXB, I send it with SOAP, I receive it a the web service and I answer with the same ...
Hi all, I磎 novice in J2EE technology. I have to save all code and docs of J2EE project to a CVS server. My problem is I don磘 know what structure of folders is more appropiate for this type of project. Can anybody tell me how should I organize it? Thanks in advance.
450 byte By
Innovaa at 2007-11-27 6:19:33
Hi I wanted to do AutoComplete feature in my Appln. In my scenario the data size is huge like 30K to 50K now i have to implement autocomplete feature with this data.My question is how to go about it as storing it in Arraylist/Hashmaps will defeat the purpose, so how to proceed so that I acheive ...
1762 byte By
BigMuka at 2007-11-27 6:19:50
Hi all,I'm have a problem whereby concurrent access to the database through an MDB is creating duplicate entries in my database. I assume it's some kind of lock related problem.Here's some pseudocode of my situation:@MessageDriven(mappedName="someTopic")public class MyClass {public void ...
Hi I'm new to JPA I made a very simple example like following:Emp.java:@Entity@Table(name="EMP", schema="hr")public class Emp {@Id private int id;@OneToOne(mappedBy="employINparkSpace")private ParkSpace parkSpace;@Column(name="NAME")private String ...
Hi. I hope someone can help me. I am running a delete jpql but for some reason one of the column names is replaced by nothing in the final sql used by the container. The parameter "w.ContactId" should be replaced by "CONTACTID" just like the "w.ListName" is replaced by "LISTNAME". Here is the ...
161 byte By
seripa at 2007-11-27 6:22:48
hi all,I am kind of new to java servlets , and would i like to know where i can find the source for this servlets packagethanks,serip
1316 byte By
Ni_Mina at 2007-11-27 6:23:04
I have a the following code to validate Email addresses, it works, but I'm not sure if it covers all situations : static boolean String_Is_An_Email_Address(String Input) {if (Input==null) return false;try {new InternetAddress(Input).validate();Pattern ...
734 byte By
Nilloa at 2007-11-27 6:23:16
Hey.I'm working under windows with saaj (Axis 1.4) and it's kicking but when I move the project over to a Linux server I get "400 bad request".So I shecked the MimeHeaders:On linux:Content-Description POST /find.asmx HTTP/1.1 Host xx.xxxx.xxSOAPAction http://xxx.xxx.xxx/xxxxxOn windowsAccept ...
1076 byte By
wtellisa at 2007-11-27 6:23:59
Hello,I'm new to web services and the Netbeans Web Services client wizard. I'm creating a simple web app that calls a 3rd party web service. I'm able to use Netbean's client wizard to create a ws client (stub code) from a local WSDL file. When I deploy the web app on my production server I ...
Hi,I just started to use J2EE trying to develop a J2EE application. For getting a better understanding of what happens in the background I try to split the whole process of developing the J2EE application into single steps such as developing, packaging, deploying and running.Instead of using ...
807 byte By
vikenga at 2007-11-27 6:25:22
HiI am stuck in a problem for which i need your help.i am implementing webservices for my project. There are methods in my code which i need to expose as a webservice. i am using Axis engine for devep.i have certain methods like findxyz(java.math.BigInteger clientPk, java.util.Date startDate, ...
161 byte By
RAMJANEa at 2007-11-27 6:25:35
Hi ,How i can get the response after sending a mail to an address?Means what is the reponse of the server to that mail sending?ThanKx
Hi all,I am intending to use the jms to distribute the sub portion of the tasks to the available nodes in the cluster to speed up the time require to complete the actual task.After the nodes finished the given sub portion of the task, it will report the status to the master node via the jms as ...
649 byte By
basharfa at 2007-11-27 6:26:39
Hello All,i could use some help..Regarding EJB, when using enitiy beans from tables; the question is, for each table will have an entity bean ?for each user using these instances .. will each user have his own instance or one instance for all users ?so what about if we have 1000 tables, and we ...
Hi friends,which version jdbc is there along with java ee5?
Hi All,My Sun one app server is not starting its giving me java.net.BindException: Address already in use: JVM_Bind:1043 error.I searched in the forum its given the port 1043 might be used by other process, but i can not stop any other system related process as i donthave the administrative ...
9806 byte By
Chekotea at 2007-11-27 6:28:18
I'm trying to test out the FlushModeType behaviour of the Entity Manager. I'm working from the oreilly book "Enterprise JavaBeans 3.0", and even though the examples work in the book perfectly, whenever I try to setup my own examples, the behavior seems to be different.The code below is ...
970 byte By
RooKeea at 2007-11-27 6:28:27
Hello,I want to write an entity with utf-text into the database. But the database gets alwasy "?". Where can I say the entitymanager that the insert should be make with UTF-8?The table creation:DROP TABLE IF EXISTS `jbossdb`.`NEWS`;CREATE TABLE `jbossdb`.`NEWS` ( `NEWS_ID` int(11) NOT NULL ...
312 byte By
eldricha at 2007-11-27 6:30:32
has there been any word on when JPA 2.0 might be available in an "early access" capacity. reason i ask, we are moving forward with migrating from one ORM to another, and i would like to use upcoming "Criteria" based JPA rather than doing direct vendor specific wiring or "rolling my own".== ...
I am trying to run my first EJB program without having to use JBoss or Sun's app server. I want to write a program and understand various jar files, and be able to deploy it in app server of my choice. I looked at example in Java EE tutorial but development and deployment is very specific to ...
796 byte By
Nukea at 2007-11-27 6:31:37
Hello, i am new to the topic of WS, so i try it with the javawstutorial20 and sjsas9.0.But i stuck on page 20 of 283, which is quite frustrating.My problem is: I deployed the example service helloservice succesfully. it is displayed in the application server, but when i try to test the wsdl, ...
957 byte By
atantca at 2007-11-27 6:33:20
Hi all, I'm a newbie here.I am using Netbeans 5.5 with Enterprise pack to consume a web service for my company on a WSDL created using Apache Axis 1.4I followed the tutorial and added the web service client in my project.However, during the wscompile process, an error occurred.Error is:modeler ...
When I try to validate a XML with nested XSD as following, I always get Out of Memory error. I am using jre 1.4.2 and xerces 2.9.0. Please kindly help!container.xsd:<?xml version="1.0"?><xs:schema xmlns:Doc="test:document" xmlns:container="test:container" ...
Hi All,I am working with JWSDP-2.0 but got stucked.:To generate Java classes from an XML Schema with the JAXB ,I need to have following jar file in thils location with this JWSDP-2.0<JWSDP>/jaxb/lib/jaxb-api.jar <JWSDP>/jaxb/lib/jaxb-impl.jar<JWSDP>/jaxb/lib/jaxb-libs.jar ...
1122 byte By
ChackaPa at 2007-11-27 6:35:27
I encountered a problem while using netBeans to deploy uPortal. in fact, i have netBeans 5.5, tomcat 5.5.20, HSQL as my database and uPortal 2.5.3 GA. i followed line by line steps from this tutorial : http://weblogs.java.net/blog/gsporar/archive/2006/02/uportal_develop_1.html and the error at ...
i wonder why i failed to send "MAIL FROM:" while commnunicating with the server using SMTP protocol?my code is:......socket = new java.net.Socket(strServer, 25);dis = new java.io.DataInputStream(socket.getInputStream());dos = new ...
hai,i am new to web service... i have one doubt in encoding style uri.. wats the purpose of that..call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC ); call.setEncodingStyleURI(" http://schemas.xmlsoap.org/soap/encoding/"); what is the difference between ...