Javax.activation
Hi,
I know this question have been asked before, but I can not found any solution for mine. I am trying to write a web server, but i keep getting the package javax. activation does not exist error. I've downloaded the activation.jar and set the classpath, but it still does not work.
I am using XP SP1 & JBuilderX, and I've put the classpath variable:
CLASSPATH => C:\j2sdk1.4.2_03\jaf-1.0.1\activation.jar;C:\j2sdk1.4.2_03\javamail-1.1.3\mail.jar
I also have read the instructions on this site, and I still get the error.
Does anyone has solutions? Thanks in advance.
your web server most likely ignores the system CLASSPATH.
What seb server are you using? You probably need to change
the classpath in the web server startup or config script.
-Alexis
Similar Messages
-
Javax Activation error, pls help me very urgent
Hello,
I am calling a java stored procedure, but I am getting the following error:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
boundary="----=_Part_0_-1403249095.1105388630390"
I dropped the jar files from the database and re-deployed the the latest jar files downloaded from Sun site, still I am getting the the same error.
could someone please help me with this, I am desperately trying to solve this problem and get the work done. I am using java stored procedure to send emails.
Any help is highly appreciated.
Thanks
CosmosThis is a Javamail problem.
with a quick search of the javamail forum i found the same problem: http://forum.java.sun.com/thread.jspa?threadID=74127&start=0&tstart=0 -
Client unable to get the javax.activation.DataHandler object from Server
Hi All,
I am trying to download the file from the server to the client using Javax.Activation.Data Handler object with IBM web services. But server always returning the Data Handler object is null. I am wondering why it is behaving like this.
My requirement is add the file to the Data Handler object from the server and read the same from the client. But I am always getting Data Handler object is null at the client place.
Please see the client side code and server side code below.
Server side Code:
This is the simple web service method, its creating the Data Handler object and adding it to the Hash Map and returning the Hash Map object to the client.
public Hashtable download()
DataHandler dh = null;
HashMap hashMap =new HashMap();
try{
//Sample test files contains data
String downLoadFName="C:/ADP/downLoadData.txt";
//Creating the DataHandler Object with sample file
dh = new DataHandler(new FileDataSource(new File(downLoadFName)));
//Keeping the DataHandler object in the HashMap.
hashMap.put("DATAHANDLER",dh);
//keeping the sample test message object in the HashMap
hashMap.put("TEST","Keeping the DataHandler and test messages in the hashTable");
}catch(Exception e){
logger.error("Error :while sending the data:"+e.getMessage(), e);
//retrun the HashMap object to the client.
return hashMap;
Client Side Code:
This is the simple client code, and connecting to the server and invoking the web service method
//This is the client code,Just invoking the webservice method from the Webspehre server.
public class WebserviceClient {
static DocumentTransfer controller = null;
public static void main(String args[]){
DocumentTransferService service = null;
try{
//Creating the service Object
service = new DocumentTransferServiceLocator();
//Getting the Server connection
controller = (DocumentTransfer)service.getDocumentTransfer(new java.net.URL("http://localhost:9081/eNetsRuntimeEngine/services/DocumentTransfer"));
//Calling the download method from the server and it returns HashMap object.
HashMap hashMap = controller.download();
//Getting the DataHandler Object from the HashMap
DataHandler dh=(DataHandler)hashMap.get("DATAHANDLER");
System.out.println("DATAHANDLER: :"+dh);
//Getting the String object from the HashMap.
String message=(String)hashMap.get("TEST");
System.out.println(": :"+message);
}catch(Exception e){
System.out.println("Exception :Not able to get the file :"+e.getMessage());
Could you please give me some inputs on this?
Thanks in advance,
Sreeni.Hi Stif,
Thanks for your response.I did debug from server side,it has printing content of Data Handler properly.
Also i have debug request and response messages using TCP/IP monitor(RAD environment has this feature).The response from the server is going proplery.
But the client side Data Handler is coming null.
Any advice or solution would be greatly appreciated.
Thanks,
Sreeni. -
What is javax.activation,how can I get it
hello all
the JavaMail need a class library called "javax.activation",but I don't know what mean is it,and how to get it ,how to use it...
Thanks in advance,
qingbt.When using JavaMail with NetBeans:
If you are writing a plain Java application, create a Library using the Library Manager (Tools | Libraries -> New Library -> Add Jar) and add activation.jar and mail.jar to this library. Then add the library to your project (right click the project and select Properties | Libraries | Add Library).
If you are writing a Web or JavaEE application, activation.jar should be provided automatically by server (e.g. GlassFish, JBoss, etc.). If it is not working, please post more details (NetBeans version, server brand and version, JDK version, error messages encountered, etc.) -
Java.lang.SecurityException when loading javax.activation.MimeType
Hi all,
I'm having this problem when trying to call a WebService in my Server;
java.lang.SecurityException: class "javax.activation.MimeType"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java(Compiled Code))
at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))
at java.net.URLClassLoader.defineClass(URLClassLoader.java(Compiled Code))
at java.net.URLClassLoader.access$500(URLClassLoader.java(Inlined Compiled Code))
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java(Compiled Code))
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at org.apache.soap.rpc.SOAPContext.addBodyPart(SOAPContext.java:344)
at org.apache.soap.rpc.SOAPContext.setRootPart(SOAPContext.java:403)
at org.apache.soap.rpc.SOAPContext.setRootPart(SOAPContext.java:442)
at org.apache.soap.rpc.SOAPContext.setRootPart(SOAPContext.java:417)
at org.apache.soap.transport.TransportMessage.save(TransportMessage.java:351)
at oracle.soap.transport.http.OracleSOAPHTTPConnection.send(OracleSOAPHTTPConnection.java:713)
at org.apache.soap.rpc.Call.invoke(Call.java:261)
It seems to work in my local machine (running on JDeveloper10G embedded server), but i cannot make it work in production server (version 10.1.2.0.2) ...
Any idea of what is going wrong? I know what the error means, but i don't know why it is raising.I've tried the webservice standalone (without a servlet frontend) and it seems to work, so i'll post this in the servlets forum.
Thanks. -
I'm newbie in web services, and I would like to create web service for upload files.
Axis2 is installed, and I tried to implement some solutions I found on the web, but i got an error:
javax.activation.DataHandler cannot be cast to com.sun.xml.ws.developer.StreaminDataHandler
on server side code looks like:
@WebMethod(operationName = "getHeight")
public int getHeight(String name, @XmlMimeType("application/octet-stream") DataHandler data) {
StreamingDataHandler dh = (StreamingDataHandler) data; //this is where error occurs..
on client side:
tt=new javax.activation.FileDataSource("c:\\myImage.jpg");
dhh=new javax.activation.DataHandler(tt);
int r=port.getHeight("name", dhh);
tnx :)Hi dKohlert,
I have now changed my code completely and got it working this way !
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.xml.soap.SOAPMessage;
import javax.xml.ws.Provider;
import javax.xml.ws.Service;
import javax.xml.ws.ServiceMode;
import javax.xml.ws.WebServiceProvider;
* @author Footman
@ServiceMode(value=Service.Mode.MESSAGE)
@WebServiceProvider( targetNamespace="http://spblue.liberty:8084/wsdl/globalLogout")
//@WebService(name="GlobalLogoutService", targetNamespace="http://spblue.liberty:8084/wsdl/globalLogout")
public class GlobalLogoutServiceImpl implements Provider<SOAPMessage> {
@WebMethod(operationName ="globalLogout", action="urn:liberty:soap-action")
public SOAPMessage invoke(@WebParam(name = "logoutRequest") SOAPMessage logoutRequest ){
return logoutRequest;
}Thanks anyway for your reply. If I find some time I will try to use the apt-tool. -
Javax.activation.UnsupportedDataTypeException:
I get the following exception when I extract mail.jar, activation.jar and run the program. However, no exception is thrown when I add the two jar file in the classpath.
How do I solve this problem?
THanks
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type mul
part/mixed;
boundary="----=_Part_0_33536220.1272627745828"
at javax.activation.ObjectDataContentHandler.writeTo(Unknown Source)
at javax.activation.DataHandler.writeTo(Unknown Source)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1381)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1742)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:737)
at SimpleSSLMail.test(SimpleSSLMail.java:77)
at SimpleSSLMail.main(SimpleSSLMail.java:34)
javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME
pe multipart/mixed;
boundary="----=_Part_0_33536220.1272627745828"sanksrit_source_language wrote:
Hi,
please add the following lines in your code.
// add handlers for main MIME types
MailcapCommandMap mc = (MailcapCommandMap)CommandMap.getDefaultCommandMap();
mc.addMailcap("text/html;; x-java-content-handler=com.sun.mail.handlers.text_html");
mc.addMailcap("text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml");
mc.addMailcap("text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain");
mc.addMailcap("multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed");
mc.addMailcap("message/rfc822;; x-java-content-handler=com.sun.mail.handlers.message_rfc822");
CommandMap.setDefaultCommandMap(mc);
This just solved my problemAs those handlers are already defined in the mailcap file supplied with JavaMail, that is totally useless advice. It is a clear indication your are not using the libraries in the right way. -
Javax.activation.UnsupportedDataTypeException: applicaion/pdf error urgent
Hi,
When I try to send the PDF document read from database without storing a phyiscal copy, I got the below error.
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/pdf
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:625)
My code is like below.
MimeMultipart mimeMultiPart = new MimeMultipart();
/*below call returns byte array from data store*/
byte[] byteArray = xxxxMailMessage.getByteStreamAttachment();
ByteArrayInputStream byteStream = new ByteArrayInputStream(byteArray);
MimeBodyPart mimeBodyForAttachmnt = new MimeBodyPart();
mimeBodyForAttachmnt.setContent((Object)byteStream,"application/pdf");
mimeBodyForAttachmnt.setHeader("Content-Transfer-Encoding","base64");
mimeBodyForAttachmnt.setHeader("Content-Disposition","attachment");
mimeBodyForAttachmnt.setFileName(mailAttachmentName);
mimeMultiPart.addBodyPart(mimeBodyForAttachmnt,1);
Plese let me know if my code is wrong.
I got struct with this probelm from last ocuple of days.I was searching info but ocudnt get exact cause.
thanks in advacne.
Regards,
GodspeedThis solution is in JavaMail 1.4.1. I'm stuck with a lower level of JavaMail which does not support ByteArrayDataSource. Might you have a suggestion for solving this problem with an earlier version of JavaMail?
-
Javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
hi there
i'm new to javamail and i'm trying to build a sample tool able only to send an e-mail.
i'm connecting to my office mail-server (web-mail). I'm sending from my office's address to an hotmail's address but i always receive the UnsupportedDataTypeException message. The same problem occurs if i mail to another user of web-mail
Have someone already encountered this problem?
Thanks in advance
here is my debug:
DEBUG: setDebug: JavaMail version 1.3.2
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "212.239.51.130", port 25, isSSL false
220 mail.euchia.it ESMTP
DEBUG SMTP: connected to host "212.239.51.130", port: 25
EHLO tim1
250-mail.euchia.it talking to [192.168.1.145] ([192.168.1.145])
250-ENHANCEDSTATUSCODES
250-SIZE
250-ETRN
250-ATRN
250-DSN
250-8BITMIME
250 HELP
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "SIZE", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "ATRN", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "HELP", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<[email protected]>
250 2.1.0 <[email protected]>... Sender ok
RCPT TO:<[email protected]>
250 2.1.5 <[email protected]>... Recipient ok; will forward
DEBUG SMTP: Verified Addresses
DEBUG SMTP: [email protected]
DATA
354 Enter mail, end with "." on a line by itself
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_0_597230.1126769454656"
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)
at javax.activation.DataHandler.writeTo(DataHandler.java:305)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1206)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1611)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:526)
at javax.mail.Transport.send0(Transport.java:151)
at javax.mail.Transport.send(Transport.java:80)
at msgmultisendsample.main(msgmultisendsample.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)I hope this will help you.
http://jce.iaik.tugraz.at/products/03_cms/faq/index.php
Thanks,
Amol -
Where is import javax.activation.*;
Hi All .
I've downloaded the java mail api .
Now I would like to run the demos but it says that it can't find import javax.activation.*;
Where is activiation package - is that another package and what does it do may I ask ?
Stevhttp://java.sun.com/products/javabeans/glasgow/jaf.html
-
Install problem olite NoClassDefFoundError: javax/activation/DataSource
Hello,
I ran into an installation problem with the Oracle BPEL PM server. Though the installation completed successfully during startup of the server the following error occurs (part of log, complete log follows):
XXXXXXXXXXXXXXX
<2004-12-11 16:22:45,959> <ERROR> <default.collaxa.cube> <ServerManager::handleInitException> Error while initializing java class "javax/activation/DataSource".
Java class "javax/activation/DataSource" cannot be found. Check if class "javax
/activation/DataSource" package is in your classpath.
<2004-12-11 16:22:45,959> <ERROR> <default.collaxa.cube> <ServerManager::handleInitException>
Failed to load OraBPEL Process "default" domain because:
javax/activation/DataSource
<ServerManager::loadAllDomains>
ORABPEL START-UP ERROR!!!!!
XXXXXXXXXXXXXXXXXXX
It seems to happen because of the following exception:
XXXXXXXXXXXXXXXXXXX
java.lang.NoClassDefFoundError: javax/activation/DataSource
XXXXXXXXXXXXXXXXXXX
On another WinXP-System everything is fine.
I already had a default Oracle Lite Installation on my machine through Mobile Development Kit when installing BPEL PM Server. So I think there is a conflict between the two OLite DB... (Unfortunately I really need the first installation of OLite).
When I tried to reach the bpel-OLite DB through msql everything is fine. I can address the orapbel schema either with the ODBC-DSN syntax or the syntax which uses the olsv2040 adaptor service.
I checked ODBC.ini, ODBCinst.ini and polite.ini - they are configured as mentioned in another forum thread.
The classpath seems to be correct as shown by the log (following). The class javax/activation/DataSource is in orapbel.jar - this archive is in the classpath. Perhaps the signature of the executed method doesn't fit with two concurrent olite DB on the system...
Does somebody has an idea what's wrong with my configuration?
I appreciate any suggestion.
Thank you very much!
Florian Werner
University Tuebingen, Germany
STARTUP LOG OF BPEL SERVER:
04/12/11 16:22:35 Application default (default) initialized...
04/12/11 16:22:35 Binding EJB CubeEngineBean to ejb/collaxa/system/CubeEngineBea
n...
04/12/11 16:22:35 Binding EJB DispatcherBean to ejb/collaxa/system/DispatcherBea
n...
04/12/11 16:22:35 Binding EJB InvokeSenderBean to ejb/collaxa/system/InvokeSende
rBean...
04/12/11 16:22:35 Binding EJB ServerBean to ejb/collaxa/system/ServerBean...
04/12/11 16:22:35 Binding EJB DeliveryBean to ejb/collaxa/system/DeliveryBean...
04/12/11 16:22:35 Binding EJB MessageBean to ejb/collaxa/system/MessageBean...
04/12/11 16:22:35 Binding EJB InstanceKeyGenerator to ejb/collaxa/system/Instanc
eKeyGenerator...
04/12/11 16:22:35 Binding EJB DomainManagerBean to ejb/collaxa/system/DomainMana
gerBean...
04/12/11 16:22:35 Binding EJB FinderBean to ejb/collaxa/system/FinderBean...
04/12/11 16:22:35 Binding EJB ProcessManagerBean to ejb/collaxa/system/ProcessMa
nagerBean...
04/12/11 16:22:35 Binding EJB InstanceManagerBean to ejb/collaxa/system/Instance
ManagerBean...
04/12/11 16:22:35 Binding EJB ActivityManagerBean to ejb/collaxa/system/Activity
ManagerBean...
04/12/11 16:22:35 Binding EJB ArchiveManagerBean to ejb/collaxa/system/ArchiveMa
nagerBean...
04/12/11 16:22:35 Binding EJB PresentationManagerBean to ejb/collaxa/system/Pres
entationManagerBean...
04/12/11 16:22:35 Binding EJB TaskManagerBean to ejb/collaxa/system/TaskManagerB
ean...
04/12/11 16:22:35 Binding EJB TransactionManagerBean to ejb/collaxa/system/Trans
actionManagerBean...
04/12/11 16:22:35 Binding EJB TransactionViewManagerBean to ejb/collaxa/system/T
ransactionViewManagerBean...
04/12/11 16:22:35 Binding EJB CubeFinderBean to ejb/collaxa/system/CubeFinderBea
n...
04/12/11 16:22:35 Binding EJB TransactionFinderBean to ejb/collaxa/system/Transa
ctionFinderBean...
04/12/11 16:22:36 Application orabpel (Collaxa Web Applications) initialized...
04/12/11 16:22:38 Web-App default:defaultWebApp (0.0.0.0/0.0.0.0:9700/) started.
04/12/11 16:22:38 Building Global TagLibrary Persistent Cache
04/12/11 16:22:38 Looking for global resource at C:\orabpel\system\appserver\oc4
j\j2ee\home\config\..\jsp\lib\taglibDone getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing global cache - from existing cache ...
04/12/11 16:22:38 Building Application TagLibrary Persistent Cache for defaultWe
bApp
04/12/11 16:22:38 Done getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing application cache - from existing cache ...
04/12/11 16:22:38 Found 0 listeners
04/12/11 16:22:38 Web-App orabpel:admin_war (0.0.0.0/0.0.0.0:9700/BPELAdmin) sta
rted...
04/12/11 16:22:38 Building Application TagLibrary Persistent Cache for admin_war
04/12/11 16:22:38 Done getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing application cache - from existing cache ...
04/12/11 16:22:38 Found 0 listeners
04/12/11 16:22:38 Web-App orabpel:console_war (0.0.0.0/0.0.0.0:9700/BPELConsole)
started...
04/12/11 16:22:38 Building Application TagLibrary Persistent Cache for console_w
ar
04/12/11 16:22:38 Done getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing application cache - from existing cache ...
04/12/11 16:22:38 Found 0 listeners
04/12/11 16:22:38 Web-App orabpel:startup_war (0.0.0.0/0.0.0.0:9700/orabpel) sta
rted...
04/12/11 16:22:38 Building Application TagLibrary Persistent Cache for startup_w
ar
04/12/11 16:22:38 Done getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing application cache - from existing cache ...
04/12/11 16:22:38 Found 0 listeners
<ServerManager::__init>
Oracle BPEL Server version 2.0.10
Build: 2004.08.26.19.51
Build time: Thu Aug 26 19:51:38 PDT 2004
Build type: release
<ServerDescriptor::validateCompatibility> Detected server descriptor version '2.
0.1'
<BaseJDKAdaptor::initAdaptor>
JVM properties
Java version: 1.4.2_04, Sun Microsystems Inc.
Java Home: C:\j2sdk1.4.2_04\jre
Java VM: Java HotSpot(TM) Client VM 1.4.2_04-b05, Sun Microsystems Inc
OS-System: Windows XP 5.1, x86
System Class path: oc4j.jar;C:\orabpel\system\appserver\oc4j\j2ee\home
\lib/ejb.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/servlet.jar;C:\orabp
el\system\appserver\oc4j\j2ee\home\lib/ojsp.jar;C:\orabpel\system\appserver\oc4j
\j2ee\home\lib/jndi.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jdbc.jar;
C:\orabpel\system\appserver\oc4j\j2ee\home\iiop.jar;C:\orabpel\system\appserver\
oc4j\j2ee\home\iiop_gen_bin.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/j
ms.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jta.jar;C:\orabpel\system\
appserver\oc4j\j2ee\home\lib/jmxri.jar;C:\orabpel\system\appserver\oc4j\j2ee\hom
e\lib/javax77.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/javax88.jar;C:\
orabpel\system\appserver\oc4j\j2ee\home\../../opmn/lib/ons.jar;C:\orabpel\system
\appserver\oc4j\j2ee\home\../../opmn/lib/optic.jar;C:\orabpel\system\appserver\o
c4j\j2ee\home\../../lib/dms.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../..
/dms/lib/dms.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/connector.jar;C:
\orabpel\system\appserver\oc4j\j2ee\home\lib/cos.jar;C:\orabpel\system\appserver
\oc4j\j2ee\home\lib/jsse.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../or
acle/lib/jsse.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jnet.jar;C:\ora
bpel\system\appserver\oc4j\j2ee\home\lib/jcert.jar;C:\orabpel\system\appserver\o
c4j\j2ee\home\lib/activation.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/
mail.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../javavm/lib/jasper.zip;
C:\orabpel\system\appserver\oc4j\j2ee\home\../../lib/xmlparserv2.jar;C:\orabpel\
system\appserver\oc4j\j2ee\home\../../oracle/lib/xmlparserv2.jar;C:\orabpel\syst
em\appserver\oc4j\j2ee\home\lib/jaxp.jar;C:\orabpel\system\appserver\oc4j\j2ee\h
ome\lib/jaas.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\jazn.jar;C:\orabpel\
system\appserver\oc4j\j2ee\home\../../jdbc/lib/classes12dms.jar;C:\orabpel\syste
m\appserver\oc4j\j2ee\home\../../oracle/jdbc/lib/classes12dms.jar;C:\orabpel\sys
tem\appserver\oc4j\j2ee\home\../../jdbc/lib/nls_charset12.jar;C:\orabpel\system\
appserver\oc4j\j2ee\home\../../oracle/jdbc/lib/nls_charset12.jar;C:\orabpel\syst
em\appserver\oc4j\j2ee\home\jaxb-rt-1.0-ea.jar;C:\orabpel\system\appserver\oc4j\
j2ee\home\../../soap/lib/soap.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../
../webservices/lib/wsserver.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../..
/webservices/lib/wsdl.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../rdbms
/jlib/aqapi.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jem.jar;C:\orabpe
l\system\appserver\oc4j\j2ee\home\../../javacache/lib/cache.jar;C:\orabpel\syste
m\appserver\oc4j\j2ee\home\lib/http_client.jar;C:\orabpel\system\appserver\oc4j\
j2ee\home\../../jlib/jssl-1_1.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../
../oracle/jlib/jssl-1_1.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../jli
b/repository.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../oracle/jlib/re
pository.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jaasmodules.jar;C:\o
rabpel\system\appserver\oc4j\j2ee\home\../../sqlj/lib/runtime12ee.jar;C:\orabpel
\system\appserver\oc4j\j2ee\home\../../sqlj/lib/translator.jar;C:\orabpel\system
\appserver\oc4j\j2ee\home\lib/crimson.jar;;C:\orabpel\system\classes;C:\orabpel\
lib\saxon_7.9.jar;C:\orabpel\lib\orabpel-external.jar;C:\orabpel\lib\orabpel.jar
;C:\orabpel\lib\orabpel-common.jar;C:\orabpel\lib\orabpel-ant.jar;C:\j2sdk1.4.2_
04\lib\tools.jar;C:\orabpel\lib\commons-httpclient-2.0.jar;C:\orabpel\lib\olite4
0.jar;C:\orabpel\lib\ant_1.5.4.jar;C:\orabpel\lib\xmlparserv2.jar;C:\orabpel\sys
tem\appserver\oc4j\j2ee\home\applib;C:\orabpel\system\appserver\oc4j\sqlj\lib;C:
\orabpel\system\appserver\oc4j\rdbms\jlib\xsu12.jar;C:\orabpel\system\appserver\
oc4j\lib\dsv2.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\jsp\lib\taglib;C:\o
rabpel\system\appserver\oc4j\j2ee\home\jsp\lib\taglib\jaxen-full.jar;C:\orabpel\
system\appserver\oc4j\j2ee\home\jsp\lib\taglib\ojsputil.jar;C:\orabpel\system\ap
pserver\oc4j\j2ee\home\jsp\lib\taglib\saxpath.jar;C:\orabpel\system\appserver\oc
4j\j2ee\home\jsp\lib\taglib\standard.jar;C:\orabpel\system\appserver\oc4j\j2ee\h
ome\applications\orabpel_ear\ejb_ob_engine.jar;C:\orabpel\system\appserver\oc4j\
j2ee\home\application-deployments\orabpel\ejb_ob_engine.jar\deployment.cache;
<BasePlatformAdaptor::registerShutdownHook> Registered shutdown hook for olite
<ConnectionFactoryImpl::init> Initialized connection factory jdbc/BPELServerData
Source
<ConnectionFactoryImpl::init> Initialized connection factory jdbc/BPELServerData
Source
<ServerManager::__init> Detected datasource 'olite'
<ServerAdaptorManager::init> Initialized adaptors for platform 'oc4j_10g'
<ServerManager::loadAllDomains> Loading all domains under C:\orabpel\domains
<DomainDescriptor::validateCompatibility> Detected domain descriptor version '2.
0.5'
<2004-12-11 16:22:45,028> <INFO> <default.collaxa.cube> <ServerManager::loadDoma
in>
Oracle BPEL Server version 2.0.10
Build: 2004.08.26.19.51
Build time: Thu Aug 26 19:51:38 PDT 2004
Build type: release
<2004-12-11 16:22:45,138> <INFO> <default.collaxa.cube.engine> <CubeEngine::load
>
Initializing BPEL domain from descriptor file
"C:\orabpel\domains\default\config\domain.xml"
<ConnectionFactoryImpl::init> Initialized connection factory jdbc/BPELServerData
Source
<ConnectionFactoryImpl::init> Initialized connection factory jdbc/BPELServerData
Source
<2004-12-11 16:22:45,368> <INFO> <default.collaxa.cube.engine> <BaseDatabaseAdap
tor::validateCompatibility> Detected database version '2.0.29'
<2004-12-11 16:22:45,378> <INFO> <default.collaxa.cube.engine> <AdaptorManager::
init> Initialized adaptors for platform 'oc4j_10g', datasource 'olite'
<2004-12-11 16:22:45,959> <ERROR> <default.collaxa.cube> <ServerManager::handleI
nitException> Error while initializing java class "javax/activation/DataSource".
Java class "javax/activation/DataSource" cannot be found. Check if class "javax
/activation/DataSource" package is in your classpath.
<2004-12-11 16:22:45,959> <ERROR> <default.collaxa.cube> <ServerManager::handleI
nitException>
Failed to load OraBPEL Process "default" domain because:
javax/activation/DataSource
<ServerManager::loadAllDomains>
ORABPEL START-UP ERROR!!!!!!!!
OraBPEL run-time system failed to start due to exception:
Exception not handled by the Collaxa Cube system.
An unhandled exception has been thrown in the Collaxa Cube system. The exception
reported is: "java.lang.NoClassDefFoundError: javax/activation/DataSource
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.class$(J
AFDataHandlerSerializerFactory.java:76)
at org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.getSeria
lizerClass(JAFDataHandlerSerializerFactory.java:85)
at org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.<init>(J
AFDataHandlerSerializerFactory.java:73)
at org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMap
pingImpl.java:154)
at org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMap
pingImpl.java:130)
at org.apache.axis.encoding.DefaultTypeMappingImpl.getSingleton(DefaultT
ypeMappingImpl.java:124)
at com.collaxa.cube.engine.deployment.TypeSoapRegistry.registerHeaderTyp
es(TypeSoapRegistry.java:269)
at com.collaxa.cube.engine.deployment.TypeSoapRegistry.load(TypeSoapRegi
stry.java:101)
at com.collaxa.cube.engine.core.TypeRegistry.load(TypeRegistry.java:121)
at com.collaxa.cube.engine.CubeEngine.__load(CubeEngine.java:522)
at com.collaxa.cube.engine.CubeEngine.load(CubeEngine.java:452)
at com.collaxa.cube.admin.ServerManager.loadDomain(ServerManager.java:91
9)
at com.collaxa.cube.admin.ServerManager.loadAllDomains(ServerManager.jav
a:733)
at com.collaxa.cube.admin.ServerManager.init(ServerManager.java:92)
at com.collaxa.cube.beans.ServerBean.init(ServerBean.java:202)
at IServerBean_StatelessSessionBeanWrapper14.init(IServerBean_StatelessS
essionBeanWrapper14.java:79)
at com.collaxa.cube.admin.CXLoaderServlet.init(CXLoaderServlet.java:59)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
java:2094)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
java:4523)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpAppl
ication.java:4617)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
java:765)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
497)
at com.evermind.server.Application.getHttpApplication(Application.java:8
86)
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.jav
a:688)
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServe
r.java:2325)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.jav
a:1498)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLa
uncher.java:93)
at java.lang.Thread.run(Thread.java:534)
Exception: java.lang.NoClassDefFoundError: javax/activation/DataSource
Handled As: com.collaxa.cube.engine.EngineInitializationException
04/12/11 16:22:46 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
initializedHello Erwin,
thank you for your fast reply.
I'll try to switch to 9i/10g.
In migrating perhaps also I will use the Designer as standalone tool on the client and connecting to iAS on another machine where I could integrate the BPEL Engine.
That means integrating BPEL in our architecture.
Regards Florian -
Writing custom implentation of javax.activation.Datasource
Hello All,
In our current implementation we have a
1)Media Server (MS)
2)A Server which exposes some actions like viewing clips as web service (WS)
3)A Web service client (WC)
The 1st and 2nd server has located on the same LAN
The Webservice client invokes a web service to view a clip. The 2nd Server in turn requests Media Server for the clip data using socket api's.
Now the question is how to pass on this clip data which can be upto 5 MB to the WS client.
Right now the second server reads from the input stream connected to the Media Server and write to a temp file and then uses a FileDataSource. Can we somehow avoid creating this temporary file?
Regards
John... and I made a copy of activation.jar in
about any pertient /lib folder I've found on my
computer :-)Bad move. You should actually do the exact opposite, i.e hunt down any xtra mail.jar/activation.jar and take them out. One copy under your server's lib directory should suffice, if any.
Also, the mail classes should be already included in j2ee.jar (included in your classpath), depending on the version you're using. With j2ee 1.2 and 1.3, you should not need to include the java beans activation framework... -
Exception when trying to create a soap attachment javax.activation. Unsuppo
I am trying to pass an object String [] as a soap attachment.
Reading the docs, if I pass a parameter as type datahandler, it is automatically treated as an Attachment.
I used the constructor DataHandler (Object obj, String mimeType)
where the object was my StringArray, and MIME is the XML representation of
a java type, which according to weblogic docs is NMTOKENS,IDREF or ENTITIES.
It threw the same error for the other two.
Am I using DataHandler correctly, is MIME the SOAP representation of the Java Object in memory.
Thanks for any help
TonyI am trying to pass an object String [] as a soap attachment.
Reading the docs, if I pass a parameter as type datahandler, it is automatically treated as an Attachment.
I used the constructor DataHandler (Object obj, String mimeType)
where the object was my StringArray, and MIME is the XML representation of
a java type, which according to weblogic docs is NMTOKENS,IDREF or ENTITIES.
It threw the same error for the other two.
Am I using DataHandler correctly, is MIME the SOAP representation of the Java Object in memory.
Thanks for any help
Tony -
How to get support of javax.Mail in Tomcat
Hello
I am tring to run a program which need javax.MAil and javax.activation packages in jsp. i am using tomcat
but i am not able to run that program as it giving error of package not found . so plz tell me how i can use other API's in tomcat
regards
RajHello sir thx for ur reply ...but i already did that on
means set classpath for both jar files
r there any classpath variable in tomcat also?
as i set my local classpath environment variable
when i import that package that is javax.mail
it gives me error on import statement...i thing
when we import any package it searchs that package
in WEB-INF/class dir...so plzz....reply and give me
ome suggestions. -
Javax.mail CSV file attachment corrupt?
I'm having some trouble with attaching a file to an outgoing email, it's a CSV file and when it is uploaded/attached to the email, it becomes "corrupt". Excel will still open it but if I open it in notepad the formatting is noticeably messed up. I need it to retain all the correct return carriages and line feeds, which I believe are what are getting mingled. (Another program must read it and this formatting is messing everything up).
Here's the code:
MimeBodyPart messageBodyPart =
new MimeBodyPart();
//fill message
messageBodyPart.setText(outBoundMessage);
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
if (fileAttachment != null) {
// Part two is attachment
MimeBodyPart attachment = new MimeBodyPart();
attachment.attachFile(fileAttachment);
attachment.setFileName(fileAttachment.getName());
attachment.setHeader("type", "text/csv");
multipart.addBodyPart(attachment);
// Put parts in message
message.setContent(multipart);The other parts of the message are being created and attached where necessary. My guess is that it's not transferring in binary? I've never really done this sort of thing so if anyone could lend a hand and show me how to properly attach files so they don't get altered in anyway I would greatly appreciate it.Hi,
I am sending csv file as an attachment by using below code
import java.util.*;
import java.io.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class AttchmtMail
String finaldt;
public void mailAtchmt(String fname,String dt) {
String to="[email protected]";
String from = "[email protected]";
String to2="[email protected]";
String host = "xxx.xx.xxx.xxx";
// Create properties, get Session
Properties props = new Properties();
// If using static Transport.send(),
// need to specify which host to send it to
props.put("mail.smtp.host", host);
// To see what is going on behind the scene
props.put("mail.debug", "true");
Session session = Session.getInstance(props);
try {
// Instantiatee a message
Transport bus = session.getTransport("smtp");
bus.connect();
Message msg = new MimeMessage(session);
//Set message attributes
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(to),new InternetAddress(to2)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject("New OU's on "+dt+".");
msg.setSentDate(new Date());
// String filename= "C:/Feeds/"+finaldt+"/"+files;
String file1= fname;
File f1=new File(file1);
if(f1.exists())
setFileAsAttachment(msg, file1);
else
//setFileAsAttachment(msg,"","",info);
msg.saveChanges();
bus.sendMessage(msg, address);
bus.close();
catch (MessagingException mex) {
// Prints all nested (chained) exceptions as well
mex.printStackTrace();
// How to access nested exceptions
while (mex.getNextException() != null) {
// Get next exception in chain
Exception ex = mex.getNextException();
ex.printStackTrace();
if (!(ex instanceof MessagingException)) break;
else mex = (MessagingException)ex;
public void setFileAsAttachment(Message msg, String filename)
throws MessagingException {
// Create and fill first part
MimeBodyPart p1 = new MimeBodyPart();
p1.setText("Dear ,\n\nPlease check the attachment " );
// Create second part
MimeBodyPart p2 = new MimeBodyPart();
// Put a file in the second part
if(!filename.equals(""))
FileDataSource fds = new FileDataSource(filename);
p2.setDataHandler(new DataHandler(fds));
p2.setFileName(fds.getName());
// Create the Multipart. Add BodyParts to it.
Multipart mp = new MimeMultipart();
mp.addBodyPart(p1);
if(!filename.equals(""))
mp.addBodyPart(p2);
} // Set Multipart as the message's content
msg.setContent(mp);
}//End of class
Madhu
Maybe you are looking for
-
Search panel in Acrobat 9 Mac disappeared to unusable vertical sliver
Running Acrobat 9.3 on Snow Leopard, the Search Panel has become a tiny vertical sliver only just visible – see attachment. It is unusable. The drop down Window dialog shows the Search window as active. I cannot find out how to restore the Search pan
-
Product costing report month wise
Hi Expert, My client is Tractor and crane manufacturer.So their requirement is that they want to know their total cost with all overhead and they want to compare the costing month to month.Please give the solution for that. Thanks Sa
-
Tcode for listing database in SAP AII 4.0
Hi, Can anyone tell me what is the Tcode for listing Database in SAP AII 4.0?
-
I am using a brand new iMac, top spec including the full 32Gb RAM. I am admittedly doing some heavy work with biggish files on Lightroom and Photoshop but after processing just a couple of 5 image blens my Activity Monitir is showing only 5.74GB RAM
-
Creative Cloud for Desktop Download Error
I have Creative Cloud for Desktop installed on MacBook Pro, OS Yosemite, to use Adobe Illustrator. A few months back, the CC App stopped working. Says "Download Error" with no fix. I have searched other posts within the forums and followed all lis