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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

Similar Messages

  • Sun Java Studio Enterprise 8.1

    I have an application developed with Forte For Java. Since Forte for java is no longer supported by Sun, I'd like to create a new project with Sun Java Studio Enterprise and migrate the existing java files into the new project so that I can debug and compile with Sun Java Studio Enterprise. Can anybody give some suggestions on how to do this? Or, could anybody tell me where to find a tutorial about Sun Java Studio Enterprise? I found a tutorial here: http://developers.sun.com/prodtech/javatools/jsenterprise/learning/tutorials/index.jsp , but it is only for creating a new project from scratch with UML modeling feature. This doesn't seem to be very helpful for my situation. Thank you!

    I installed Sun Java Studio but I couldn't find the option allowing me to create a new project from scratch. In New Project dialog, there are four options: Standard, UML, Web, Samples. When I select Standard, the description says "Imports an existing Java application into a free-form IDE project. A free-form project uses your existing Ant build script to run, compile, and debug your project." I know I can use the option UML to create a new project with assistance of UML model diagram, but this is not what I want.
    Does anybody have suggestions on this? Thanks in advance.

  • Import DukesBank in Java Studio Enterprise

    hi
    I'm using the Sun Java Studio Enterprise and I'm not able to import the Duke's bank application from the J2EE tutorial.
    I like to compile and deploy the application to the Sun Application Server 8 afterward.
    But i cannot connet to the EJB's.
    Ideas are welcome!
    Thanks

    hi
    I created a new enterprise project with an EJB and a WEB module. Then i copied the source files from the tutorial in to the project structure inclusive the ejb*.xml's.
    Added the EJB and th WEB module to the main project.
    Now i cannot deploy the main project to the server:
    [#|2006-04-20T15:37:25.015+0200|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=12;|DPL5109: EJBC - START of EJBC for [htabankapp]|#]
    [#|2006-04-20T15:37:25.046+0200|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=12;|RAR6017 : Failed to get connection pool object via JNDI lookup : null|#]
    [#|2006-04-20T15:37:25.046+0200|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=12;|RAR7010: Pool not reachable. |#]
    [#|2006-04-20T15:37:25.046+0200|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=12;|RAR5114 : Error allocating connection : [This pool is not registered with the runtime environment]|#]
    [#|2006-04-20T15:37:30.671+0200|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=12;|Processing beans ...|#]
    [#|2006-04-20T15:37:30.671+0200|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=12;|DPL5110: EJBC - END of EJBC for [htabankapp]|#]
    [#|2006-04-20T15:37:31.640+0200|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=12;|Total Deployment Time: 8656 msec, Total EJB Compiler Module Time: 5656 msec, Portion spent EJB Compiling: 65%
    Breakdown of EJBC Module Time: Total Time for EJBC: 5656 msec, CMP Generation: 485 msec (8%), Java Compilation: 5171 msec (91%), RMI Compilation: 0 msec (0%), JAX-RPC Generation: 0 msec (0%),
    |#]
    [#|2006-04-20T15:37:31.640+0200|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=12;|Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException: No local string defined -- Inconsistent Module State
         at com.sun.enterprise.security.SecurityUtil.linkPolicyFile(SecurityUtil.java:321)
         at com.sun.enterprise.deployment.backend.AppDeployerBase.generatePolicy(AppDeployerBase.java:377)
         at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:108)
         at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146)
         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.deploy(PEDeploymentService.java:188)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:520)
         at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:143)
         at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:172)
    |#]

  • How to change the port number for deployment in JAVA Studio Enterprise 8?

    Hi!
    Yesterday i downloaded this new sun java studio enterprise and found it mind blowing.
    Now i find that all my previous applications which were running on port 8080 can't be run on sun java studio enterprise(sjse) 8.
    Can anyone tell me how to change the port number on this software so i won't have to edit all my applications?

    http://docs.sun.com/source/819-0080/install.html
    In the Admin Configuration page (or at the command line), enter the following:
    Admin User Name�Name of the user who administers the server
    Password�Admin user�s password to access the Admin Server (8-character minimum)
    Admin Port�Administration port number for initial server instance
    HTTP Port�Port number to access the default server instance
    HTTPS Port�Secure port number to access the default server instance

  • Redhat 9 and Java studio enterprise 7

    Did anybody install Java Studio Enterprise 7 with sun application server 7 on Red Hat 9.0 Linux.
    If so do I need to set some special parameters in the environment ?
    Since I tried, but became unsuccessful.
    Thank you in advance.

    Truly speaking Java Studio Enterprise 7 is supported on the following platforms:
    - Microsoft Windows XP Professional SP1a
    - Microsoft Windows 2000 Professional SP4
    - Solaris� 9 OS Update 7 (x86)
    - Solaris� 8 OS Update 7 (UltraSPARC� III)
    - Solaris� 9 OS Update 7 (UltraSPARC� III)

  • XWS-Security and Sun Java Studio Enterprise

    Hi,
    Does anyone knows whether XWS-Security API is integrated into Sun Java Studio Enterprise?
    I can't find the information anywhere in the java site. If there happens to be one, could you let me know about it?
    Thanks in advance :)

    XWS-Security is not integrated with Sun Java Studio Enterprise. However, if you would like to implement message level security in a web service in the Java Studion Enterprise environment, you may find this article useful:
    http://developers.sun.com/prodtech/javatools/jsenterprise/downloads/ea/jse8/reference/techart/security.html
    Rico

  • Sun Java Studio Enterprise 8 Application Server

    I'm trying to get the JSE8 Application Server to run as a service. I've read other forum articles and none of them really answered my question. So, I tried to implement the JSE8 server via the JavaServiceWrapper approach (and, I was successful). The only problem is that when I log on and then log off the computer running the application server, the application server stops.
    So, I have several questions. One is, "why does the application server stop when it detects a user logoff, especially if the user it was started under wasn't even the one logging off?"
    The second question is where is the documentation mentioned in other e-mails regarding how to set up the JSE8 server as a service per Sun's guidelines (I can't find it anywhere; a web link would be most helpful here).
    Finally, is Sun planning on changing this so the JSE8 application server runs as a "real" service to make deployment much easier in a Windows environment (like version 7 did)?

    From what I can tell about the Java EE 5 SDK beta is that it still requires the SC.EXE method of installating a windows service. I got the "JavaServiceWrapper" method to work (well, not perfectly, but it works thanks to the hint provided by the first respondent (using the -Xrs switch in the JVM on the Application server). Then, I created a JSE8Server.conf file, as required by the JavaServiceWrapper (from http://wrapper.tanukisoftware.org). Here's the conf file as I wrote it (note that this is all hard-coded based on install directories, etc.) But, it does allow you to point to a specific JVM (see wrapper.java.command line) and does allow anyone to log on and off the Windows system without shutting down the application server (domain).
    The only problem with this is that that java service basically runs to start the service and then dies. The application server is then spawned on new disassociated Process IDs; so, without writing some more code to periodically ask the application server if he's "up", there is no automatic restart capability...at least from the service's span of control.
    # Wrapper Properties
    # Java Application
    wrapper.java.command=c:\j2sdk1.5.0_04\bin\java.exe
    # Java Main class. This class must implement the WrapperListener interface
    # or guarantee that the WrapperManager class is initialized. Helper
    # classes are provided to do this for you. See the Integration section
    # of the documentation for details.
    wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
    # Java Classpath (include wrapper.jar) Add class path elements as
    # needed starting from 1. Note that this list of classes should match
    # the System environment CLASSPATH on the machine to which the java
    # application is deployed.
    wrapper.java.classpath.1=D:\JavaServiceWrapper\lib\wrapper.jar
    wrapper.java.classpath.2=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\dom.jar
    wrapper.java.classpath.3=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\xalan.jar
    wrapper.java.classpath.4=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\xercesImpl.jar
    wrapper.java.classpath.5=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\appserv-rt.jar
    wrapper.java.classpath.6=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\appserv-ext.jar
    wrapper.java.classpath.7=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\j2ee.jar
    wrapper.java.classpath.8=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\admin-cli.jar
    wrapper.java.classpath.9=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\appserv-admin.jar
    wrapper.java.classpath.10=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\commons-launcher.jar
    wrapper.java.classpath.11=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\jaxr-impl.jar
    wrapper.java.classpath.12=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\relaxngDatatype.jar
    wrapper.java.classpath.13=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\xsdlib.jar
    wrapper.java.classpath.14=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\appserv-admin.jar
    wrapper.java.classpath.15=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\activation.jar
    wrapper.java.classpath.16=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\commons-logging.jar
    wrapper.java.classpath.17=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\mail.jar
    wrapper.java.classpath.18=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\appserv-env.jar
    wrapper.java.classpath.19=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\optional.jar
    wrapper.java.classpath.20=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib
    # Java Library Path (location of Wrapper.DLL or libwrapper.so)
    wrapper.java.library.path.1=D:\JavaServiceWrapper\lib
    wrapper.java.library.path.2=D:\Sun\jstudio_ent8\AppServ8.1UR2\bin
    # Java Additional Parameters
    wrapper.java.additional.1=-Dcom.sun.aas.instanceRoot=D:\Sun\jstudio_ent8\AppServ8.1UR2
    wrapper.java.additional.2=-Dcom.sun.aas.instanceName=server
    wrapper.java.additional.3=-Djava.library.path=D:\Sun\jstudio_ent8\AppServ8.1UR2\bin
    wrapper.java.additional.4=-Dcom.sun.aas.configRoot=D:\Sun\jstudio_ent8\AppServ8.1UR2\config
    wrapper.java.additional.5=-Djava.endorsed.dirs=D:\Sun\jstudio_ent8\AppServ8.1UR2\lib\endorsed
    wrapper.java.additional.6=-Dcom.sun.aas.processLauncher="SE"
    # Initial Java Heap Size (in MB)
    wrapper.java.initmemory=64
    # Maximum Java Heap Size (in MB)
    wrapper.java.maxmemory=1024
    # Application parameters. Add parameters as needed starting from 1
    wrapper.app.parameter.1=com.sun.enterprise.cli.framework.CLIMain
    wrapper.app.parameter.2=start-domain
    wrapper.app.parameter.3=domain1
    # Wrapper Logging Properties
    # Format of output for the console. (See docs for formats)
    wrapper.console.format=PM
    # Log Level for console output. (See docs for log levels)
    wrapper.console.loglevel=INFO
    # Log file to use for wrapper output logging.
    wrapper.logfile=D:\JavaServiceWrapper\logs\JSE8Server.log
    # Format of output for the log file. (See docs for formats)
    wrapper.logfile.format=LPTM
    # Log Level for log file output. (See docs for log levels)
    wrapper.logfile.loglevel=INFO
    # Maximum size that the log file will be allowed to grow to before
    # the log is rolled. Size is specified in bytes. The default value
    # of 0, disables log rolling. May abbreviate with the 'k' (kb) or
    # 'm' (mb) suffix. For example: 10m = 10 megabytes.
    wrapper.logfile.maxsize=32m     
    # Maximum number of rolled log files which will be allowed before old
    # files are deleted. The default value of 0 implies no limit.
    wrapper.logfile.maxfiles=8
    # Log Level for sys\event log output. (See docs for log levels)
    wrapper.syslog.loglevel=NONE
    # Wrapper Windows Properties
    # Title to use when running as a console
    wrapper.console.title=JSE8Server
    # Wrapper Windows NT\2000\XP Service Properties
    # WARNING - Do not modify any of these properties when an application
    # using this configuration file has been installed as a service.
    # Please uninstall the service before modifying this section. The
    # service can then be reinstalled.
    # Name of the service
    wrapper.ntservice.name=JSE8Server
    # Display name of the service
    wrapper.ntservice.displayname=JSE8Server
    # Description of the service
    wrapper.ntservice.description=Java Studio Enterprise 8 Applicaton Server
    # Service dependencies. Add dependencies as needed starting from 1
    wrapper.ntservice.dependency.1=
    # Mode in which the service is installed. AUTO_START or DEMAND_START
    wrapper.ntservice.starttype=AUTO_START
    # Should a console window appear?
    wrapper.ntservice.console=false
    # Can the service to interact with the desktop?
    wrapper.ntservice.interactive=false
    # The priority of the service in Windows (LOW, NORMAL, HIGH, REALTIME)
    wrapper.ntservice.process_priority=NORMAL

  • 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.

  • Problem deploying war created in Sun Java Studio Enterprise 8

    I have, with some help from this forum, converted a portlet application from the Sun Java Studio Enterprise 7 environment to the Sun Java
    Studio Enterprise 8 environment. This portlet application runs in SJSE 8 now but fails when I pdeploy it to the portal server (Portal Server 6
    2005 Q1). The old war created from SJSE 6 does work. The code is identical. The war files are slightly different.
    On deployment I get:
    [DEBUG] Getting Jar File from war...
    [DEBUG] Getting Portlet DD as Stream...
    [DEBUG] Creating DPProviders...
    [DEBUG] Updating the Portlet Application...
    [DEBUG] Adding Providers to DP...
    [DEBUG] Adding provider: provider=__Portlet__timetableEnt8.Timetable
    [DEBUG] Creating DPProvider...
    [DEBUG] Checking for duplicate name: name=__Portlet__timetableEnt8.Timetable
    [DEBUG] Validating modified DP doc...
    [DEBUG] Storing the DP...
    Done Updating Display Profile! Deploying War File to Web Container...
    SUCCESS.But in the logs I see:
    [#|2006-04-04T13:09:58.112-0400|SEVERE|sun-appserver-ee8.1|javax.enterprise.system.container.web|_ThreadID=10;|WebModule
    [/portlet]Error configuring application listener of class
    com.sun.portal.container.portlet.impl.PortletContainerContextListenerImpl
    java.lang.ClassNotFoundException: com.sun.portal.container.portlet.impl.PortletContainerContextListenerImpl
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1447)
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1228)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3958)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4525)
            at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
            at org.apache.catalina.core.StandardHost.start(StandardHost.java:833)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
            at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:483)
            at org.apache.catalina.startup.Embedded.start(Embedded.java:894)
            at com.sun.enterprise.web.WebContainer.start(WebContainer.java:688)
            at com.sun.enterprise.web.HttpServiceWebContainer.startInstance(HttpServiceWebContainer.java:889)
            at com.sun.enterprise.web.HttpServiceWebContainerLifecycle.onStartup(HttpServiceWebContainerLifecycle.java:50)
            at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
            at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
            at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]
    [#|2006-04-04T13:09:58.114-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
    Skipped installing application listeners due to previous error(s)|#]
    [#|2006-04-04T13:09:58.114-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
    Error listenerStart|#]
    [#|2006-04-04T13:09:58.115-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
    Context startup failed due to previous errors|#]When I look in the create "New Portlet Channel..." in the am console my application appears in the list but when I create a channel based on it, the whole desktop crashes with this error:
    [#|2006-04-03T11:39:41.699-0400|SEVERE|sun-appserver-ee8.1|javax.enterprise.system.container.web|_ThreadID=16;|
    StandardWrapperValve[desktopServlet]: Servlet.service() for servlet desktopServlet threw exception
    java.lang.IllegalStateException: getWriter() has already been called for this response
         at org.apache.coyote.tomcat5.CoyoteResponse.getOutputStream(CoyoteResponse.java:588)
         at org.apache.coyote.tomcat5.CoyoteResponseFacade.getOutputStream(CoyoteResponseFacade.java:166)
         at com.sun.portal.desktop.DesktopServlet.getWriter(DesktopServlet.java:444)
         at com.sun.portal.desktop.DesktopServlet.service(DesktopServlet.java:328)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.GeneratedMethodAccessor62.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.ContainerBase.invoke(ContainerBase.java:933)
         at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:221)
         at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2072)
    |#]When I remove my custom channel the desktop renders normally.
    As I mentioned before, the war created with 7 did not cause this and the application behaved normally.
    Any insight would be appreciated.
    I am going to look at the diff between the two wars.
    Thanks,
    Allan

    I have the same problem, how do yuo resolve that?
    Edited by: 864937 on Jun 9, 2011 1:43 PM

  • Java Studio Enterprise 7 - pooched

    This is kinda long. But I am sure you will find my troubles amusing. This is the story of a poor soul (me) stuck in the grasp of the evil studio. Read on!
    I have been using jse7 for about 4 months now. It was doing fine until a week ago. Now I have a bunch of problems that I cannot seem to resolve. I do not know if they are related or are separate problems. Here is what happened and what I have done to try and fix it.
    First, I was developing and application that needed JavaMail. I created a command line test app that worked fine. But ,when I tried to integrate JavaMail with my j2ee app in java studio, I kept getting all kinds of exceptions. It appeared to be a classpath issue with mail.jar and activation.jar. Somehow the version I compiled the app with was not the version getting deployed. Something like that.
    Here starts the problem. I went out to java.sun.com and got the latest mail.jar and activation.jar. I tried mounting the jars in studio. That did not work. So I replaced all the activation and mail jars I could find within java studio's dir. Ouch! I later regretted doing that...
    Java Studio promply fell over and died telling me the new jars were not valid jars for studio. I tried to replace the original jars. That allowed studio to load. But now studio will not recognize the modules and applications I have built. The code is there. But instead of getting an icon for each type, I get a little white square (like studio is telling me it has no idea what it is). I cannot deploy or anything. And my application server is missing on the runtime tab. I don't know how to add it. So now I realize I am pooched. I have somehow screwed up studio.
    So I uninstalled studio, thinking that I will beat this thing. I have had to do this before. I would have to track down and add all the jars I was using. I would have to reconfigure the connection pools, etc. I was not too happy about this, but that is life. I was going to beat this thing.
    Well, this time when I reinstalled it, everything was still there, all mounted directories including my CVS code, jar files, and connection configurations. Studio still can't recognize apps and modules and my app server is missing on the runtime tab.
    What is going on? Is there an easier fix for this? If not, how to I completely uninstall studio? I am really stuck. I can't figure out how to uninstall studio. And what I do have does not work. At this point I feel my only option is to reinstall windows. But that sounds bad. I would rather fix it.
    Then even if I do get it back, I am still stuck with trying to get JavaMail to work...
    What do you think?

    The J2EE platform requires specific versions of libraries to be supported by the application server (which are part of the default classpath, loaded ahead of the users classes). This includes things like Java mail, JMS and others. JSE 7 provides by default the required API's. JSE 8 is slightly different as the required jar files are supplied by the target application server. In general, updating any of the set of jars will require server configuration as the class loading strategy used by application servers is complex (you might find the following article interesting http://developers.sun.com/prodtech/javatools/jsenterprise/reference/techart/jse7/classloading-pkg.html).
    If you really must update the versions of a library in JSE 7, you might try reordering the classpath (some of the jar files which you replaced may have been required for the IDE itself, so changing the jars may have caused internal exceptions), in the explorer activate the context menu and select the customize classpath option. This will show you the current classpath and you can replace api's (in most cases) by mounting and reorder the necessary jars (same capability as the java environment provides).

  • Error In Java Studio Enterprise 8 on creating EJB

    While creating an EJB in Java Studio Enterprise 8 inan EJB Project, I get a 'Stream Closed' Error on clicking 'Finish' (see the image link). Why is this so? I can't proceed further.
    http://img301.imageshack.us/img301/7348/17xf.png

    I've restarted the IDE, restarted my PC, but to no avail.
    To see if it was a PC specific issue, I tried this on both Win2000 SP4 and Win XP Professional. Both seem to be giving me the same problem. And yes, my project is located on my hard drive. It's a single user configuration.
    I cannot even start a single EJB project. Is there any workaround? Why does this happen?

  • Error while installing Java Studio Enterprise

    Hey folks,
         I have downloaded SUN Java studio enterprise 90-day trial version (for windows). After starting installation, I got the install wizard. The three system requirements namely available disk space, Installed memory and Operating System patches have been checked successfully by the install wizard and the status is ok. System Ready for installation message has been displayed. After configuration settings, I got the �Ready to install� screen. I have hit the Start Installation button.
    After few minutes, I got the following error:
    �Installation of J2SDK 1.4.2_05 was unsuccessful. Please consult the release notes for possible causes.�
    Help me folks.
    Thanks in advance.

    Try to download and install J2SE1.4.2 before studio installation.
    http://java.sun.com/j2se/1.4.2/download.html

  • Need Help With NetBeans (Java Studio Enterprise 8)'s code generation

    Hi!
    I am using Java Studio Enterprise 8 with NetBeans 4.1 IDE bundled together with it. When trying to create GUI out from NetBeans Form Designer, I don't like the way it generates the code. When I try to use a JTextField, it uses "Fully Qualifed Class Names" (e.g: javax.swing.JTextField) on the code. How do I set NetBeans not to use it but rather use only the class name and generate import lines on top of the code? Also, how do I set it up that it will generate the variable declarations (which is on the uneditable blue portion of the code) on top rather than the default which is placed at the bottom of the class code body. I have tried tweaking the Options menu of this IDE but haven't got any luck...
    Hope you could help, and thanks in advance!

    To address the location of the var decl codegen section (or any codegen location issues), there is a workaround, admittedly, it is a bit tedious.
    Once the form code is generated, as Kris mentioned, open the class in an external editor so that you can edit the generated code.
    Then cut the entire var declaration section along with the begin/end gen-code markers and paste it to the section of the file you desire.
    When you add more components to your form, the codegen will find this section wherever it is and add to it.
    Alternatively, you could just move the non-protected code around the protected within the NB editor, but you would not be able to rearrange the order of the actual code-genned sections.
    craig

  • Code generation in Sun Java Studio enterprise edition 7.0

    I went thru the product tour of Java studio enterpise edition 7.0
    http://developers.sun.com/prodtech/javatools/jsenterprise/reference/presentations/launch_jse7_overview.html
    It says that it will generate code from UML documentation. After that can we use drag and drop feature of studio.
    Thanks
    das

    Please review UML Modeling in Sun Java Studio Enterprise Webinar's materials to get more information about it:
    http://developers.sun.com/prodtech/javatools/jsenterprise/reference/presentations/uml.html

  • Can't get applet working in Sun Java Studio Enterprise 8

    Hi!
    I'm just learning Sun Java Studio Enterprise 8, and I'm trying to develop and test my first applet within the IDE.
    I have code from a Core Java book that creates a simple applet with buttons and a picture.
    I want to test the applet using the IDE's applet viewer, and then test it through a browser.
    I've followed the instructions I can find in the IDE, but keep getting an error... Class Not Found.
    Does anyone have a simple applet that works within the IDE and instructions for creating and testing an applet within the IDE?
    I know there's sample applet code, but I need to specifically learn how to develop and deploy it within the IDE.
    Thanks.
    Michael O'Neal
    Houston TX USA

    Hi! Thanks for the reply!
    Sorry for the delay in responding here... this is just a "free time" project for me while I"m at work.
    Based on your comment, I've downloaded the "Sun Java Studio Creator 2" IDE, since that sounds like it might be more suited to simple things like applets.
    I'll work with that and I'll post further replies to this thread if I have any questions.
    Thanks for your assistance!

Maybe you are looking for