JavaMail - javax.mail.NoSuchProviderException

6448 byte By Mitalia at 2007-11-26 23:30:02
Hi!I have written a java program for sending mail. I 'm getting these error msgs when i run the program. I have used Netbeans 5.5 ,so I have JavaMail jar files and Java Activation Jar file associated with my web application already. can u please help me?here is the error msgMessaging Exception ...

Java Technology & XML - associating a style sheet with xml

615 byte By MacGiolcagha at 2007-11-26 23:30:10
I have an app which creates a file report.xml using the DocumentBuilder. I wish to associate it with a style sheet. I know that all I need is a line like this<?xml-stylesheet type="text/xsl" href="report.xsl" ?>But am wondering how to insert it dynamicaly using my ...

Enterprise JavaBeans - JPA insertable columns

366 byte By glen_a at 2007-11-26 23:30:22
HiIs it possible to change at runtime which columns in the entity are insertable. The problem i have it that at certain times i want columns to be merged and then others i dont. But it seems that: @Column(insertable=false)cannot be changed at runtime.If not, is there any tricks to do to get a ...

Java Business Integration (JBI) - Process termination in event handler

487 byte By Petr82a at 2007-11-26 23:30:40
Is there a way to terminate the bussiness process inside an event handler? I would like to have a receive element Cancel which could be executed anytime during the process and which would terminate it. But when I place the Exit element to the event handler, it says that the Sun BPEL engine does ...

Enterprise JavaBeans - EJB specific libraries hickup

485 byte By amitty29a at 2007-11-26 23:30:52
I am having some problems locating the libraries that my EJB 3.0 project needs.After I set up the project in the IDE (eclipse) all the annotations were marked as unresolved constructs. I was able to successfully import the "javax.ejb.*" package but the system could not resolve ...

Java Technologies for Web Services - HTTP/HTTPS and SOAP

478 byte By araujo.guntina at 2007-11-26 23:31:13
Hi,I have the following situation:I developed a SOAP Server using Tomcat by 8080 port and I have two SOAP Clients, the first one is over Apache, PHP in Window OS and using HTTP (this client is connected with the SOAP Server perfectly ) and the other client is over Apache, PHP in Linux OS and ...

Java Technology & XML - DTD

1719 byte By lostInJavaa at 2007-11-26 23:31:31
I have to create a DTD that has 2 children of the same name but with different parents.Project Title - exactly 1 Purpose - exactly 1 Interface Guidelines - exactly 1 Public Content - exactly 1 Sections - * Title - exactly 1 Abstract - exactly 1Documentation Artifacts - exactly 1 Artifact - * ...

Java Technologies for Web Services - Create an OMElement from an Object

517 byte By Kay2000a at 2007-11-26 23:31:35
Hello!First of all, sorry for my bad (bad bad) English! :pI need to create an OMElement object from any object, automatically...Infact I need to do a service like this: Object myService(Object o)and when I create the stub, I have to put an OMElement as param and not an object.....(because of ...

Java EE SDK - share files between web modules

858 byte By sawatdeea at 2007-11-26 23:32:12
As far as I understand, a web module corresponds to a single web page, possibly within a web application that contains multiple web modules (pages). So if my web application has two pages, they would each be a web module. For example, http://www.myapp.com (home page = root module ...

Java Technology & XML - Trouble Using Netbeans and XML Schema

2066 byte By shdwFxa at 2007-11-26 23:32:53
I am currently experimenting on using XML files to store data for a game that I am developing. I had been using NetBeans 5.5 to validate my XML Schema (I am still new to XSD); however, now I am getting errors and have been trying for the better part of the week but am still unable to resolve ...

EJB3 for Business Logic or Persistence

611 byte By Noordina at 2007-11-26 23:33:14
Hello All, Well my question is that EJB3 is for Business Logic or for Persistence, I am new to J2EE and want to know what is best practice of using EJB3. from my point of view if I am developing a web app on JSF i don't need EJB3 becuase I will be directly accessing business logic from JSF ...

ejb error((MARSHAL) Could not find class) when using OneToMany relationship

8939 byte By javauser9000a at 2007-11-26 23:33:28
I am using Netbeans 5.5 with J2EE App Server 9. I have two entity beans with a OneToMany Uni-directional relationship. I have a Remote Stateless session bean which has persistence operations for creating and searching etc.. I am accessing the remote bean via jndi from a j2ee java client. The ...

Does Open ESB run as standalone application?

146 byte By michele81a at 2007-11-26 23:33:59
Hi all,does Open ESB run as standalone application (i.e. like ServiceMix) or it works only inside an AS?Thanks,Michele

Problem with removing entities (EJB3)

605 byte By habib_seifa at 2007-11-26 23:36:37
Hi there,I have a problem with removing entities:When I call em.remove(object), the object is removed from database successfully but it remains in persistence context. The strange behavior is if I call em.remove(object) again, EntityManager inserts the entity in database!!!So, my questions are ...

find(String pkey) method returns multiple object of the same row

943 byte By boots54a at 2007-11-26 23:36:45
I'm not quite sure what i've done or havent done, but I've implemented updating a row using the em.persist(Object) method.....works great, but after i did that a few times the find(String pkey) method returns multiple copies of 1 row in the dbhere are two rows in the ...

I am not able to fetch size of a Attachment part using Javamail classes

427 byte By amitsutara at 2007-11-26 23:41:18
Hi All, I am using javamail classes to read mails from my email system.the message i am reading is MIME Multipart and it has got attachments.One of the attachment is 'application/smil' type.I am not seeing its size properly but I am able to open the message correctly.Is this a problem with ...

Message-driven beans Vs JMS

146 byte By malrawia at 2007-11-26 23:41:41
Hi,what does the bean technology add to the JSM by using the message driven beans instead of just using the regular asynchronus JMS?

JSM & EJB Design alternatives and questions

843 byte By malrawia at 2007-11-26 23:41:45
hi,i am not sure if i got this point correct or not, but when we have a session bean we are invoke its busniess logic from a client application and from a web application, is this true or does it have limitations?if that's the case then why do we need a web service, i mean what did it add to ...

Call stored procedure with entity manager?

413 byte By Powerhouse_ba at 2007-11-26 23:42:58
HiI want to call a stored procedure. I do not want to use JDBC( via prepareCall). How can I use EnitityManager? I saw something about NamedNativeQuery, but how exactly i don't know. The project i am working on uses Hibernate(or so I think, I just started working on it), but I can't find any ...

find method is not returning anything

242 byte By samrat_kara at 2007-11-26 23:43:05
I have a find method that is not returning anything what can be the problem?My code is SalesHome salesHome = (SalesHome) (new InitialContext()).lookup("SalesBean");Collection c=salesHome.findByCustID(liCustomerID);

Protecting ejb from unknown clients

562 byte By mkunasek123a at 2007-11-26 23:43:42
Hi Experts, Following is my requirement: I want to allow only the specific clients to access my ejb. So I thought of using certificates. Problem is I can not use user based authentication. Is certificate-basd auth the only way ?If so, can some1 please tell me how to implement that in steps ? I ...

Problems about creating an application client using Netbeans 5.0

5173 byte By HELLOOOOa at 2007-11-26 23:44:21
Dear all,I have created an "enterprise application" project in Netbeans 5.0 and I want to create an AppClient to access the EJBs in the project. Since Netbeans 5.0 did not contain automatic support for AppClients. I need to do some configurations to make it act like an AppClient. (I am forced ...

EJB QL NOT RETURNING AN INNER JOIN

889 byte By jadeite100a at 2007-11-26 23:44:34
Hi:I am using weblogic 8.1.I wrote this EJB QL:<query> <query-method><method-name>findProduct</method-name><method-params><method-param>com.CategoryLocal</method-param><method-params> </query-method><ejb-ql>SELECT OBJECT(p) FROM ...

Difference between DOM and SAX Parser

125 byte By Pandiana at 2007-11-26 23:44:51
Hi ,I am new to xml parser. what is the difference between DOM and SAX Parser.please clarrify my doubts.

Authenticator

1204 byte By JTable_need_infoa at 2007-11-26 23:45:34
import javax.mail.*;class SimpleMailAuthenticator extends Authenticator{MailConnect mc;public SimpleMailAuthenticator(MailConnect mc1){mc = mc1;}protected PasswordAuthentication getPasswordAuthentication(){System.out.println(mc.username + mc.password);return new ...

XPathFactoryConfigurationException

1011 byte By sobenchaa at 2007-11-26 23:45:54
I am getting the following XPath error whenever I try to instantiate a new XPath Factory. The java code is being called from an Ant script that runs a Lucene indexing job. I specifically define a classpath in the Ant script that includes these jar files... resolver.jar, xercesImpl.jar, ...

how to connect mysql database using xml

216 byte By javaNmea at 2007-11-26 23:46:02
welcome to all, here my doubt is how to connect mysql database using xml file, how to integrate xml file and jsp file and how to access data from dabase using jsp file. can any one help meregards

Calling JMS Queue from Entity beans

269 byte By mynaa at 2007-11-26 23:46:12
Hi !Suppose the I have a standalone program to transfer Asynchrononus messages using JMS Queue. Can I call this JMS Queue class from Entity bean ( CMP ). If so how? Can any one write the code snippet of call the JMS queue class from CMP bean.Thanks

How can i make sure ejb container starts before web server

297 byte By skoizumi2133a at 2007-11-26 23:46:15
When starting the application server which one starts first?Our system requires ejb container to start first.Currently when i test it, the web container starts before ejb sometimes.Is there any way to force the ejb container to start up before the web container

JMS queues with EJBs

266 byte By mynaa at 2007-11-26 23:46:17
I m new to JMS. But I learned how to write JMS queues and pass asynchronous messages. But my question is - Can we call JMS Queues from Session Beans ( Stateless / Statefull ) or Entity Beans (CMP / BMP).If so how?please replyThanks

IllegalStateException-Not Connected

166 byte By gargyagotraa at 2007-11-26 23:46:25
i have a java mail prog. sending mail that runs fine on apache but is giving the above error on running on Geronimo Server.Could anyone suggest any help

"Can JEE Scale with the Long Tail?" (JEE under attack)

169 byte By jtjlia at 2007-11-26 23:47:50
This article says JEE cannot handle a couple of million concurrent users: http://www.socialglass.com/archives/24Is what he says valid? Any comments?

failed restarts of Java Pet Store 2.0

6408 byte By dmscovillea at 2007-11-26 23:48:00
Hi,I am having a recurring problem with the Java Pet Store 2.0 that I hope someone can help shed light on.I am trying to use the Pet Store as a reference for a project. I have performed the following sequence on a Dell latitude laptop running Windows XP Pro SP2:Download and install JDK ...

How to get a virtual host name from application in Tomcat?

214 byte By reicaa at 2007-11-26 23:48:23
Hi,Is it possible to obtain the context path and virtual host name at the application (.war file) initialization stage?I need to set up these info into my application config table.Thanks

without JMS Providers?

165 byte By raja_enta at 2007-11-26 23:49:06
Can I write my own Queue application and run it in a app server using the required jar files (jms.jar and jndi.jar ) without using any specific JMS providers.

EJB application

802 byte By Mitalia at 2007-11-26 23:49:08
Hi All!I'm new in the EJB technology. I'm using Netbeans 5.5. I want to create a small project in EJB. The Cilent application will be a servlet, where i provide the iputs such as firstname, lastname, address. it then calls some enterprise beans( I'm not sure which beans, is it entity or ...

presentation layer

572 byte By stridersuna at 2007-11-26 23:49:09
Sorry if this is a little off topic:i would like to know what my fellow java EE developers use to create the presentation (html,jsp pages) layer of thier java EE applications.I mean what do you use to make the (flash and trash) like banners frames, formating tables, selection boxes etc.. Do you ...

EJB3 field returns byte[] instead of Serializable object after redeploy

8936 byte By mbunnya at 2007-11-26 23:50:23
I have the entity class such:@Entity@Table(name = "package_definitions")public class PackageDefinitions implements Serializable {...@Lob@Column(name = "pkg")private ru.ilb.meta.wfe.xpdl20.Package pkg;public ru.ilb.meta.wfe.xpdl20.Package getPkg() {return this.pkg;}...public ...

How to represent a XML file in a tree format with DOJO

453 byte By RamJeoa at 2007-11-26 23:50:47
Hi all,I am new to DOJO and I am working on representing a XML file in a tree structure. I had it done with XSL and Jscript and since it is not that presentable i am shifting to DOJO. Please help me to get a start with DOJO and any samples programs will also be of great help. Please tell me how ...

When an Entity Bean is populated with real entity data?

516 byte By yAKaa at 2007-11-26 23:51:26
W.R.T the EJB spec 2.0:(1). I need to know when exactly an entity bean is loaded with entity data. For example, is it before "ejbActivate()" or is it after that call? If answer is "before", then definitely that bean cannot access the primary key while in "ejbActivate", right?(2). Also is it ...

SAX help

311 byte By JWarrior_Tabreza at 2007-11-26 23:51:32
Hi allI want to know how to get index of attribute with SAX using javax.xml.parsers.SAXParser ,but when i use Attributes getIndex(QualifiedName); method it returns -1 but a single attribute is present in XML File ,so i wana know why it happens?thanks in ...

Reading attachments via Javamail gives ? characters

1055 byte By gng2007a at 2007-11-26 23:51:35
Hi,I'm using Javamail to read messages in a mailbox and to save the attachments that are on those messages. Some attachments are HTML documents that seem to contain bullet characters (doing a View Source on the HTML still shows the bullet, not "<li>" or anything like that). The HTML ...

NameNotFoundException in JNDI lookup in for stand alone App client in EJB3

756 byte By Dave_Ga at 2007-11-26 23:52:02
I created an ejb module in netbeans 5.5 added a session facade (SavingsaccountFacade) and downloaded it to SunAppServer 9 (java EE 5). When I try and access the JNDI name in a stand alone java application client using the following codeContext initial = new InitialContext();Object objref = ...

ejb 3.0 optimistic locking problem

7302 byte By paataa at 2007-11-26 23:52:08
i tryed to use locking into ejb 3.0here is my program fragment @Stateful@Remote(CountFasade.class)public class CountFasadeBean implements CountFasade {@PersistenceContext(unitName = "Test", type = PersistenceContextType.EXTENDED)private EntityManager ...

HTTP params of the connection

311 byte By x-st0rma at 2007-11-26 23:52:11
Hi,Is there any way how to get HTTP connection parameters/attributes when using WS?I have WS on AS and client connect into it using SOAP over HTTP and I need to get HTTP attrs/params for the connection. The param(s) I'm interested in is SESSIONID/JSESSIONID.Thanks to ...

Proxy Authentication to an IMAP Store

676 byte By kamiljdka at 2007-11-26 23:52:19
Hello,We run Sun Messaging Server 6.2. I have successfully configured and implemented proxy authentication from our portal mail module to the web mail server(using the C Auth SDK). Now, I need to implement proxy authentication for the IMAP side of things. I use JavaMail for the IMAP connection ...

web service as another web service client - problem in JavaEE SE?

1841 byte By Vladoa at 2007-11-26 23:52:22
Hello,I observed strange behaviour with OpenESB, Glassfish (build 33) and following scenario:I need to call web service from another web service. When I use simple schema:web service client -> web service (as EJB) -> another Web serviceeverything works. But I would like to use JBI/ESB, ...

broken image when creating dynamic image in servlet

4153 byte By rdoekesa at 2007-11-26 23:52:36
Hi all,I am a relative new to Java. I am currently trying to port a dynamic image renderer to a servlet.However, the final results are a broken image.Here is what I have done:in the web.xml<servlet><servlet-name>SecurityImage</servlet-name><display-name>Security Image ...

SMTP port

1294 byte By gmaggessa at 2007-11-26 23:54:15
Hi guys,I have the following problem. I'm trying to set a different port (5225) to connect to the smtp server, but looks like it's not being considered. Another strange factor is that it is taking host I set, but not the port. And when I try to send the message I get the exception: ...

XPATH on JSE 1.4.1 ?

117 byte By hanimichia at 2007-11-26 23:54:57
hi i would like to know is that possible to use XPATH on JSE 1.4.1 ? thanks you hanimichi