JSE8 and mail.jar, activation.jar
Hey, all.
Does anyone know if there are new mail.jar and activation.jar files for the Sun Java Studio Enterprise 8 system that support the new mail standard 1.4? I tried just putting these new jar files out in the \appserv8.1ur2\lib directory but that didn't work because apparently the JAR files that come with the server are packaged a bit differently (thank a lesser god I had saved off the old versions of the two files so I could put them back!)
I'd like to use the new mail 1.4 standard that includes the method javax.mail.inetrnet.MimeBodyPart.attachFile(File). It seems much more straightforward than doing the old style mime attachment business.
Thanks in advance.
First, when the NEW (javamail 1.4) JAR files aren't there, I get a javax.servlet.ServletException: javax.mail.internet.MimeBodypart.attachFile of "noSuchMethodError". Then, I replaced the old JAR files with the new activation.jar and mail.jar files and I then receive a javax.servlet.ServletException that com/sun/mail/util/SharedByteArrayInputStream has a "NoClassDefFoundError". I think the JSE8 folks must package all the various associated "mail" files (dsn.jar, imap.jar, mailapi.jar, pop3.jar, and smtp.jar) along with the main "mail.jar" file into one big JAR repository.
Similar Messages
-
Javamail path for mail.jar & activation.jar?
I am trying to use javamail but can't get anything to compile or run. I read all the other posts on this and all they say is to set the path correctly as did the directions, I still cannot get this to work did I do something wrong? Whenever I try to compile something it cannot find those jar files "package javax.mail does not exist" or "package javax.activation does not exist"
here is my path
C:\j2sdk1.4.2_05\bin;C:\javamail-1.3.2ea:\mail.jar;C:\jaf-1.0.2\activation.jar
I am runnning XP sp1
thanks for the help.Please check those directions carefully once again - usually it is CLASSPATH variable that needs to be modified to include jar files and not PATH variable...
Also, note that it looks like you have an extra colon character below:
C:\javamail-1.3.2ea:\mail.jar
should probably :have been
C:\javamail-1.3.2ea\mail.jar -
Where to set mail.jar,activation.jar
Hello
I want to know that
Where to set the path of activation.jar,mail.jar files
I am using jsp So plz tell me where i have to save these files
So that server will access
pla help
ShilpaIf you are using JSP then they should already be in your server. Don't put them anywhere.
-
Account not verified and mail not active
Hi all and sorry for my bad english.
I have an iphone 5 with ios 7.1 and I always used with satisfaction, unfortunately I realized that my account has never been confirmed (I was sure of it)
the problem is that if I try to confirm, my old mail (@yahoo) is deleted for inactivity!! I can not receive the confirmation link.
I tried the second option (secret question) but don't work it!
the account is very old at least four years and probably activation I entered an incorrect date (taken by the euphoria of my new iphone)
i used never the phone as "Spartphone" for me the phone "phones" just, but now I want to solve this situation...
what chance do I have? I can safely use accounts added but can't use icloudHello DinuDenis,
Thank you for participating in the Apple Support Communities.
It sounds like you need to verify your Apple ID email, but you can't receive the verification message. If you can't answer the secret questions, or receive the verification message because your email has been deactivated, this article recommends contacting Apple Support for help:
If you didn't receive your verification or reset email - Apple Support
If you still can't find the reset email or verification email, contact Apple Support.
Best Regards,
Jeremy -
Java Studio Enterprise 8 and mail.jar
I have a problem with the mail.jar file being locked after a method is instantiated that actually sends a message (and invokes the mail.jar, activiation.jar, etc.) This is problematic because I can't redepoy an application from the Java Studio Enterprise 8 IDE to the application server without shutting down and restarting the application server. I have the latest versions as of today (7/26/2006) of the mail.jar and activation.jar archives. I've done everything I can think of to ensure that all references to java objects created as part of the mail send process are nullified and even called the System.gc() method to ask the JVM to clean things up. Still, the mail.jar is locked upon redeploy (I can tell because all other files, classes, web component, etc. are gone from the deploy directory except the mail.jar file, which is locked even from Operating System access.)
I'm using:
Sun Java(TM) Studio Enterprise 8 (Build 051011_2)
IDE/1 spec-5.9.1 impl=200507031930
Windows 2000 version 5.0 runningo n x86
Java 1.5.0_04
Java HotSpot(TM) Client VM 1.5.0_04-b05
Any ideas on how to fix this locking problem with mail.jar?
/** Send an e-mail to a user with mime file attachment(s). */
public synchronized boolean sendMailWithMimeAttachment(String from,
String to[], String subject, String messageText, File[] file) {
boolean sent = false;
java.util.Properties properties = new java.util.Properties();
properties.put("mail.smtp.host", getSmtpHost());
javax.mail.Session session = javax.mail.Session.getDefaultInstance(properties);
javax.mail.internet.MimeMessage message = new javax.mail.internet.MimeMessage(session);
javax.mail.internet.MimeMultipart mimeMultiPart = new javax.mail.internet.MimeMultipart();
javax.mail.Transport transport = null;
while (true) {
try {
subject = formatSQLString(subject);
if (subject.length() <= 0) {
subject = "McJunkin Mail Interface";
message.setSubject(subject);
message.setSentDate(new java.util.Date());
from = formatSQLString(from);
if (from.length() <= 0) {
from = "[email protected]";
message.setFrom(new InternetAddress(from));
if (to == null) {
break;
String[] toArray = new String[0];
for (int i=0;i<to.length;i++) {
to[i] = formatSQLString(to);
if (to[i].length() > 0) {
toArray = addItemToArray(toArray, to[i]);
if (toArray.length <= 0) {
break;
InternetAddress[] address = new InternetAddress[toArray.length];
for (int i=0;i<toArray.length;i++) {
address[i] = new InternetAddress(toArray[i]);
message.setRecipients(javax.mail.Message.RecipientType.TO, address);
// Create the multipart MIME message body parts.
int partsAdded = 0;
messageText = formatSQLString(messageText);
if (messageText.length() > 0) {
partsAdded++;
MimeBodyPart mbp = new MimeBodyPart();
mbp.setText(messageText);
mimeMultiPart.addBodyPart(mbp);
mbp = null;
if (file != null) {
for (int i=0;i<file.length;i++) {
if (file[i].exists() && file[i].isFile()) {
partsAdded++;
MimeBodyPart mbp = new MimeBodyPart();
FileDataSource fds = new FileDataSource(file[i]);
mbp.setDataHandler(new DataHandler(fds));
DataHandler dh = mbp.getDataHandler();
mbp.setFileName(fds.getName());
mimeMultiPart.addBodyPart(mbp);
dh = null;
fds = null;
mbp = null;
message.setContent(mimeMultiPart);
message.saveChanges();
transport = session.getTransport();
transport.send(message);
sent = true;
} catch (Exception e) {
e.printStackTrace();
break;
transport = null;
mimeMultiPart = null;
message = null;
session = null;
properties = null;
javaCleanup();
return sent;Huhm. Good question. I have done the following to get a good log file trace in case something is there:
1) Stopped the server.
2) Cleared out the server.log file (deleted it).
3) Started the server.
4) Deployed the application.
5) Ran the application code such that it sends an e-mail using the Transport.send(message) code.
6) Tried to redeploy the application (which won't because the mail.jar file is locked up).
Here's the server.log file after all that happened....
[#|2006-08-07T14:17:57.770-0400|WARNING|sun-appserver-pe8.1_02|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER005:Spaces in your PATH have been detected. The PATH must be consistently formated (e.g. C:\Program Files\Java\jdk1.5.0\bin; ) or the Appserver may not be able to start and/or stop. Mixed quoted spaces in your PATH can cause problems, so the launcher will remove all double quotes before invoking the process. The most reliable solution would be to remove all spaces from your path before starting the Appservers components. |#]
[#|2006-08-07T14:17:57.790-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.tools.launcher|_ThreadID=10;|
C:/JDK1.5.0_04\bin\java
-client
-XX:NewRatio=2
-Xmx1g
-Xrs
-Dcom.sun.aas.defaultLogFile=D:/Sun/JSE8/AppServ8.1UR2/domains/domain1/logs/server.log
-Djava.endorsed.dirs=D:/Sun/JSE8/AppServ8.1UR2/lib/endorsed
-Djava.security.policy=D:/Sun/JSE8/AppServ8.1UR2/domains/domain1/config/server.policy
-Djava.security.auth.login.config=D:/Sun/JSE8/AppServ8.1UR2/domains/domain1/config/login.conf
-Dsun.rmi.dgc.server.gcInterval=3600000
-Dsun.rmi.dgc.client.gcInterval=3600000
-Djavax.net.ssl.keyStore=D:/Sun/JSE8/AppServ8.1UR2/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=D:/Sun/JSE8/AppServ8.1UR2/domains/domain1/config/cacerts.jks
-Djava.ext.dirs=C:/JDK1.5.0_04/jre/lib/ext;D:/Sun/JSE8/AppServ8.1UR2/domains/domain1/lib/ext
-Djdbc.drivers=com.pointbase.jdbc.jdbcUniversalDriver
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Djavax.net.ssl.trustStorePassword=changeit
-Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
-Dcom.sun.aas.configName=server-config
-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
-Ddomain.name=domain1
-Djmx.invoke.getters=true
-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
-Dcom.sun.aas.promptForIdentity=true
-Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
-Dcom.sun.aas.instanceRoot=D:/Sun/JSE8/AppServ8.1UR2/domains/domain1
-Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
-Dcom.sun.aas.domainName=domain1
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Dproduct.name=Sun-Java-System/Application-Server
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.faces,javax.servlet.jsp.jstl,javax.xml.bind,javax.help
-Dcom.sun.aas.configRoot=D:/Sun/JSE8/AppServ8.1UR2/config
-Djava.library.path=C:\JDK1.5.0_04\jre\bin\client;D:\Sun\JSE8\AppServ8.1UR2\lib;D:\Sun\JSE8\AppServ8.1UR2\lib;C:\JDK1.5.0_04\bin;.;C:\WINNT\system32;C:\WINNT;D:\Sun\JSE8\AppServ8.1UR2\lib;D:\Sun\JSE8\AppServ8.1UR2\bin;D:\Sun\JSE8\AppServ8.1UR2\lib;D:\Sun\JSE8\AppServ8.1UR2\bin;D:\Sun\JSE8\AppServ8.1UR2\bin;D:\Sun\JSE8\AppServ8.1UR2\bin;C:\PROGRAM FILES\THINKPAD\UTILITIES;D:\SUN\STUDIO5_SE\APPSERVER7\BIN;C:\WINNT\SYSTEM32;C:\WINNT;C:\WINNT\SYSTEM32\WBEM;C:\PROGRA~1\THINKPAD\UTILITIES;E:\PFOC\RUN;C:\PROGRA~1\MQSERIES\TOOLS\C\SAMPLES\BIN;C:\PROGRA~1\MQSERIES\JAVA\BIN;C:\PROGRA~1\MQSERIES\JAVA\LIB;C:\PROGRA~1\MQSERIES\BIN;E:\PFOC\SOURCE;D:\CNT310\RUNTIME;D:\CNT310\TOOLS\UTIL;C:\LOTUS\NOTES;D:\OBJREXX;D:\OBJREXX\OODIALOG;D:\IFOR\WIN\BIN;D:\IFOR\WIN\BIN\EN_US;D:\MSTOOLS\BIN;D:\SPFPRO;D:\PROGRA~1\IBM\TRACE FACILITY;D:\IBMPCS;C:\PROGRA~1\COMMON FILES\ADAPTEC SHARED\SYSTEM;D:\PMW180\APP;D:\PROGRA~1\SYMANTEC\NORTON GHOST 2003;D:\COBOL32\EXEDLL;D:\SQLLIB\BIN;D:\SQLLIB\FUNCTION;D:\SQLLIB\SAMPLES\REPL;D:\SQLLIB\HELP;D:\IBM\IMNNQ;D:\FRNROOT;D:\FRNROOT\DLL;D:\FRNROOT\HELP;D:\Ghost2003\;C:\Program Files\IBM\Trace Facility\;D:\Program Files\IBM\Trace Facility;D:\PCOMM;D:\Sun\JSE8\AppServ8.1UR2\bin;D:\Sun\JSE8\ide\uml1\modules\DoorsIntegrationFiles\modules\bin
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-cp
C:/JDK1.5.0_04/lib/tools.jar;D:/Sun/JSE8/AppServ8.1UR2/lib/appserv-rt.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\admin-cli.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-admin.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\dom.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\jmxremote.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\jmxremote_optional.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\jsf-api.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\jsf-impl.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\rmissl.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\xalan.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\xercesImpl.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-assemblytool_ja.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-cmp_ja.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-rt_ja.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\commons-launcher_ja.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\deployhelp_ja.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\j2ee_ja.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-assemblytool_zh.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-assemblytool_zh_CN.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-cmp_zh.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-cmp_zh_CN.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-rt_zh.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-rt_zh_CN.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\commons-launcher_zh.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\commons-launcher_zh_CN.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\deployhelp_zh.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\deployhelp_zh_CN.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\j2ee_zh.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\j2ee_zh_CN.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-assemblytool_ko.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-cmp_ko.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-rt_ko.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\commons-launcher_ko.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\deployhelp_ko.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\j2ee_ko.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-assemblytool_fr.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-cmp_fr.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-rt_fr.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\commons-launcher_fr.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\deployhelp_fr.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\j2ee_fr.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-assemblytool_es.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-cmp_es.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-rt_es.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\commons-launcher_es.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\deployhelp_es.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\j2ee_es.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-upgrade.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-ext.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\j2ee.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\activation.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-cmp.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-jstl.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\commons-launcher.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\commons-logging.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\j2ee-svc.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\jax-qname.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\jaxr-api.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\jaxr-impl.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\jaxrpc-api.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\jaxrpc-impl.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\mail.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\relaxngDatatype.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\saaj-api.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\saaj-impl.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\xsdlib.jar;D:/Sun/JSE8/AppServ8.1UR2/lib\appserv-env.jar;D:/Sun/JSE8/AppServ8.1UR2/lib/install/applications/jmsra/imqjmsra.jar;D:/Sun/JSE8/AppServ8.1UR2/imq/lib/jaxm-api.jar;D:/Sun/JSE8/AppServ8.1UR2/imq/lib/fscontext.jar;D:/Sun/JSE8/AppServ8.1UR2/lib/ant/lib/ant.jar
com.sun.enterprise.server.PEMain
start
display
native|#]
[#|2006-08-07T14:18:04.199-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.resource.jms|_ThreadID=10;|JMS5023: JMS service successfully started. Instance Name = imqbroker, Home = [D:\Sun\JSE8\AppServ8.1UR2\imq\bin].|#]
[#|2006-08-07T14:18:04.209-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.core|_ThreadID=10;|CORE5098: AS Socket Service Initialization has been completed.|#]
[#|2006-08-07T14:18:05.311-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM0001:MBeanServer initialized successfully|#]
[#|2006-08-07T14:18:06.203-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.core.security|_ThreadID=10;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]
[#|2006-08-07T14:18:06.793-0400|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0315: The host name L2652Q5U is shared by virtual servers server and server1, which are both associated with the same HTTP listener (http-listener-1)|#]
[#|2006-08-07T14:18:06.843-0400|WARNING|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0304: Unsupported http-service property (text/xml) is being ignored|#]
[#|2006-08-07T14:18:06.843-0400|WARNING|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0304: Unsupported http-service property (text/xml) is being ignored|#]
[#|2006-08-07T14:18:07.004-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|Created virtual server server|#]
[#|2006-08-07T14:18:07.004-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|Created virtual server __asadmin|#]
[#|2006-08-07T14:18:07.024-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|Created virtual server server1|#]
[#|2006-08-07T14:18:09.137-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.resource.corba.S1AS-ORB.rpc.transport|_ThreadID=10;|"IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3700"|#]
[#|2006-08-07T14:18:09.147-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.resource.corba.S1AS-ORB.rpc.transport|_ThreadID=10;|"IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3820"|#]
[#|2006-08-07T14:18:09.157-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.resource.corba.S1AS-ORB.rpc.transport|_ThreadID=10;|"IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3920"|#]
[#|2006-08-07T14:18:11.450-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.core.transaction|_ThreadID=10;|JTS5014: Recoverable JTS instance, serverId = [3700]|#]
[#|2006-08-07T14:18:17.520-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM1079: Initialization of AMX MBeans successful|#]
[#|2006-08-07T14:18:18.882-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.ejb|_ThreadID=10;|Instantiated container for: ejbName: MEJBBean; containerId: 74836713503064064|#]
[#|2006-08-07T14:18:20.444-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5010: All ejb(s) of [MEjbApp] loaded successfully!|#]
[#|2006-08-07T14:18:20.995-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.ejb|_ThreadID=10;|Instantiated container for: ejbName: TimerBean; containerId: 74836736788594688|#]
[#|2006-08-07T14:18:22.557-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.ejb|_ThreadID=10;|EJB5109:EJB Timer Service started successfully for datasource [jdbc/__TimerPool]|#]
[#|2006-08-07T14:18:22.557-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5010: All ejb(s) of [__ejb_container_timer_app] loaded successfully!|#]
[#|2006-08-07T14:18:22.637-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0302: Starting Sun-Java-System/Application-Server.|#]
[#|2006-08-07T14:18:22.858-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [__default-admingui] in virtual server [__asadmin] at [/]|#]
[#|2006-08-07T14:18:23.038-0400|WARNING|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0500: default-locale attribute of locale-charset-info element has been deprecated and is being ignored. Use default-charset attribute of parameter-encoding element instead|#]
[#|2006-08-07T14:18:23.418-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [adminapp] in virtual server [__asadmin] at [/web1]|#]
[#|2006-08-07T14:18:23.428-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [admingui] in virtual server [__asadmin] at [/asadmin]|#]
[#|2006-08-07T14:18:23.438-0400|WARNING|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0500: default-locale attribute of locale-charset-info element has been deprecated and is being ignored. Use default-charset attribute of parameter-encoding element instead|#]
[#|2006-08-07T14:18:23.449-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [com_sun_web_ui] in virtual server [__asadmin] at [/com_sun_web_ui]|#]
[#|2006-08-07T14:18:23.919-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [credit] in virtual server [server1] at [/credit]|#]
[#|2006-08-07T14:18:23.949-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [confirm] in virtual server [server1] at [/confirm]|#]
[#|2006-08-07T14:18:23.959-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [log] in virtual server [server1] at [/log]|#]
[#|2006-08-07T14:18:23.969-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [maps] in virtual server [server1] at [/maps]|#]
[#|2006-08-07T14:18:23.989-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [ordinq] in virtual server [server1] at [/ordinq]|#]
[#|2006-08-07T14:18:23.999-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [smg] in virtual server [server1] at [/smg]|#]
[#|2006-08-07T14:18:24.019-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [menu] in virtual server [server1] at [/menu]|#]
[#|2006-08-07T14:18:24.039-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [imaging] in virtual server [server1] at [/imaging]|#]
[#|2006-08-07T14:18:24.049-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [scale] in virtual server [server1] at [/scale]|#]
[#|2006-08-07T14:18:24.059-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [label] in virtual server [server1] at [/label]|#]
[#|2006-08-07T14:18:24.079-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [doclib] in virtual server [server1] at [/doclib]|#]
[#|2006-08-07T14:18:24.099-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [credit] in virtual server [server] at [/credit]|#]
[#|2006-08-07T14:18:24.110-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [confirm] in virtual server [server] at [/confirm]|#]
[#|2006-08-07T14:18:24.130-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [log] in virtual server [server] at [/log]|#]
[#|2006-08-07T14:18:24.150-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [maps] in virtual server [server] at [/maps]|#]
[#|2006-08-07T14:18:24.160-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [ordinq] in virtual server [server] at [/ordinq]|#]
[#|2006-08-07T14:18:24.170-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [menu] in virtual server [server] at [/menu]|#]
[#|2006-08-07T14:18:24.180-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [imaging] in virtual server [server] at [/imaging]|#]
[#|2006-08-07T14:18:24.200-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [scale] in virtual server [server] at [/scale]|#]
[#|2006-08-07T14:18:24.210-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [label] in virtual server [server] at [/label]|#]
[#|2006-08-07T14:18:24.220-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [doclib] in virtual server [server] at [/doclib]|#]
[#|2006-08-07T14:18:24.350-0400|INFO|sun-appserver-pe8.1_02|org.apache.catalina.core.StandardEngine|_ThreadID=10;|Starting Servlet Engine: Sun-Java-System/Application-Server|#]
[#|2006-08-07T14:18:26.483-0400|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0600: WebModule [/imaging] failed to deploy and has been disabled: [java.lang.IllegalArgumentException: Invalid <url-pattern> ImagingServlet in servlet mapping].|#]
[#|2006-08-07T14:18:27.044-0400|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0600: WebModule [/label] failed to deploy and has been disabled: [java.lang.IllegalArgumentException: Invalid <url-pattern> LabelServlet in servlet mapping].|#]
[#|2006-08-07T14:18:29.568-0400|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0600: WebModule [/doclib] failed to deploy and has been disabled: [java.lang.IllegalArgumentException: Invalid <url-pattern> DoclibServlet in servlet mapping].|#]
[#|2006-08-07T14:18:29.898-0400|INFO|sun-appserver-pe8.1_02|org.apache.catalina.loader.WebappClassLoader|_ThreadID=10;|validateJarFile(D:\Sun\JSE8\AppServ8.1UR2\domains\domain1\applications\j2ee-modules\smg\WEB-INF\lib\j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class|#]
[#|2006-08-07T14:18:30.289-0400|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0600: WebModule [/imaging] failed to deploy and has been disabled: [java.lang.IllegalArgumentException: Invalid <url-pattern> ImagingServlet in servlet mapping].|#]
[#|2006-08-07T14:18:30.810-0400|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0600: WebModule [/label] failed to deploy and has been disabled: [java.lang.IllegalArgumentException: Invalid <url-pattern> LabelServlet in servlet mapping].|#]
[#|2006-08-07T14:18:34.085-0400|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0600: WebModule [/doclib] failed to deploy and has been disabled: [java.lang.IllegalArgumentException: Invalid <url-pattern> DoclibServlet in servlet mapping].|#]
[#|2006-08-07T14:18:34.435-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0703: Initializing Sun-Java-System/Application-Server-PE HTTP/1.1 on 6060|#]
[#|2006-08-07T14:18:34.465-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0712: Starting Sun-Java-System/Application-Server-PE HTTP/1.1 on 6060|#]
[#|2006-08-07T14:18:34.715-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0703: Initializing Sun-Java-System/Application-Server-PE HTTP/1.1 on 5050|#]
[#|2006-08-07T14:18:34.726-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=10;|WEB0712: Starting Sun-Java-System/Application-Server-PE HTTP/1.1 on 5050|#]
[#|2006-08-07T14:18:35.216-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM1501: Here is the JMXServiceURL for the JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://l2652q5u.mcjunkin.com:8686/management/rmi-jmx-connector]. This is where the remote administrative clients should connect using the JSR 160 JMX Connectors.|#]
[#|2006-08-07T14:18:35.216-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM1502: Status of System JMX Connector: Active = [true]|#]
[#|2006-08-07T14:18:35.306-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.core|_ThreadID=10;|Application server startup complete.|#]
[#|2006-08-07T14:20:27.395-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1041:Sent the event to instance:[ModuleDeployEvent -- undeploy web/doclib]|#]
[#|2006-08-07T14:20:27.526-0400|WARNING|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=11;|Exception during unregistration of servletstats
java.lang.NullPointerException
at com.sun.enterprise.admin.monitor.registry.spi.MonitoringRegistrationHelper.unregisterServletStats(MonitoringRegistrationHelper.java:502)
at com.sun.enterprise.web.WebContainer.unregisterServletStats(WebContainer.java:2713)
at com.sun.enterprise.web.WebContainer.disableMonitoring(WebContainer.java:2492)
at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2069)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleUndeployed(WebModuleDeployEventListener.java:198)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleUndeployed(WebModuleDeployEventListener.java:262)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:920)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:905)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:288)
at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:155)
at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStopEvent(ServerDeploymentTarget.java:283)
at com.sun.enterprise.deployment.phasing.StopPhase.runPhase(StopPhase.java:126)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:409)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:444)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.stop(ApplicationsConfigMBean.java:725)
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:585)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
|#]
[#|2006-08-07T14:20:27.536-0400|WARNING|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=11;|Exception during unregistration of servletstats
java.lang.NullPointerException
at com.sun.enterprise.admin.monitor.registry.spi.MonitoringRegistrationHelper.unregisterServletStats(MonitoringRegistrationHelper.java:502)
at com.sun.enterprise.web.WebContainer.unregisterServletStats(WebContainer.java:2713)
at com.sun.enterprise.web.WebContainer.disableMonitoring(WebContainer.java:2492)
at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2069)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleUndeployed(WebModuleDeployEventListener.java:198)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleUndeployed(WebModuleDeployEventListener.java:262)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:920)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:905)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:288)
at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:155)
at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStopEvent(ServerDeploymentTarget.java:283)
at com.sun.enterprise.deployment.phasing.StopPhase.runPhase(StopPhase.java:126)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:409)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:444)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.stop(ApplicationsConfigMBean.java:725)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at -
Activation.jar and mail.jar version ????
I have deployed a web service in Weblogic v7.0 which accepts DataHandler as one
of its paramters ( for attachments).
When I invoke from a soap client (weblogic v8.0) it works fine. For using with
soap client (weblogic v7.0) its
gives a serializer exception.
What version of activation.jar and mail.jar should I use for sending attachment
from weblogic 7.0 client.
Regards
Kumar RajHi Kumar,
Could you post the exception traceback and clarify the configuration
(v7.x client to v7.x server fails, but v8.1 client to v7.x server works
OK?)
You may also want to take a look at the docs on creating portable stubs
[1] associated with creating the client jar.
Thanks,
Bruce
[1]
http://edocs.bea.com/wls/docs81/webserv/client.html#1076586
Kumar Raj wrote:
>
I have deployed a web service in Weblogic v7.0 which accepts DataHandler as one
of its paramters ( for attachments).
When I invoke from a soap client (weblogic v8.0) it works fine. For using with
soap client (weblogic v7.0) its
gives a serializer exception.
What version of activation.jar and mail.jar should I use for sending attachment
from weblogic 7.0 client.
Regards
Kumar Raj -
Email: activation.jar and applet alert
I have written code for sending email. I works on one machine with out errror. When I moved it to my server it gave error for the activation.jar file. After copying this file, the code worked, but now I get applet Alert popup with message as "The applet is attempting to invoke the java/lang/System.getProperty() operation on user home, I need to click on Allow to get the code working. How do I disable this popup?
What is the difference between settings on two machines. Is it some browser setting for applet or something else? I am using jre version 1.4.2_03 on Windows 2003 server.No, I am not using Java Applet. I have written simple Java application with main which I run from Command prompt
I am not sure why the popup is displayed for Applet.
Here is the code:
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
public class sendMail
public static void main(String args[])
//set this variable to be your SMTP host
String mailHost = "192.24.235.20";
//set this variable to be your desired email recipient
String to = "testUser@mclaren";
//these variables come from the mail form
String from = "dctmUser@mclaren";
String subject = "JavaTest";
String body = "Test";
if ((from != null) && (to != null) && (subject != null) && (body != null)) // we have mail to send
try
//Get system properties
Properties props = System.getProperties();
//Specify the desired SMTP server
props.put("mail.smtp.host", mailHost);
// create a new Session object
Session session = Session.getInstance(props,null);
// create a new MimeMessage object (using the Session created above)
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.setRecipients(Message.RecipientType.TO, new InternetAddress[] { new InternetAddress(to) });
message.setSubject(subject);
message.setContent(body, "text/plain");
Transport.send(message);
System.out.println("Message Sent");
catch (Throwable t)
System.out.println("Error: " + t.getMessage());
I can't attach the screen shot of the Applet Alert window, but below is the text I get on the Applet Alert window
First Window
Title: -- Applet Alert --
Text: The applet is attempting to invoke the java/lang/System.getProperty() operation on user home
Buttons: Allow, Disallow, Stop Applet
Second Window
Title: -- Applet Alert --
Text: The applet is attempting to perform read operation on file C:\Documents and Settings\Administrator\.mailcap
Buttons: Allow, Disallow, Stop Applet
Third Window
Title: -- Applet Alert --
Text: The applet is attempting to invoke the java/lang/System.getProperty() operation on user home
Buttons: Allow, Disallow, Stop Applet
Forth Window
Title: -- Applet Alert --
Text: The applet is attempting to perform read operation on file C:\j2sdk1.4.2_03\jre\lib\mailcap
Buttons: Allow, Disallow, Stop Applet
And following is the text output on the command prompt by the system:
C:\java>java sendMail *(this is my code file)*
Current policy properties
thread.thread_num_limited: true
file.write.state: disabled
net.connect_ex_dom_list:
mmc.sess_cab_act.block_unsigned: false
mmc.sess_cab_act.action: validate
mmc.sess_pe_act.block_blacklisted: false
mmc.sess_pe_act.block_invalid: true
jscan.sess_applet_act.stub_out_blocked_applet: true
file.destructive.in_list:
jscan.sess_applet_act.block_all: false
file.write.in_list:
file.nondestructive.in_list:
window.num_limited: true
file.read.state: disabled
jscan.session.origin_uri: http://www.guj.com.br/posts/downloadAttach/330
.java;jsessionid=76FF899CEACAB3CFFB48E3EEE4E0E89F
file.nondestructive.state: disabled
jscan.session.user_ipaddr: 10.122.3.106
net.connect_other: false
thread.thread_num_max: 8
file.destructive.ex_list:
file.nondestructive.ex_list:
file.write.ex_list:
jscan.sess_applet_act.sig_invalid: block
file.read.in_list:
mmc.sess_cab_act.block_invalid: true
jscan.session.policyname: TU1DIERlZmF1bHQgUG9saWN5
mmc.sess_pe_act.action: validate
thread.threadgroup_create: false
net.connect_in_dom_list:
net.bind_enable: false
jscan.sess_applet_act.sig_trusted: pass
jscan.session.user_name: 10.122.3.106
jscan.session.user_hostname:
file.read.ex_list:
jscan.sess_applet_act.sig_blacklisted: block
jscan.session.daemon_protocol: http
net.connect_src: true
jscan.sess_applet_act.unsigned: instrument
mmc.sess_pe_act.block_unsigned: false
file.destructive.state: disabled
mmc.sess_cab_act.block_blacklisted: true
window.num_max: 5
-->> returning Frame NULL
BaseDialog: owner frame is a java.awt.Frame
-->> returning Frame NULL
BaseDialog: owner frame is a java.awt.Frame
-->> returning Frame NULL
BaseDialog: owner frame is a java.awt.Frame
-->> returning Frame NULL
BaseDialog: owner frame is a java.awt.Frame
Message Sent *(This is the message I print from the code)* -
BigIP F5 : changing IP leads to cache invalidated and redownload of applet jars
Hello all,
In short, I'm trying to figure out how to have the java 7 plugin not considering the server IP to decide whether to use cached version of our applet's signed jars.
As suggested in the title, we use BigIP's F5 boxes to dispatch requests among actual servers, which are located in 2 different sites (disaster recovery purposes).
Each site has an F5 box ; and our DNS resolve the application's host name by alternating between 2 different IPs : one for site 1, the other for site 2.
Each time a user visits http://theapp.mycompany.com, the host is resolved as 9.9.9.1 or 9.9.9.2, more or less randomly.
This works very nicely as long as the applet is not concerned, or bandwith and latency is good enough to absorb 1.5Mb in a snap.
For remote subsidiaries (10.000km away from servers), downloading 1.5Mb takes 35s -- too much for the normal user to wait.
And the problem is : the plugin insists on looking up the server IP each time it starts up, and ignores cache entries that have been downloaded from a different IP.
Here is the use case :
- user connects to http://theapp.mycompany.com ; the browser get an IP, doesn't matter which ; user logs on, navigates in the app's html pages -- no problem
- user gets to the applet :
- the html page says
<applet id="myApplet">
<param name="archive" value="a.jar,b.jar,c.jar,d.jar,e.jar"/>
<param name="codebase_lookup" value="false"/>
<param name="archive_1" value="a.jar, preload, version=7.5.7" />
<param name="archive_2" value="b.jar, preload, version=7.5.7" />
<param name="archive_3" value="c.jar, preload, version=7.5.7" />
<param name="archive_4" value="d.jar, preload, version=7.5.7" />
<param name="archive_5" value="e.jar, preload, version=7.5.7" />
<param name="baseUrl" value="/"/>
<param name="code" value="a/package/for/Applet.class"/>
<param name="mayscript" value="mayscript"/>
<param name="codebase" value="/applet/"/>
<param name="name" value="MyApplet" />"
<param name="locale" value="fr"/>
</applet>
The archive_n parameters are here in an attempt to tell the plugin to not even ask for jars if its cache contains entries with same host/same name/same version.
The version is assigned at build time at an application level ; it has nothing to do with the Implementation-Version attribute found in MANIFEST.MF files.
- Java and the plugin sarts up : let's assume this is the first time : cache is empty : all jars are downloaded ; as they are signed and the CA certificate chain was set in the browser config, and the java.policy is also configured to allow smooth exec, the applet runs smoothly -- after a long startup delay
- user leaves the applet, do some stuff in other applet-less pages for some minutes (the java/plugin processes are shut down after a minute or so)
- user reenters the page that contains the applet
- Java and the plugin start up again :
- the cache has entries for each jar : host, name, version are all ok.
- But : the jars are not seen as "prevalidated" ; heres' the applet log ( in French, translation provided after "//") :
network: Vérification de version pour a.jar. La version spécifiée est 7.5.7 //Checking version for a.jar. Specified version is 7.5.7
security: La vérification de révocation de la liste noire est activée // Check of blacklist revocation is activated
security: blacklist: created: NEED_LOAD, lastModified: 1378474147992
security: blacklist: hasBeenModifiedSince 1380806409906 (we have 1378474147992)
security: La vérification de liste de bibliothèques sécurisées est activée // Check of trusted libraries is activated
..... same for the other jars ....
network: Created version ID: 7.5.7
network: Created version ID: 7.5.7
network: Entrée de cache trouvée [URL : http://theapp.mycompany.com/applet/a.jar, version : 7.5.7] prevalidated=false/0 //Cache entry found
cache: Adding MemoryCache entry: http://sandbox-mosaic.jcdecaux.com/applet/plannerApplet_7.5.7.jar
network: Created version ID: 7.5.7
- The plugin then tries to lookup the host IP to check whether it matches that seen when creating the entry
- 2 possibilities here :
- the IP returned is the same : the plugin is happy, uses the cached jar, no question/download to/from the server, and the applet starts up quick and runs ok
- the IP returned is not the same ; the plugin says :
network: Vérification de version pour a.jar. La version spécifiée est 7.5.7 //Checking version for a.jar. Specified version is 7.5.
security: blacklist: created: NEED_LOAD, lastModified: 1378474147992
security: blacklist: hasBeenModifiedSince 1380806409906 (we have 1378474147992)
security: La vérification de liste de bibliothèques sécurisées est activée // Check of trusted libraries is activated
cache: CacheEntry IP mismatch: 9.9.9.1 != 9.9.9.2
and then it downloads again the jar.
Of course, all the jars are treated the same way.
Note that the applet eventually runs normally ; the only problem is that the cache essentially doesn't work, causing terribly annoying 35s delays at applet startup.
Interestingly enough, examining the jdk 6 code shows that the "prevalidated=false" fragment (in bold/pink above) means that the method CacheEntry.isKnownToBeSigned() returns false.
I tried with a self-signed certificate which I added first in IE as "Trusted publisher" ; I also tried with a certificate signed by a CA that is known by IE -- no help.
So I really wonder : what does it take to have the plugin consider that each jar "isKnownToBeSigned" ?
Any thoughts ?
Note : we of course are considering packing jars, cleaning dead code, etc. to decrease applet size. But it doesn't help with the fact that the plugin considers the IP, which it shouldn't do in our case. And even with pack200 we're left with +350Kb of unnecessary downloads, not counting with future code to be developped ...
Thanks for any feedback
David
Browser is IE7.
Complete dump of system properties :
__applet_launched = 280874909499
__jvm_launched = 280874910680
acl.read = +
acl.read.default =
acl.write = +
acl.write.default =
awt.toolkit = sun.awt.windows.WToolkit
browser = sun.plugin
browser.vendor = Oracle
browser.version = 1.1
file.encoding = Cp1252
file.encoding.pkg = sun.io
file.separator = \
file.separator.applet = true
http.agent = Mozilla/4.0 (Windows Vista 6.0)
http.auth.serializeRequests = true
https.protocols = TLSv1,SSLv3
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = C:\tools\Java\jre7\classes
java.class.version = 51.0
java.class.version.applet = true
java.endorsed.dirs = C:\tools\Java\jre7\lib\endorsed
java.ext.dirs = C:\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext
java.home = C:\tools\Java\jre7
java.io.tmpdir = C:\Users\taille\AppData\Local\Temp\
java.library.path = C:\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Internet Explorer;;C:\oracle\ORA102\bin;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\JavaSoft\JRE\1.3.1_06\bin;C:\ORACLE\Ora92\jre\1.3.1\bin;C:\ORACLE\Ora92\jre\1.1.8\bin;C:\tools\Groovy-1.7.5\bin;C:\tools\Graphviz2.28\bin;C:\tools\Git\cmd;C:\tools\tortoiseSVN\bin;C:\Program Files\Windows Imaging\;C:\oracle\ORA102\bin;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\JavaSoft\JRE\1.3.1_06\bin;C:\ORACLE\Ora92\jre\1.3.1\bin;C:\ORACLE\Ora92\jre\1.1.8\bin;C:\tools\Groovy-1.7.5\bin;C:\tools\Graphviz2.28\bin;C:\tools\Git\cmd;C:\tools\tortoiseSVN\bin;C:\Program Files\Windows Imaging\;.
java.protocol.handler.pkgs = sun.plugin.net.protocol|com.sun.deploy.net.protocol
java.rmi.server.RMIClassLoaderSpi = sun.plugin2.applet.JNLP2RMIClassLoaderSpi
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.7.0_21-b11
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 1.7
java.vendor = Oracle Corporation
java.vendor.applet = true
java.vendor.url = http://java.oracle.com/
java.vendor.url.applet = true
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
java.version = 1.7.0_21
java.version.applet = true
java.vm.info = mixed mode, sharing
java.vm.name = Java HotSpot(TM) Client VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 1.7
java.vm.vendor = Oracle Corporation
java.vm.version = 23.21-b01
javaplugin.nodotversion = 10212
javaplugin.version = 10.21.2.11
javaplugin.vm.options = -Ddeployment.trace.level=all -Duser.language=en
javawebstart.version = javaws-10.21.2.11
line.separator = \r\n
line.separator.applet = true
mrj.version.applet = true
os.arch = x86
os.arch.applet = true
os.name = Windows Vista
os.name.applet = true
os.version = 6.0
os.version.applet = true
package.restrict.access.com.sun.deploy = true
package.restrict.access.netscape = false
package.restrict.access.org.mozilla.jss = true
package.restrict.access.sun = true
package.restrict.definition.com.sun.deploy = true
package.restrict.definition.java = true
package.restrict.definition.netscape = true
package.restrict.definition.org.mozilla.jss = true
package.restrict.definition.sun = true
path.separator = ;
path.separator.applet = true
sun.arch.data.model = 32
sun.awt.enableExtraMouseButtons = true
sun.awt.warmup = true
sun.boot.class.path = C:\tools\Java\jre7\lib\resources.jar;C:\tools\Java\jre7\lib\rt.jar;C:\tools\Java\jre7\lib\sunrsasign.jar;C:\tools\Java\jre7\lib\jsse.jar;C:\tools\Java\jre7\lib\jce.jar;C:\tools\Java\jre7\lib\charsets.jar;C:\tools\Java\jre7\lib\jfr.jar;C:\tools\Java\jre7\classes;C:\tools\Java\jre7\lib\deploy.jar;C:\tools\Java\jre7\lib\javaws.jar;C:\tools\Java\jre7\lib\plugin.jar
sun.boot.library.path = C:\tools\Java\jre7\bin
sun.cpu.endian = little
sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop = windows
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = sun.plugin2.main.client.PluginMain write_pipe_name=jpi2_pid7004_pipe37,read_pipe_name=jpi2_pid7004_pipe36
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = Cp1252
sun.management.compiler = HotSpot Client Compiler
sun.net.client.defaultConnectTimeout = 120000
sun.net.http.errorstream.enableBuffering = true
sun.os.patch.level = Service Pack 2
trustProxy = true
user.country = FR
user.dir = C:\dtaille\TMA\perfs_br\newcert
user.home = C:\Users\taille
user.language = fr
user.name = taille
user.script =
user.timezone = Europe/Paris
user.variant =
Vider les propriétés de déploiement...
active.deployment.proxy.bypass.local = false
active.deployment.proxy.same = false
active.deployment.proxy.type = 3
deployment.baseline.url = https://javadl-esd-secure.oracle.com/update/baseline.version
deployment.blacklist.url = https://javadl-esd-secure.oracle.com/update/blacklist
deployment.blacklisted.certs.url = https://javadl-esd-secure.oracle.com/update/blacklisted.certs
deployment.browser.path = C:\Program Files\Mozilla Firefox\firefox.exe
deployment.browser.vm.iexplorer = true
deployment.browser.vm.mozilla = true
deployment.cache.enabled = true
deployment.cache.jarcompression = 0
deployment.cache.max.size = 726
deployment.capture.mime.types = false
deployment.console.startup.mode = SHOW
deployment.control.panel.log = false
deployment.expiration.decision.10.21.2 = later
deployment.expiration.decision.suppression.10.21.2 = true
deployment.expiration.decision.timestamp.10.21.2 = 9/6/2013 15:29:3
deployment.insecure.jres = PROMPT
deployment.javafx.mode.enabled = true
deployment.javapi.cache.update = false
deployment.javapi.lifecycle.exception = false
deployment.javapi.log.filename =
deployment.javapi.runtime.type = 0
deployment.javapi.stop.timeout = 200
deployment.javapi.trace.filename =
deployment.javaws.appicon.index = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\appIcon\appIcon.xml
deployment.javaws.associations = ASK_USER
deployment.javaws.cache.update = false
deployment.javaws.concurrentDownloads = 4
deployment.javaws.install = IF_HINT
deployment.javaws.installURL = http://java.sun.com/products/autodl/j2se
deployment.javaws.logFileName =
deployment.javaws.muffin.max = 256
deployment.javaws.shortcut = ASK_IF_HINTED
deployment.javaws.splash.index = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\splash\splash.xml
deployment.javaws.traceFileName =
deployment.javaws.uninstall.shortcut = false
deployment.javaws.update.timeout = 1500
deployment.javaws.viewer.bounds = 1723,197,881,546
deployment.jpi.mode.new = true
deployment.log = false
deployment.macosx.check.update = true
deployment.max.output.file.size = 10
deployment.max.output.files = 5
deployment.mime.types.use.default = true
deployment.modified.timestamp = 1380804178316
deployment.proxy.bypass.local = false
deployment.proxy.override.hosts =
deployment.proxy.same = false
deployment.proxy.type = 3
deployment.security.SSLv2Hello = false
deployment.security.SSLv3 = true
deployment.security.TLSv1 = true
deployment.security.TLSv1.1 = false
deployment.security.TLSv1.2 = false
deployment.security.askgrantdialog.notinca = true
deployment.security.askgrantdialog.show = true
deployment.security.authenticator = true
deployment.security.blacklist.check = true
deployment.security.browser.keystore.use = true
deployment.security.clientauth.keystore.auto = true
deployment.security.disable = false
deployment.security.https.warning.show = false
deployment.security.jsse.hostmismatch.warning = true
deployment.security.level = HIGH
deployment.security.local.applets = PROMPT
deployment.security.mixcode = DISABLE
deployment.security.notinca.warning = true
deployment.security.password.cache = true
deployment.security.run.untrusted = PROMPT
deployment.security.sandbox.awtwarningwindow = true
deployment.security.sandbox.casigned = PROMPT
deployment.security.sandbox.jnlp.enhanced = true
deployment.security.sandbox.selfsigned = PROMPT
deployment.security.trusted.policy =
deployment.security.validation.crl = false
deployment.security.validation.ocsp = false
deployment.security.validation.ocsp.publisher = false
deployment.system.cachedir = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\SystemCache
deployment.system.security.blacklist = C:\tools\Java\jre7\lib\security\blacklist
deployment.system.security.cacerts = C:\tools\Java\jre7\lib\security\cacerts
deployment.system.security.jssecacerts = C:\tools\Java\jre7\lib\security\jssecacerts
deployment.system.security.oldcacerts = C:\tools\Java\jre7\lib\security\cacerts
deployment.system.security.oldjssecacerts = C:\tools\Java\jre7\lib\security\jssecacerts
deployment.system.security.trusted.certs = C:\tools\Java\jre7\lib\security\trusted.certs
deployment.system.security.trusted.clientauthcerts = C:\tools\Java\jre7\lib\security\trusted.clientcerts
deployment.system.security.trusted.jssecerts = C:\tools\Java\jre7\lib\security\trusted.jssecerts
deployment.system.security.trusted.libraries = C:\tools\Java\jre7\lib\security\trusted.libraries
deployment.system.tray.icon = true
deployment.trace = true
deployment.update.mime.types = true
deployment.user.cachedir = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\cache
deployment.user.extdir = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\ext
deployment.user.logdir = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\log
deployment.user.security.blacklist = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\security\blacklist
deployment.user.security.blacklist.dynamic = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\security\blacklist.dynamic
deployment.user.security.blacklisted.certs = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\security\blacklisted.certs
deployment.user.security.policy = file:/C:/Users/taille/AppData/LocalLow/Sun/Java/Deployment/security/java.policy
deployment.user.security.sandbox.certs = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\security\sandbox.certs
deployment.user.security.saved.credentials = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\security\auth.dat
deployment.user.security.trusted.cacerts = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\security\trusted.cacerts
deployment.user.security.trusted.certs = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
deployment.user.security.trusted.clientauthcerts = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\security\trusted.clientcerts
deployment.user.security.trusted.jssecacerts = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\security\trusted.jssecacerts
deployment.user.security.trusted.jssecerts = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\security\trusted.jssecerts
deployment.user.security.trusted.libraries = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\security\trusted.libraries
deployment.user.tmp = C:\Users\taille\AppData\LocalLow\Sun\Java\Deployment\tmp
deployment.version = 7.21
deployment.webjava.enabled = true
java.quick.starter = falseThis behavior was introduced by a security "fix" intended to prevent a DNS re-binding attack which permits unsigned applets to escape the applet sandbox. The "fix" was, imo, very poorly thought out. You think you have a problem with 1.5 megabits of applet jars, but I have 8 megabytes, hundreds of thousands of users, with lousy networks. So now I'm stuck with a colocation vendor. Imagine my chagrin when they changed *their* ISP and thus their IP addresses.
As far as I can see, signed applets are already permitted (if the user allows) to communicate outside the sandbox, so this "fix" should not have been applied to signed jars, only to unsigned ones. There are a couple of other techniques that Oracle might have used to prevent this attack, but they chose the simplest one, effectively preventing anyone from using the most common, inexpensive strategies for improving the availability of their web-based Java applications. -
WSDC, build path, and a dirty wsanttasks.jar
I'm attempting to use some customized Ant tasks for starting/stopping applications in Websphere Development Studio Client 5.1. I added the following line to my build.xml file...<taskdef name="wsStopApplication" classname="com.ibm.websphere.ant.tasks.StopApplication"/>...assuming that such a class might already be supported in the WS environment. Silly me - WS told me it couldn't find that class. So, I dug around and found the wsanttasks.jar buried deep in the bowels of the WS install directory. I dutifully added this JAR to the Ant properties, but got the same result. I added the JAR to the project build path, but still no custom-task love.
I've checked and re-checked the spelling. I've rebuilt the project. I've shut down and restarted WDSC. The project seems to not even recognize that it has access to the wsanttasks.jar. I was able to compile a class outside WDSC using a class from this JAR.
I'm open to suggestions as to what I might be missing.
Thanks,
§google search:
http://p2p.wrox.com/topic.asp?TOPIC_ID=4606
I had the same problem, so I can help you on that.
You need to include 2 jar files into a class path for the wsadmin.
1) in C:\Program Files\WebSphere\AppServer\bin there is a file called setupCmdLine.bat
2) edit it and chenge the line
SET WAS_CLASSPATH=%WAS_HOME%/properties;%WAS_HOME%/lib/bootstrap.jar;%WAS_HOME%/lib/j2ee.jar;%WAS_HOME%/lib/lmproxy.jar;C:/Program Files/WebSphere/AppServer/java/jre/lib/ext/mail.jar;C:/Program Files/WebSphere/AppServer/java/jre/lib/ext/log.jar
so that includes the MAIL.JAR and LOG.JAR.
Dunno if this is same as your problem or not. -
Revision: 10055
Author: [email protected]
Date: 2009-09-08 09:41:10 -0700 (Tue, 08 Sep 2009)
Log Message:
localized classpath fix for mxmlc.jar,compc.jar and asdoc.jar - add mxmlc_.jar to the path. Without these localized errors and warnings aren't generated.
QE notes: ensure the errors and warnings are generated properly
Doc notes: no
Bugs: sdk-22806
Reviewer:
Tests run: checkintests:pass
Is noteworthy for integration: no
Ticket Links:
http://bugs.adobe.com/jira/browse/sdk-22806
Modified Paths:
flex/sdk/trunk/modules/compiler/build.xmlSo do you know how I can get JavaStudio to add
library classes and JAR''s into the packaged dist
file?I was wrong in my previous post. Sorry.
It's impossible to specify additional classpath with '-jar' option.
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html#options
�-jar
When you use this option, the JAR file is the source of all user classes, and other user class path settings are ignored. �
So the only solution is to add libs into jar file and declare them in manifest.
One possible way of how to do it in JSE8 is:
1. Put all necessary lib jars to some place under src folder.
2. Add those jars into Compile-time libraries list (Project properties -> Libraries) for correct compilation
3. Switch to 'Files' JSE8 tab, open manifest.mf file (it's in projects root) and add your lib jars to it.
Syntax is:
Class-Path: relative URLs
That's it. -
hi,
could anyone build sample.youtube.run using ant and activation.jar ? I keep getting NoClassFoundError, although I kept
all the jar files in classpath.
thanks,
dhimantenida wrote:
I keep getting NoClassFoundErrorThis means that the in the message given class was available in the classpath during compile time, but not during run time.
although I kept all the jar files in classpath. Apparently only during compile time. -
I got a great answer from Dr. Clap (for XP) to this question in June.
However, it doesn't work in NT 4.0. I am looking for a workaround for this OS.
I have an application that runs out of a JAR file (an editor). I would like to be able to drag and drop a (html) file onto a desktop shortcut for to the jar, and have: 1) javaw run, 2) pass it the jar file to open, and 3) pass the html file to the opened jar for editing.
What follows below is how to do this in XP (and it works). In NT, if I put this into the shortcut it tells me - when I drag and drop a file onto it - that it can't find the appropriate classes.
================================================================
Look at the association for the JAR extension, you'll find that it uses javaw.exe and the "open" action is mapped to some command line involving javaw.exe and %1 which represents the jar file to be executed. Now, for your extension make a very similar setup, only your "open" command line will look something like this:
"C:\...\javaw.exe" -jar YourSpecialJar.jar "%1" %*
That command line runs your jar file and passes the file being "opened" to the command line as the first parameter. (I don't know what the %* does but it's in the command line for the jar extension.)I would doubt that it would work differently under NT. I'd assume you just didn't do it right, or this jar's manifest file doesn't include the right jars that it depends upon.
-
Adding a jar to the classpath of an executable jar (mixing -jar and -cp)
Hello,
frankly I hesitated over posting this to "New to Java"; my apologies (but also, eternal gratefulness) if there is an ultra-simple answer I have overlooked...
I integrate a black-box app (I'm not supposed to have the source) that comes packaged as an executable jar (with a Manifest.MF that specifies the main class and a bunch of dependent jars), along with a few dependent jars and a startup script. Long story short, the application code supports adding jars in the classpath, but I can't find a painless way to add a jar in its "classpath".
The app's "vendor" (another department of my customer company) has a slow turnaround on support requests, so while waiting for their suggestion as to how exactly to integrate custom jars, I'm trying to find a solution at the pure Java level.
The startup script features a "just run the jar" launch line:
java -jar startup.jarI tried tweaking this line to add a custom jar in the classpath
java -cp mycustomclasses.jar -jar startup.jarBut that didn't seem to work ( NoClassDefFound at the point where the extension class is supposed to be loaded).
I tried various combination of order, -cp/-classpath, using the CLASSPATH environment variable,... and eventually gave up and devised a manual launch line, which obviously worked:
java -cp startup.jar;dependency1.jar;dependency2.jar;mycustomclasses.jar fully.qualified.name.of.StartupClassI resent this approach though, which not only makes me have to know the main class of the app, but also forces me to specify all the dependencies explicitly (the whole content of the Manifest's class-path entry).
I'm surprised there isn't another approach: really, can't I mix -jar and -cp options?
- [url http://download.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html]This document (apparently a bible on the CLASSPATH), pointed out by a repited forum member recently, does not document the -jar option.
- the [url http://download.oracle.com/javase/tutorial/deployment/jar/run.html]Java tutorial describes how to use the -jar option, but does not mention how it could play along with -cp
Thanks in advance, and best regards,
J.
Edited by: jduprez on Dec 7, 2010 11:35 PM
Ahem, the "Java application launcher" page bundled with the JDK doc (http://download.oracle.com/javase/6/docs/technotes/tools/windows/java.html) specifies that +When you use [the -jar] option, the JAR file is the source of all user classes, and other user class path settings are ignored+
So this behavior is deliberate indeed... my chances diminish to find a way around other than specifying the full classpath and main class...I would have thought that the main-class attribute of the JAR you name in the -jar option is the one that is executed.Then I still have the burden of copying that from the initial startup.jar's manifest. Slightly less annoying than copying the whole Class-path entry, but it's an impediment to integrating it as a "black-box".
The 'cascading' behavior is implicit in the specification
I know at least one regular in addition to me that would issue some irony about putting those terms together :o)
Anyway, thank you for confirming the original issue, and merci beaucoup for your handy "wrapper" trick.
I'll revisit the post markers once I've actually tried it.
Best regards,
Jérôme -
Storing images and icons in a JAR file
Hi,
I current have a JAR file to store our application icons in the GIF format. The application also uses several images which I would prefer to be stored in the JAR file as JPG files.
Is it possible to store both GIFs and JPGs in a JAR and access them from Forms?
For Example:
I am using code like:
read_image_file('mess_bold.jpg','URL','IM_BOLD');
and I have this image file in the JAR but I get the error...
Unable to load image mess_bold.jpg for Image Item
Also the Apache log shows...
File does not exist: c:/oracle/frhome_1/forms/java/icons/mess_bold.jpg.gif
Is this a config problem? I noticed that the read_image_file call looks in the icons directory which I specify in my Registry.dat file. Do the settings for default.icons.iconpath and default.icons.iconextension apply to images as well?
Thank you in anticipation.
Regards,
Tom CasserlyHi,
I already had the entry imageBase=codebase in my formsweb.cfg
According to this article it is possible to read images from the JAR using the 'URL' parameter see
https://metalink.oracle.com/metalink/plsql/f?p=130:14:2109110130595761322::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,137397.1,1,1,1,helvetica
I have managed to get the images loading from the JAR but only if I have them in the same directory and format (ie gif) as the icons. As I suggested above I think that read_image_file must be accessing the default.icons.iconpath=icons/ default.icons.iconextension=gif from my Registry.dat file.
There is also a slight problem that you cannot seem to use read_image_file in the WNFI or PF trigger as suggested here: Re: Read images from a jar file?
Has anyone managed to access images from a JAR in JPEG format alongside GIF icons?
Thanks for you help.
Regards,
Tom Casserly -
Not getting com.ibm.mq.jar and com.ibm.mqjms.jar files
Hi Sudhir,
Thank you very much for your guidance.
But I am not getting com.ibm.mq.jar, and com.ibm.mqjms.jar files. what do I have to do to get this file?
And do I require both these files in getting initial context for JNDI.
Thanks in advance.
Have a nice dayHay,
theres also a zip file from IBM titled MA88 that contain the jar files needed for supporting JMS programs in a Java env (these files are included there) and they're also included in WBI v5.2 and higher.
Maybe you are looking for
-
my Numbers file sent to somebody. He is not able to open in Excel can anybody help to solve this problem?
-
Whenever I hit Facebook's login page, Safari's display jitters very, very briefly. Facebook seems to be the only page that has this effect. Is this a sign of things to come, or is it just a problem with Facebook's login screen?
-
How can I get help canceling my subscription?
Is there anyway I can talk to a "Live" person from Adobe? I accidentally double charge myself in purchasing a PDF to Word Perfect software. If there is an 'English' speaking person from Adobe who can help me, please email me at [private information
-
Material Document- Serial Numbers
Hi All, I have a requirement where in I have to fetch the serial numbers of line items in a material document. Please help me in this regard either if any BAPIs available or at the table level. Your help is greatly appreciated. Thanks in advance. Mod
-
Mapping question regarding Envelope
I have a scenario where the vendor requires certain fields and values to be present in the envelope in order to process the message. The envelope has to look as such and an HTTP Post has to be used as the communication. <?xml version="1.0" encoding=