Hi all I am a beginer. I have to do a jsp project I installed tomcat 6.how can i change the work directory to D:/JSP
Hi, thereI'm newbie, can any one tell me what is advantage and disadvantage of servlet compare to JSP?Thanks for advance
185 byte By
burchika at 2007-11-27 9:14:46
How to decode text like this: ?koi8-r?Q?=FD=C5=CC=CB=D5=CE=CF=D7_=ED=C9=C8=C1=C9=CC?= with the help of Java, of course?P.S. Do not send me to Java Mail FAQ, I've read it.
3307 byte By
Taigoa at 2007-11-27 9:15:11
hi!i need to transform a xml file into html file using docbook styleseheets, my java is:import javax.xml.parsers.DocumentBuilderFactory;import javax.xml.parsers.DocumentBuilder;import javax.xml.transform.TransformerFactory;import javax.xml.transform.Transformer;import ...
I am using EJB 3.0 and SJSAS 9.0 --deployed with moduleid = EmployeeEntity[TopLink Config]: 2007.06.29 06:14:14.760--ServerSession(11110670)--The alias name for the entity class [class employeeentity.entity.Employess] is being defaulted to: Employess.[TopLink Config]: 2007.06.29 ...
Hello,I developed a very simple service class annotated with @WebService.If I copy the class directly in the autodeploy, the server startsautomatically everything and I see it on the web services, andalso the call to http://server/MyService/MyService?WSDL works fine.If I package the class ...
Hi, I'm quite new to J2EE field and my question must be a simple one.I've written an enterprise bean (stateless session bean, j2ee 1.4) and also the Home and remote interfaces. I want to generate the client stubs so that other project can invoke the session bean doing a JNDI lookupI'm using ...
Can anybody tell me how to send SMS from the system that i create to Hand Phone. now i am doing a system and i need to send same information to inform the user via hand phone. Can i use Java Message Service or J2Me to do that? TQ.
723 byte By
ak102a at 2007-11-27 9:20:25
Hullo,I'm fairly new to entity beans, and I have a general design question regarding CMP entity beans. I've been trying to google for an answer but I still can't quite answer it yet.... Anyways, here's my question: as I understand it, the J2EE server is responsible for creating and removing ...
How do I get EJBContext in EJB 2.1. rgds,Jatin
164 byte By
ronada at 2007-11-27 9:20:48
Hi,I have forgot Sun java 9 App server's admin console password. Is there a way to reset the password or reset ?.Thanks,Veeranna Ronad.
Hi all!I'm trying to understand the basic concepts of EJB. Starting with Session Beans I read that all these beans must implement a default constructor, for instance:public class HelloBean implements SessionBean....public HelloBean(){}....And I read that also other parametric constructors can ...
608 byte By
deaaa at 2007-11-27 9:21:04
hello,(excuse me for my poor English)I want to map a short url to large one. for example:mapping : 1)www.example.com/testto2)www.example.com/sport.jsp?x=1&y=2meaning every one hit the first url redirect to the second.(and case insensitive: TEST or TeSt is legal)what is the best way to do ...
I get the following error and installation abruptly halts.Can someone please suggest what do i need to do ?INFO - unpacked jar file: F:\Program Files\Sun\SDK\lib\webservices-tools.jar.pack.gzINFO - unpacked jar file: F:\Program Files\Sun\SDK\lib\deployment\sun-as-jsr88-dm.jar.pack.gzINFO - ...
667 byte By
Pawel34a at 2007-11-27 9:21:33
Hi. I have a site created in NetBeans (it's a Visual Web Application). It's based on Sun tutorials for NetBeans like this one http://www.netbeans.org/kb/55/vwp-fileupload.htmlApart from the File Upload component I also have - as a header - Page Fragment Box where there are : one picture ...
Hi all,I am using james mail server 2.3.0 along with jsieve(java implementation for the Sieve mail filtering language )mail content filter on OS windows xp along with jboss for putting the mail on the queue.I am sending farsi words in my email they are been seen in email body in windows XP but ...
Hi there,m new to EJB i' ve got a prob in compiling a client java fileErrors:HelloClient.java:22: cannot access javax.ejb.EJBHomeclass file for javax.ejb.EJBHome not foundHello hello=home.create();^HelloClient.java:24: cannot access javax.ejb.EJBObjectclass file for javax.ejb.EJBObject not ...
JAX-WS included with Java 6 provides a built in HTTP server giving the ability to host web services without running a Java EE server. I've created several sample services to get myself familiar with the functionality and followed http://java.sun.com/developer/technicalArticles/J2SE/jax_ws_2/ ...
Hi,I am a noob on JMS, I understand that message can be persisted before it is send to the destination.However, I need to persist the message whenever it reaches my local queue (for recovery purpose, e.g. before the message being processed, the whole server need to restart). Can the JMS ...
1883 byte By
syg6a at 2007-11-27 9:23:45
Hello.I have a problem with how XPath parses my XML doc, and I don't know if there is any way to fix it.Let's say I have the following XML which represents room availability for a given hotel :<GetAvailability> <IdHotel>x</IdHotel> ...
Hi All,I am getting this error when am try to exeucte the jar file.D:\>java -jar smirror.jarException in thread "main" java.lang.NoClassDefFoundError: javax/mail/AddressI have set the classpath like this :D:\>set classpath=D:\javamail-1.4\mail.jar;D:\jaf-1.1\activation.jar;But i dont no ...
Hi,My web app is running on iPlanet 6.0 with JDK1.3.1. I'm planning to upgrade the JDK version to 1.4.2. But by doing so, I'm getting a FactoryConfigurationError. I'm using the old xerces.jar file and its on the classpath. Here is the error message:Internal error: Unexpected error condition ...
194 byte By
pinto_ga at 2007-11-27 9:26:08
HiI am new to EJB technology.Can anyone pls let me know from where can i download a sample application which i can install on Websphere and learn more?ThanksPG
257 byte By
tetsa at 2007-11-27 9:27:40
Session Bean is calling CMP.Session bean starts the transaction and CMP has transaction="Mandatory". What will happen if I call some finder method on CMP after I set mySessionContext.setRollbackOnly () in session bean?ThanksAbhay
Hi!I think that found a bug:If for the BPCatalog uploading example (bp-file-upload.war) you change in web.xml a Faces Servlet mapping from "/faces/*" to "*.jsf" - component doesn't work when index.jsf is opening (progress bar didn't see and uploading didn't any action):... ...
3744 byte By
bastrala at 2007-11-27 9:28:11
Hello,Using wsimport I generated a class from the following xsd type:<xsd:complexType name="MDVendorExtensions_T"><xsd:sequence><xsd:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/></xsd:sequence></xsd:complexType>The class ...
I want to validate city against selected state and zipcode against selected city.Is there any free web service that I can use to validate it.Kindly help...thanks in advance.--Tahir
234 byte By
CJ_125a at 2007-11-27 9:29:41
Hi All,I am using Netbeans 5.5, app.server 9.0 and SQL server 2005. I have some problems when calling stored procedures in EJB 3.0. Do you have any idea how to call stored proc? Kindly regards, Chris
Hi !I am trying to get a Entity bean through "LocalHome.findByPrimaryKey".I get an error:java.lang.NullPointerException.this is session bean:public class LoginBean implements javax.ejb.SessionBean {private javax.ejb.SessionContext mySessionCtx;public UsersLocal usersBean = null;public List ...
I am newbie to WebService. I was able to develop a sample WebService using AXIS. The WebService had only primitive datatypes like int, String. Now i would like to move a step further. I would like to create a WebService that has non primitive data types like Collection Data Types etc. Any ...
Hi , I need to get the name of default mail server . In 1.5 i can get this usingSystem.getenv("MAIL_SERVER");.How do i get this in 1.4?Since getenv() is depricated in 1.4 , how can i get the name of mail server in 1.4?plz help me....
HiI want web service to return list,following is the code snippet i tried@WebMethod() public List<CustomerInfo> getAccountList() {Query query=em.createQuery("from CustomerInfo c");List<CustomerInfo> info= query.getResultList();return info; }i tested webservice using web service ...
690 byte By
crisssa at 2007-11-27 9:32:10
Hi people, I am trying to compile a web proyect in MyEclipse with Ant 1.6.2, but now it appears an error that says : [javac] F:\...\Doc1.java:13: cannot find symbol[javac] symbol : class UserTransaction[javac] location: package javax.transaction[javac] import ...
hiI am very new to webservcie.can anybody explain how could i check JAX WS version.I am using jdk1.5. and jboss 4.0.5 app server
Hi. I have a question. I am trying to use the various XML libraries to parse/validate an xml file given an XSD schema. I want to remove the extra stuff in the xml to output a new xml. The problem is as I validate or parse the SAXParseException it produce only gives me the localName. Is there a ...
I'm trying to send an email to via my contact us page, to my info mail account...but my problems is about addresses...boolean debug = false; // change to get more informationString msgText = "A body.\nthe second line.";String msgText2 = "Another body.\nmore lines";boolean sendmultipart = ...
I have added contents into the Java Pet Store Database through the web application interface and now I want to reset the database back to its initial state. How can I do so?
I have a doubt about JNDI context retrieval in EJB 3.0. I know that when I call a bean from another bean I can use this line:InitialContext ctx=new InitialContext();But I'd like to know whether in a Client I am obliged to pass this parameter:InitialContext ctx=new ...
i am getting following exception when running my HelloClinet from command prompt after deploying EJB Application in Websphere 6.1the exception is:Exception in thread "main" java.lang.NoClassDefFoundError: HelloClient (wrong name: examples/HelloClient)at java.lang.ClassLoader.defineClass0(Native ...
hellow hi friend i have one doubt i am new in javamail so i have successfully compiled following javamail program import javax.mail.Message;import javax.mail.Session;import javax.mail.Transport;import javax.mail.internet.InternetAddress;import javax.mail.internet.MimeMessage;import ...
Good day to all,Currently I am facing a problem that whenever i try generating a Transformer object from TransformerFactory, I will have a TransformerConfigurationException threw. I have did some research from the net and understand that it is due to a bug that JVM memory limit of 64kb. However ...
2360 byte By
shamexa at 2007-11-27 9:38:26
postMail method throws this exception "Could not send email". This exception occurs at this line of code "Transport.send(msg)". Does anyone have any idea ? public void postMail( String recipients[ ], String subject,String message , String from) throws MessagingException,IOException {boolean ...
how to create EAR file in my project
Hi,When I try to send a mail from my app it is throwingjavax.mail.SendFailedException: Sending failed; nested exception is:class javax.mail.SendFailedException: Invalid Addresses; nested exception is:class javax.mail.SendFailedException: 598 mail is rejectedany ...
hi,i have to create web service which will call pl/sql procedure. i have wsdl file (order.wsdl) and xml file (order_request.xml) .and i am new to webservice, i dont know how to create it.so, pls give me some details regarding web service(creation, test, deployment)i am using eclipse 3.2 WTP and ...
I can able to compile the following code successfully but while executing it showing the error C:\Program Files\Java\javamail-1.4\demo>java msgsend -o anbarasu.d@abs.in -M 203.112.158.188 anbarasu.d@abs.inException in thread "main" java.lang.NoClassDefFoundError: msgsendimport ...
404 byte By
bbclonea at 2007-11-27 9:39:50
Hi,I'm generating an xml file using Java (dom) and I need it to be idented. How can I do that ? I'm using java 1.6 and I already have the line transformer.setOutputProperty(OutputKeys.INDENT, "yes");Is it possible without changing api? I think JDom does the indentation, but I can't change to ...
hi I am trying web service,where it returns collection.following is the code snippet, @WebMethod() public Collection<CustomerInfo> getAccountList() {Query query=em.createQuery("from CustomerInfo c");return query.getResultList(); }the problem is at the time of deploying i am getting ...
hello i am using one entity bean for find by primary key oe database register.one field from this row isone oracle clob field.if i access to tis row using one normal resultset i load the data into one byte[] well but if i try to load this row i cannot put it into the byte[] propertie od one ...
I m using Sun Java Application Server for learning J2ee. I started with EJB. When i create a client stub jar and try to invoke the session bean from the application client using the tool appclient....then i m getting an error ......Error::java.lang.IllegalAccessExceptionThe description is like ...