Install problem olite NoClassDefFoundError: javax/activation/DataSource
Hello,
I ran into an installation problem with the Oracle BPEL PM server. Though the installation completed successfully during startup of the server the following error occurs (part of log, complete log follows):
XXXXXXXXXXXXXXX
<2004-12-11 16:22:45,959> <ERROR> <default.collaxa.cube> <ServerManager::handleInitException> Error while initializing java class "javax/activation/DataSource".
Java class "javax/activation/DataSource" cannot be found. Check if class "javax
/activation/DataSource" package is in your classpath.
<2004-12-11 16:22:45,959> <ERROR> <default.collaxa.cube> <ServerManager::handleInitException>
Failed to load OraBPEL Process "default" domain because:
javax/activation/DataSource
<ServerManager::loadAllDomains>
ORABPEL START-UP ERROR!!!!!
XXXXXXXXXXXXXXXXXXX
It seems to happen because of the following exception:
XXXXXXXXXXXXXXXXXXX
java.lang.NoClassDefFoundError: javax/activation/DataSource
XXXXXXXXXXXXXXXXXXX
On another WinXP-System everything is fine.
I already had a default Oracle Lite Installation on my machine through Mobile Development Kit when installing BPEL PM Server. So I think there is a conflict between the two OLite DB... (Unfortunately I really need the first installation of OLite).
When I tried to reach the bpel-OLite DB through msql everything is fine. I can address the orapbel schema either with the ODBC-DSN syntax or the syntax which uses the olsv2040 adaptor service.
I checked ODBC.ini, ODBCinst.ini and polite.ini - they are configured as mentioned in another forum thread.
The classpath seems to be correct as shown by the log (following). The class javax/activation/DataSource is in orapbel.jar - this archive is in the classpath. Perhaps the signature of the executed method doesn't fit with two concurrent olite DB on the system...
Does somebody has an idea what's wrong with my configuration?
I appreciate any suggestion.
Thank you very much!
Florian Werner
University Tuebingen, Germany
STARTUP LOG OF BPEL SERVER:
04/12/11 16:22:35 Application default (default) initialized...
04/12/11 16:22:35 Binding EJB CubeEngineBean to ejb/collaxa/system/CubeEngineBea
n...
04/12/11 16:22:35 Binding EJB DispatcherBean to ejb/collaxa/system/DispatcherBea
n...
04/12/11 16:22:35 Binding EJB InvokeSenderBean to ejb/collaxa/system/InvokeSende
rBean...
04/12/11 16:22:35 Binding EJB ServerBean to ejb/collaxa/system/ServerBean...
04/12/11 16:22:35 Binding EJB DeliveryBean to ejb/collaxa/system/DeliveryBean...
04/12/11 16:22:35 Binding EJB MessageBean to ejb/collaxa/system/MessageBean...
04/12/11 16:22:35 Binding EJB InstanceKeyGenerator to ejb/collaxa/system/Instanc
eKeyGenerator...
04/12/11 16:22:35 Binding EJB DomainManagerBean to ejb/collaxa/system/DomainMana
gerBean...
04/12/11 16:22:35 Binding EJB FinderBean to ejb/collaxa/system/FinderBean...
04/12/11 16:22:35 Binding EJB ProcessManagerBean to ejb/collaxa/system/ProcessMa
nagerBean...
04/12/11 16:22:35 Binding EJB InstanceManagerBean to ejb/collaxa/system/Instance
ManagerBean...
04/12/11 16:22:35 Binding EJB ActivityManagerBean to ejb/collaxa/system/Activity
ManagerBean...
04/12/11 16:22:35 Binding EJB ArchiveManagerBean to ejb/collaxa/system/ArchiveMa
nagerBean...
04/12/11 16:22:35 Binding EJB PresentationManagerBean to ejb/collaxa/system/Pres
entationManagerBean...
04/12/11 16:22:35 Binding EJB TaskManagerBean to ejb/collaxa/system/TaskManagerB
ean...
04/12/11 16:22:35 Binding EJB TransactionManagerBean to ejb/collaxa/system/Trans
actionManagerBean...
04/12/11 16:22:35 Binding EJB TransactionViewManagerBean to ejb/collaxa/system/T
ransactionViewManagerBean...
04/12/11 16:22:35 Binding EJB CubeFinderBean to ejb/collaxa/system/CubeFinderBea
n...
04/12/11 16:22:35 Binding EJB TransactionFinderBean to ejb/collaxa/system/Transa
ctionFinderBean...
04/12/11 16:22:36 Application orabpel (Collaxa Web Applications) initialized...
04/12/11 16:22:38 Web-App default:defaultWebApp (0.0.0.0/0.0.0.0:9700/) started.
04/12/11 16:22:38 Building Global TagLibrary Persistent Cache
04/12/11 16:22:38 Looking for global resource at C:\orabpel\system\appserver\oc4
j\j2ee\home\config\..\jsp\lib\taglibDone getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing global cache - from existing cache ...
04/12/11 16:22:38 Building Application TagLibrary Persistent Cache for defaultWe
bApp
04/12/11 16:22:38 Done getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing application cache - from existing cache ...
04/12/11 16:22:38 Found 0 listeners
04/12/11 16:22:38 Web-App orabpel:admin_war (0.0.0.0/0.0.0.0:9700/BPELAdmin) sta
rted...
04/12/11 16:22:38 Building Application TagLibrary Persistent Cache for admin_war
04/12/11 16:22:38 Done getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing application cache - from existing cache ...
04/12/11 16:22:38 Found 0 listeners
04/12/11 16:22:38 Web-App orabpel:console_war (0.0.0.0/0.0.0.0:9700/BPELConsole)
started...
04/12/11 16:22:38 Building Application TagLibrary Persistent Cache for console_w
ar
04/12/11 16:22:38 Done getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing application cache - from existing cache ...
04/12/11 16:22:38 Found 0 listeners
04/12/11 16:22:38 Web-App orabpel:startup_war (0.0.0.0/0.0.0.0:9700/orabpel) sta
rted...
04/12/11 16:22:38 Building Application TagLibrary Persistent Cache for startup_w
ar
04/12/11 16:22:38 Done getting application current resources
04/12/11 16:22:38 Done initializing cache
04/12/11 16:22:38 Refreshing application cache - from existing cache ...
04/12/11 16:22:38 Found 0 listeners
<ServerManager::__init>
Oracle BPEL Server version 2.0.10
Build: 2004.08.26.19.51
Build time: Thu Aug 26 19:51:38 PDT 2004
Build type: release
<ServerDescriptor::validateCompatibility> Detected server descriptor version '2.
0.1'
<BaseJDKAdaptor::initAdaptor>
JVM properties
Java version: 1.4.2_04, Sun Microsystems Inc.
Java Home: C:\j2sdk1.4.2_04\jre
Java VM: Java HotSpot(TM) Client VM 1.4.2_04-b05, Sun Microsystems Inc
OS-System: Windows XP 5.1, x86
System Class path: oc4j.jar;C:\orabpel\system\appserver\oc4j\j2ee\home
\lib/ejb.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/servlet.jar;C:\orabp
el\system\appserver\oc4j\j2ee\home\lib/ojsp.jar;C:\orabpel\system\appserver\oc4j
\j2ee\home\lib/jndi.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jdbc.jar;
C:\orabpel\system\appserver\oc4j\j2ee\home\iiop.jar;C:\orabpel\system\appserver\
oc4j\j2ee\home\iiop_gen_bin.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/j
ms.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jta.jar;C:\orabpel\system\
appserver\oc4j\j2ee\home\lib/jmxri.jar;C:\orabpel\system\appserver\oc4j\j2ee\hom
e\lib/javax77.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/javax88.jar;C:\
orabpel\system\appserver\oc4j\j2ee\home\../../opmn/lib/ons.jar;C:\orabpel\system
\appserver\oc4j\j2ee\home\../../opmn/lib/optic.jar;C:\orabpel\system\appserver\o
c4j\j2ee\home\../../lib/dms.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../..
/dms/lib/dms.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/connector.jar;C:
\orabpel\system\appserver\oc4j\j2ee\home\lib/cos.jar;C:\orabpel\system\appserver
\oc4j\j2ee\home\lib/jsse.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../or
acle/lib/jsse.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jnet.jar;C:\ora
bpel\system\appserver\oc4j\j2ee\home\lib/jcert.jar;C:\orabpel\system\appserver\o
c4j\j2ee\home\lib/activation.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/
mail.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../javavm/lib/jasper.zip;
C:\orabpel\system\appserver\oc4j\j2ee\home\../../lib/xmlparserv2.jar;C:\orabpel\
system\appserver\oc4j\j2ee\home\../../oracle/lib/xmlparserv2.jar;C:\orabpel\syst
em\appserver\oc4j\j2ee\home\lib/jaxp.jar;C:\orabpel\system\appserver\oc4j\j2ee\h
ome\lib/jaas.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\jazn.jar;C:\orabpel\
system\appserver\oc4j\j2ee\home\../../jdbc/lib/classes12dms.jar;C:\orabpel\syste
m\appserver\oc4j\j2ee\home\../../oracle/jdbc/lib/classes12dms.jar;C:\orabpel\sys
tem\appserver\oc4j\j2ee\home\../../jdbc/lib/nls_charset12.jar;C:\orabpel\system\
appserver\oc4j\j2ee\home\../../oracle/jdbc/lib/nls_charset12.jar;C:\orabpel\syst
em\appserver\oc4j\j2ee\home\jaxb-rt-1.0-ea.jar;C:\orabpel\system\appserver\oc4j\
j2ee\home\../../soap/lib/soap.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../
../webservices/lib/wsserver.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../..
/webservices/lib/wsdl.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../rdbms
/jlib/aqapi.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jem.jar;C:\orabpe
l\system\appserver\oc4j\j2ee\home\../../javacache/lib/cache.jar;C:\orabpel\syste
m\appserver\oc4j\j2ee\home\lib/http_client.jar;C:\orabpel\system\appserver\oc4j\
j2ee\home\../../jlib/jssl-1_1.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../
../oracle/jlib/jssl-1_1.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../jli
b/repository.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\../../oracle/jlib/re
pository.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\lib/jaasmodules.jar;C:\o
rabpel\system\appserver\oc4j\j2ee\home\../../sqlj/lib/runtime12ee.jar;C:\orabpel
\system\appserver\oc4j\j2ee\home\../../sqlj/lib/translator.jar;C:\orabpel\system
\appserver\oc4j\j2ee\home\lib/crimson.jar;;C:\orabpel\system\classes;C:\orabpel\
lib\saxon_7.9.jar;C:\orabpel\lib\orabpel-external.jar;C:\orabpel\lib\orabpel.jar
;C:\orabpel\lib\orabpel-common.jar;C:\orabpel\lib\orabpel-ant.jar;C:\j2sdk1.4.2_
04\lib\tools.jar;C:\orabpel\lib\commons-httpclient-2.0.jar;C:\orabpel\lib\olite4
0.jar;C:\orabpel\lib\ant_1.5.4.jar;C:\orabpel\lib\xmlparserv2.jar;C:\orabpel\sys
tem\appserver\oc4j\j2ee\home\applib;C:\orabpel\system\appserver\oc4j\sqlj\lib;C:
\orabpel\system\appserver\oc4j\rdbms\jlib\xsu12.jar;C:\orabpel\system\appserver\
oc4j\lib\dsv2.jar;C:\orabpel\system\appserver\oc4j\j2ee\home\jsp\lib\taglib;C:\o
rabpel\system\appserver\oc4j\j2ee\home\jsp\lib\taglib\jaxen-full.jar;C:\orabpel\
system\appserver\oc4j\j2ee\home\jsp\lib\taglib\ojsputil.jar;C:\orabpel\system\ap
pserver\oc4j\j2ee\home\jsp\lib\taglib\saxpath.jar;C:\orabpel\system\appserver\oc
4j\j2ee\home\jsp\lib\taglib\standard.jar;C:\orabpel\system\appserver\oc4j\j2ee\h
ome\applications\orabpel_ear\ejb_ob_engine.jar;C:\orabpel\system\appserver\oc4j\
j2ee\home\application-deployments\orabpel\ejb_ob_engine.jar\deployment.cache;
<BasePlatformAdaptor::registerShutdownHook> Registered shutdown hook for olite
<ConnectionFactoryImpl::init> Initialized connection factory jdbc/BPELServerData
Source
<ConnectionFactoryImpl::init> Initialized connection factory jdbc/BPELServerData
Source
<ServerManager::__init> Detected datasource 'olite'
<ServerAdaptorManager::init> Initialized adaptors for platform 'oc4j_10g'
<ServerManager::loadAllDomains> Loading all domains under C:\orabpel\domains
<DomainDescriptor::validateCompatibility> Detected domain descriptor version '2.
0.5'
<2004-12-11 16:22:45,028> <INFO> <default.collaxa.cube> <ServerManager::loadDoma
in>
Oracle BPEL Server version 2.0.10
Build: 2004.08.26.19.51
Build time: Thu Aug 26 19:51:38 PDT 2004
Build type: release
<2004-12-11 16:22:45,138> <INFO> <default.collaxa.cube.engine> <CubeEngine::load
>
Initializing BPEL domain from descriptor file
"C:\orabpel\domains\default\config\domain.xml"
<ConnectionFactoryImpl::init> Initialized connection factory jdbc/BPELServerData
Source
<ConnectionFactoryImpl::init> Initialized connection factory jdbc/BPELServerData
Source
<2004-12-11 16:22:45,368> <INFO> <default.collaxa.cube.engine> <BaseDatabaseAdap
tor::validateCompatibility> Detected database version '2.0.29'
<2004-12-11 16:22:45,378> <INFO> <default.collaxa.cube.engine> <AdaptorManager::
init> Initialized adaptors for platform 'oc4j_10g', datasource 'olite'
<2004-12-11 16:22:45,959> <ERROR> <default.collaxa.cube> <ServerManager::handleI
nitException> Error while initializing java class "javax/activation/DataSource".
Java class "javax/activation/DataSource" cannot be found. Check if class "javax
/activation/DataSource" package is in your classpath.
<2004-12-11 16:22:45,959> <ERROR> <default.collaxa.cube> <ServerManager::handleI
nitException>
Failed to load OraBPEL Process "default" domain because:
javax/activation/DataSource
<ServerManager::loadAllDomains>
ORABPEL START-UP ERROR!!!!!!!!
OraBPEL run-time system failed to start due to exception:
Exception not handled by the Collaxa Cube system.
An unhandled exception has been thrown in the Collaxa Cube system. The exception
reported is: "java.lang.NoClassDefFoundError: javax/activation/DataSource
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.class$(J
AFDataHandlerSerializerFactory.java:76)
at org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.getSeria
lizerClass(JAFDataHandlerSerializerFactory.java:85)
at org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.<init>(J
AFDataHandlerSerializerFactory.java:73)
at org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMap
pingImpl.java:154)
at org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMap
pingImpl.java:130)
at org.apache.axis.encoding.DefaultTypeMappingImpl.getSingleton(DefaultT
ypeMappingImpl.java:124)
at com.collaxa.cube.engine.deployment.TypeSoapRegistry.registerHeaderTyp
es(TypeSoapRegistry.java:269)
at com.collaxa.cube.engine.deployment.TypeSoapRegistry.load(TypeSoapRegi
stry.java:101)
at com.collaxa.cube.engine.core.TypeRegistry.load(TypeRegistry.java:121)
at com.collaxa.cube.engine.CubeEngine.__load(CubeEngine.java:522)
at com.collaxa.cube.engine.CubeEngine.load(CubeEngine.java:452)
at com.collaxa.cube.admin.ServerManager.loadDomain(ServerManager.java:91
9)
at com.collaxa.cube.admin.ServerManager.loadAllDomains(ServerManager.jav
a:733)
at com.collaxa.cube.admin.ServerManager.init(ServerManager.java:92)
at com.collaxa.cube.beans.ServerBean.init(ServerBean.java:202)
at IServerBean_StatelessSessionBeanWrapper14.init(IServerBean_StatelessS
essionBeanWrapper14.java:79)
at com.collaxa.cube.admin.CXLoaderServlet.init(CXLoaderServlet.java:59)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
java:2094)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
java:4523)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpAppl
ication.java:4617)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
java:765)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
497)
at com.evermind.server.Application.getHttpApplication(Application.java:8
86)
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.jav
a:688)
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServe
r.java:2325)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.jav
a:1498)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLa
uncher.java:93)
at java.lang.Thread.run(Thread.java:534)
Exception: java.lang.NoClassDefFoundError: javax/activation/DataSource
Handled As: com.collaxa.cube.engine.EngineInitializationException
04/12/11 16:22:46 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
initialized
Hello Erwin,
thank you for your fast reply.
I'll try to switch to 9i/10g.
In migrating perhaps also I will use the Designer as standalone tool on the client and connecting to iAS on another machine where I could integrate the BPEL Engine.
That means integrating BPEL in our architecture.
Regards Florian
Similar Messages
-
Writing custom implentation of javax.activation.Datasource
Hello All,
In our current implementation we have a
1)Media Server (MS)
2)A Server which exposes some actions like viewing clips as web service (WS)
3)A Web service client (WC)
The 1st and 2nd server has located on the same LAN
The Webservice client invokes a web service to view a clip. The 2nd Server in turn requests Media Server for the clip data using socket api's.
Now the question is how to pass on this clip data which can be upto 5 MB to the WS client.
Right now the second server reads from the input stream connected to the Media Server and write to a temp file and then uses a FileDataSource. Can we somehow avoid creating this temporary file?
Regards
John... and I made a copy of activation.jar in
about any pertient /lib folder I've found on my
computer :-)Bad move. You should actually do the exact opposite, i.e hunt down any xtra mail.jar/activation.jar and take them out. One copy under your server's lib directory should suffice, if any.
Also, the mail classes should be already included in j2ee.jar (included in your classpath), depending on the version you're using. With j2ee 1.2 and 1.3, you should not need to include the java beans activation framework... -
Exception in thread "main" java.lang.NoclassDefFoundError:javax/actiovation
c:\>java Emailer
Exception in thread "main" java.lang.NoclassDefFoundError:javax/actiovation/DataSource
at Main.<inti><Main.java:36>
at Main.<inti><Main.java:51>
am getting the following error wen am try to run my code..
i think am havin problem in settin the classpath for
authentication.jar file
and if poissible give me full code for sending email from maa system
can any one tell me how to set the class path for the jar file and wer to download the jar file
thanks in advance
byeimport java.util.*;
import java.io.*;
import javax.mail.*;
import javax.mail.internet.*;
import com.sun.mail.smtp.SMTPMessage;
public class Emailer
String subject;
String body;
public Emailer()
public void sendEmail(String fromEmailAddr, String toEmailAddr, String ccEmailAddr, String aSubject, String aBody) throws AddressException
subject = aSubject;
body = aBody;
Properties eMailConfigProps = new Properties();
eMailConfigProps = System.getProperties();
eMailConfigProps.put("mail.from",new InternetAddress(fromEmailAddr));
eMailConfigProps.put("mail.smtp.host", "59.175.161.22");
eMailConfigProps.setProperty("mail.smtp.port", "25");
eMailConfigProps.put("mail.transport.protocol", "59.175.161.22");
Session session = Session.getInstance(eMailConfigProps, null);
MimeMessage message = new SMTPMessage(session);
try
message.addRecipient(Message.RecipientType.TO, new InternetAddress(toEmailAddr));
message.addRecipient(Message.RecipientType.CC, new InternetAddress(ccEmailAddr));
message.setSubject(subject);
message.setText(body);
Transport.send(message);
catch (MessagingException ex)
System.err.println("Cannot send email. " + ex);
public static void main(String args[])
Emailer objEmailer = new Emailer();
try
objEmailer.sendEmail("[email protected]","[email protected]","[email protected]","Test Mail","Hi am working...");
catch(javax.mail.internet.AddressException e)
e.printStackTrace();
wen am trying to execute the about code .. itss showing the following error
plz wat r the changes that i should do in that coding..
even i got the code from this forum only
plz tel me
this is the error am getting :
c:/>java Emailer
cannto send email. javax.mail.MessagingException : Could not connect to SMTP host :192.168.15.100,port :25;
nested exception is :java.net.ConeectException :Connecton refused:connect
tis is the error am getting ..
pplzz anyone help
wat r the changess that i should do in maa programm .. wat is the ipaddress and port no i should put ..wer can i get these 2..
thanks in advance
bye -
Javax.activation.UnsupportedDataTypeException:
I get the following exception when I extract mail.jar, activation.jar and run the program. However, no exception is thrown when I add the two jar file in the classpath.
How do I solve this problem?
THanks
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type mul
part/mixed;
boundary="----=_Part_0_33536220.1272627745828"
at javax.activation.ObjectDataContentHandler.writeTo(Unknown Source)
at javax.activation.DataHandler.writeTo(Unknown Source)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1381)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1742)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:737)
at SimpleSSLMail.test(SimpleSSLMail.java:77)
at SimpleSSLMail.main(SimpleSSLMail.java:34)
javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME
pe multipart/mixed;
boundary="----=_Part_0_33536220.1272627745828"sanksrit_source_language wrote:
Hi,
please add the following lines in your code.
// add handlers for main MIME types
MailcapCommandMap mc = (MailcapCommandMap)CommandMap.getDefaultCommandMap();
mc.addMailcap("text/html;; x-java-content-handler=com.sun.mail.handlers.text_html");
mc.addMailcap("text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml");
mc.addMailcap("text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain");
mc.addMailcap("multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed");
mc.addMailcap("message/rfc822;; x-java-content-handler=com.sun.mail.handlers.message_rfc822");
CommandMap.setDefaultCommandMap(mc);
This just solved my problemAs those handlers are already defined in the mailcap file supplied with JavaMail, that is totally useless advice. It is a clear indication your are not using the libraries in the right way. -
Hi,
The software's I used are:
1. Oracle Database (Oracle Database 11g Release 2 (11.2.0.1.0))
2. Repository Creation Utility (ofm_rcu_win32_11.1.1.2.1_disk1_1of1)
3. WebLogic (wls1033_oepe111150_win32)
4. WebCenter (ofm_wc_generic_11.1.1.2.0_disk1_1of1)
5. Content Management (ofm_ucm_generic_10.1.3.5.1_disk1_1of1)
When I try to run the Administration Server and the three Managed Servers (WLS_Portlet, WLS_Services and WLS_Spaces in Weblogic Server), it is throwing exception in WLS_Spaces and WLS_Portlet servers and completing to Running Mode.
Attaching the Log Details below for one of the server.
C:\Oracle\Middleware\user_projects\domains\base_domain\bin>startManagedWebLogic
.cmd WLS_Portlet http://dpdb:7001
JAVA Memory arguments: -Xms512m -Xmx1024m -XX:CompileThreshold=8000 -XX:PermSiz
e=128m -XX:MaxPermSize=256m
WLS Start Mode=Development
CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sys_manifest_classp
ath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_oepe1033\profiles\default\sys_m
anifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_ocp353\profiles\d
efault\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\li
b\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\
MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features
\weblogic.server.modules_10.3.3.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\
webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle
\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\ORACLE~1\
soa\modules\commons-cli-1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1\soa\modules\oracle.
soa.mgmt_11.1.1\soa-infra-mgmt.jar;C:\Oracle\Middleware\Oracle_WC1\webcenter\mo
dules\oracle.portlet.server_11.1.1\oracle-portlet-api.jar;C:\Oracle\MIDDLE~1\OR
ACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\d
erby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
PATH=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\native;C:\Oracle\MIDDLE~
1\patch_oepe1033\profiles\default\native;C:\Oracle\MIDDLE~1\patch_ocp353\profil
es\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\
MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\Ora
cle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\app\Administra
tor\product\11.2.0\dbhome_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Syste
m32\Wbem;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http:\\hostname:port\console *
starting weblogic with Java version:
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
Starting WLS with line:
C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms512m -Xmx1024m -XX:CompileTh
reshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m -Dweblogic.Name=WLS_Portle
t -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.poli
cy -Dweblogic.security.SSL.trustedCAKeyStore="C:\Oracle\Middleware\wlserver_10.
3\server\lib\cacerts" -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WL
SERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Ora
cle\MIDDLE~1\WLSERV~1.3\server -Ddomain.home=C:\Oracle\MIDDLE~1\USER_P~1\domai
ns\BASE_D~1 -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=
11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Lo
gger -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jr
ocket_optfile.txt -Doracle.domain.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domain
s\BASE_D~1\config\FMWCON~1 -Doracle.server.config.dir=C:\Oracle\MIDDLE~1\USER_P
~1\domains\BASE_D~1\config\FMWCON~1\servers\WLS_Portlet -Doracle.security.jps.c
onfig=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\fmwconfig\jps-config.
xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Digf.arisidbeans.car
mlloc=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\FMWCON~1\carml -Digf
.arisidstack.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\FMWCON~1\
arisidprovider -Dweblogic.alternateTypesDirectory=\modules\oracle.ossoiap_11.1.
1,\modules\oracle.oamprovider_11.1.1 -Dweblogic.jdbc.remoteEnabled=false -Dtan
gosol.coherence.log=jdk -DjiveHome=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1
\config\fmwconfig\servers\WLS_Portlet\owc_discussions_11.1.1.2.0 -Doracle.wc.op
enusage.clustername=localhost -Doracle.wc.openusage.collectorport=31314 -Doracl
e.wc.openusage.timeout=30 -Doracle.wc.openusage.unicast=true -Doracle.wc.openus
age.enabled=false -Doracle.core.ojdl.logging.usercontextprovider=oracle.core.oj
dl.logging.impl.UserContextImpl -DUSE_JAAS=false -Djps.policystore.hybrid.mode=
false -Djps.combiner.optimize.lazyeval=true -Djps.combiner.optimize=true -Djps.
auth=ACC -Doracle.core.ojdl.logging.usercontextprovider=oracle.core.ojdl.loggin
g.impl.UserContextImpl -Doracle.wc.openusage.clustername=localhost -Doracle.wc.
openusage.collectorport=31314 -Doracle.wc.openusage.timeout=30 -Doracle.wc.open
usage.unicast=true -Doracle.wc.openusage.enabled=false -Doracle.webcenter.taggi
ng.scopeTags=false -Doracle.mds.bypassCustRestrict=true -Djava.awt.headless=tru
e -Doracle.webcenter.tagging.scopeTags=false -XX:+UseParallelGC -XX:+DisableExp
licitGC -Dwc.oracle.home=C:\Oracle\Middleware\Oracle_WC1 -Dem.oracle.home=C:\
Oracle\Middleware\oracle_common -Djava.awt.headless=true -Dweblogic.management.
discover=false -Dweblogic.management.server=http://dpdb:7001 -Dwlw.iterativeDe
v=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.d
irs=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sysext_manifest_classpath
;C:\Oracle\MIDDLE~1\patch_oepe1033\profiles\default\sysext_manifest_classpath;C
:\Oracle\MIDDLE~1\patch_ocp353\profiles\default\sysext_manifest_classpath webl
ogic.Server
<Jul 16, 2010 11:01:55 AM IST> <Notice> <WebLogicServer> <BEA-000395> <Followin
g extensions directory contents added to the end of the classpath:
C:\Oracle\Middleware\user_projects\domains\base_domain\lib\mbeantypes\csp-id-as
serter.jar>
<Jul 16, 2010 11:01:55 AM IST> <Info> <WebLogicServer> <BEA-000377> <Starting W
ebLogic Server with Java HotSpot(TM) Client VM Version 16.0-b13 from Sun Micros
ystems Inc.>
<Jul 16, 2010 11:01:57 AM IST> <Info> <Security> <BEA-090065> <Getting boot ide
ntity from user.>
Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:
<Jul 16, 2010 11:02:12 AM IST> <Info> <Management> <BEA-141107> <Version: WebLo
gic Server 10.3.3.0 Fri Apr 9 00:05:28 PDT 2010 1321401 >
<Jul 16, 2010 11:02:14 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server s
tate changed to STARTING>
<Jul 16, 2010 11:02:14 AM IST> <Info> <WorkManager> <BEA-002900> <Initializing
self-tuning thread pool>
<Jul 16, 2010 11:02:14 AM IST> <Notice> <LoggingService> <BEA-320400> <The log
file C:\Oracle\Middleware\user_projects\domains\base_domain\servers\WLS_Portlet
\logs\WLS_Portlet.log will be rotated. Reopen the log file if tailing has stopp
ed. This can happen on some platforms like Windows.>
<Jul 16, 2010 11:02:14 AM IST> <Notice> <LoggingService> <BEA-320401> <The log
file has been rotated to C:\Oracle\Middleware\user_projects\domains\base_domain
\servers\WLS_Portlet\logs\WLS_Portlet.log00001. Log messages will continue to b
e logged in C:\Oracle\Middleware\user_projects\domains\base_domain\servers\WLS_
Portlet\logs\WLS_Portlet.log.>
<Jul 16, 2010 11:02:14 AM IST> <Notice> <Log Management> <BEA-170019> <The serv
er log file C:\Oracle\Middleware\user_projects\domains\base_domain\servers\WLS_
Portlet\logs\WLS_Portlet.log is opened. All server side log events will be writ
ten to this file.>
<Jul 16, 2010 11:02:19 AM IST> <Notice> <Security> <BEA-090082> <Security initi
alizing using security realm myrealm.>
<Jul 16, 2010 11:02:20 AM IST> <Notice> <LoggingService> <BEA-320400> <The log
file C:\Oracle\Middleware\user_projects\domains\base_domain\servers\WLS_Portlet
\logs\access.log will be rotated. Reopen the log file if tailing has stopped. T
his can happen on some platforms like Windows.>
<Jul 16, 2010 11:02:20 AM IST> <Notice> <LoggingService> <BEA-320401> <The log
file has been rotated to C:\Oracle\Middleware\user_projects\domains\base_domain
\servers\WLS_Portlet\logs\access.log00001. Log messages will continue to be log
ged in C:\Oracle\Middleware\user_projects\domains\base_domain\servers\WLS_Portl
et\logs\access.log.>
<Jul 16, 2010 11:02:24 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server s
tate changed to STANDBY>
<Jul 16, 2010 11:02:24 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server s
tate changed to STARTING>
java.lang.NoClassDefFoundError: javax/wsdl/Definition
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.privateGetPublicMethods(Class.java:2547)
at java.lang.Class.privateGetPublicMethods(Class.java:2557)
at java.lang.Class.getMethods(Class.java:1410)
at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.getImplementedI
nterfaces(EjbAnnotationProcessor.java:1687)
at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processSessionA
nnotations(EjbAnnotationProcessor.java:447)
at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAnnotati
ons(EjbAnnotationProcessor.java:310)
at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAnnotati
ons(EjbAnnotationProcessor.java:180)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processStandar
dAnnotations(EjbDescriptorReaderImpl.java:344)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnly
DescriptorFromJarFile(EjbDescriptorReaderImpl.java:204)
at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJa
rFile(EjbDescriptorFactory.java:93)
at weblogic.ejb.container.deployer.EJBModule.loadEJBDescriptor(EJBModul
e.java:1242)
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:395
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Mod
uleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Dep
loymentCallbackFlow.java:507)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachine
Driver.java:41)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(De
ploymentCallbackFlow.java:149)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(De
ploymentCallbackFlow.java:45)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.j
ava:1221)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachine
Driver.java:41)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.
java:367)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.ja
va:58)
at weblogic.application.internal.DeploymentStateChecker.prepare(Deploym
entStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(Ap
pContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeplo
yment.java:141)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(De
ploymentAdapter.java:39)
at weblogic.management.deploy.internal.DeploymentAdapter.prepare(Deploy
mentAdapter.java:191)
at weblogic.management.deploy.internal.AppTransition$1.transitionApp(Ap
pTransition.java:21)
at weblogic.management.deploy.internal.ConfiguredDeployments.transition
Apps(ConfiguredDeployments.java:240)
at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(Co
nfiguredDeployments.java:165)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(Con
figuredDeployments.java:122)
at weblogic.management.deploy.internal.DeploymentServerService.resume(D
eploymentServerService.java:180)
at weblogic.management.deploy.internal.DeploymentServerService.start(De
ploymentServerService.java:96)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.ClassNotFoundException: javax.wsdl.Definition
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 37 more
<Jul 16, 2010 11:02:32 AM IST> <Error> <Deployer> <BEA-149205> <Failed to initi
alize the application 'wsm-pm' due to error weblogic.application.ModuleExceptio
n: Exception preparing module: EJBModule(wsm-pmserver.jar)
[EJB:011023]An error occurred while reading the deployment descriptor. The erro
r was:
javax/wsdl/Definition..
weblogic.application.ModuleException: Exception preparing module: EJBModule(wsm
-pmserver.jar)
[EJB:011023]An error occurred while reading the deployment descriptor. The erro
r was:
javax/wsdl/Definition.
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:467
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Mod
uleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Dep
loymentCallbackFlow.java:507)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachine
Driver.java:41)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(De
ploymentCallbackFlow.java:149)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: javax.wsdl.Definition
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
Truncated. see log file for complete stacktrace
>
<Jul 16, 2010 11:02:38 AM IST> <Error> <Deployer> <BEA-149205> <Failed to initi
alize the application 'wsrp-tools [Version=11.1.1.2.0]' due to error java.lang.
ClassNotFoundException: javax.wsdl.WSDLException.
java.lang.ClassNotFoundException: javax.wsdl.WSDLException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: javax.wsdl.WSDLException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
Truncated. see log file for complete stacktrace
>
<Jul 16, 2010 11:02:41 AM IST> <Notice> <Log Management> <BEA-170027> <The Serv
er has established connection with the Domain level Diagnostic Service successf
ully.>
<Jul 16, 2010 11:02:42 AM IST> <Error> <oracle.wsm.resources.policymanager> <WS
M-02054> <Failure in looking up EJB component QueryService#oracle.wsm.policyman
ager.ejb.IStringQueryServiceRemote.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server s
tate changed to ADMIN>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server s
tate changed to RESUMING>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090171> <Loading the id
entity certificate and private key stored under the alias DemoIdentity from the
jks keystore file C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoIdentity.jks.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090169> <Loading truste
d certificates from the jks keystore file C:\Oracle\MIDDLE~1\WLSERV~1.3\server\
lib\DemoTrust.jks.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090169> <Loading truste
d certificates from the jks keystore file C:\Oracle\MIDDLE~1\JDK160~1\jre\lib\s
ecurity\cacerts.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090898> <Ignoring the t
rusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Cente
r,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certif
icate list raised a certificate parsing exception PKIX: Unsupported OID in the
AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090898> <Ignoring the t
rusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Cente
r,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certif
icate list raised a certificate parsing exception PKIX: Unsupported OID in the
AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090898> <Ignoring the t
rusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3".
The loading of the trusted certificate list raised a certificate parsing except
ion PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1
.11.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090898> <Ignoring the t
rusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems
CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certifica
te parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1
.2.840.113549.1.1.11.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090898> <Ignoring the t
rusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The load
ing of the trusted certificate list raised a certificate parsing exception PKIX
: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Server> <BEA-002613> <Channel "Default
" is now listening on 10.0.4.126:8889 for protocols iiop, t3, ldap, snmp, http.
>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Server> <BEA-002613> <Channel "Default
Secure" is now listening on 10.0.4.126:8789 for protocols iiops, t3s, ldaps, ht
tps.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <WebLogicServer> <BEA-000332> <Started
WebLogic Managed Server "WLS_Portlet" for domain "base_domain" running in Devel
opment Mode>
<Jul 16, 2010 11:02:45 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server s
tate changed to RUNNING>
<Jul 16, 2010 11:02:45 AM IST> <Notice> <WebLogicServer> <BEA-000360> <Server s
tarted in RUNNING mode>
I'm stuck on this since a long and time and not able to resolve it. Please post the solution if any.
Thanks and advance,
Surender ReddyAt first sight it seems your webcenter installation does not match the version of your WLS.
Your WLS installations seems to be 10.33 and not 10.3.2
If you are using WLS 10.3.3 you MUST also install webcenter 11.1.3
That could be the cause of your problems. -
I am trying to develop a web service client for amazon webservice.but i am getting this error while running the app. Can anyone please help me. I have installed the JWSDP and but could not understand why i have to locate all the jar files in the classpath?Please help.
===== error=========================================
C:\abr\classes>java -classpath c:\abr\test.jar;C:\abr\jaxrpc-api.jar;C:\abr\jaxrpc-impl.jar;C:\abr\jaxrpc-spi.jar;c:\abr\classes\amazon.jar;C:\abr\mail.jar;C:\a
br\saaj-api.jar;C:\abr\activation.jar;c:\abr\FastInfoset.jar;%classpath% Client
[b]Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/stream/XMLS
treamWriter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.
java:672)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:87)
at amazon.AmazonSearchPort_Stub.authorSearchRequest(AmazonSearchPort_Stu
b.java:988)
at Client.main(Client.java:21)I'm assuming you're using JWSDP 1.6 as I see Fastinfoset.jar in your list. You are missing some jar files in your classpath there. The best way to know what you need is to look at the release notes for JWSDP 1.6. Since you're building a web serivce start with the table in there and lookup JAX-RPC. It'll show you what jar files are needed and what other libraries are needed. Now depending on what you're doing you don't really need all those.
For sure you're missing jsr173_api.jar which is where I believe that class you need is located. This is in the JWSDP_1_6\sjsxp\lib directory. You will probably need the other jar thats in there too. Best bet is to follow the dependancy chart in the release notes.
This should get you going.
Ryan -
NoClassDefFoundError:javax/swing/JApplet while running japplet in browser
hai to all,
i am trying to run a Japplet in broser,
it's getting NoClassDefFoundError:javax/swing/JApplet
on statusbar.
any plugin's are requitred to run swing applets in browser.?please give me details.
my JApplet is working in Applet viewer.
i am using Jdk1.3.1, and Applets are also running in my browser(both IE and NetScape).
thank you in advance
please mail me to [email protected]
by
sambareddyI had the same problem when I was developing a swing applet to run on the web. What you have to do is convert your HTML file. It takes out the APPLET tags and replaces them with OBJECT and EMBED tags. This worked for me. I downloaded the converter from the Java site but I cannot recall exactly where. I think if you search for converter you should be able to find it. The newly converted HTML file will also prompt the user to download the correct plug-in if it is not already installed on their machine.
In the mean time, try using the HTML code below. You will have to change some of the lines but it should work for you. The OBJECT tag is used for IE and the EMBED tag is used for Netscape so don't forget to change both. One wierd thing you will see is that is if you run appletviewer on the converted HTML file, two windows will pop up and one of them will have errors and not load but one will. Don't worry about that, when you run it through the web server, everything works fine.
Good luck.
<HTML>
<HEAD>
<TITLE>Your title</TITLE>
</HEAD>
<BODY>
<CENTER>
<!--"CONVERTED_APPLET"-->
<!-- HTML CONVERTER -->
<OBJECT classid="clsid:E19F9330-3110-11d4-991C-005004D3B3DB"
WIDTH = 550 HEIGHT = 300 codebase="http://java.sun.com/products/plugin/1.3.0_01/jinstall-130_01-win32.cab#Version=1,3,0,1">
<PARAM NAME = CODE VALUE = "the name of your class file" >
<PARAM NAME = CODEBASE VALUE = "location of the class or jar file">
<PARAM NAME = ARCHIVE VALUE = "name of your jar file, omit this entire line if you do not have a jar file" >
<PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.3.0_01">
<PARAM NAME="scriptable" VALUE="false">
<COMMENT>
<EMBED WIDTH = 550 HEIGHT = 300 type="application/x-java-applet;jpi-version=1.3.0_01" CODE = "name of your class file" CODEBASE = "location of the class or jar file" ARCHIVE = "name of your jar file, omit this entire arg if you do not have a jar file" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3.0_01/plugin-install.html">
</EMBED>
</CENTER>
</COMMENT>
</OBJECT>
<!--
<APPLET CODE = "name of your class file" ARCHIVE = "name of jar file if you have one" WIDTH = 700 HEIGHT = 400>
</CENTER>
</APPLET>
-->
<!--"END_CONVERTED_APPLET"--> -
[WLS 8.1.3] I'm getting an error while trying to execute the getConnection() method of javax.sql.DataSource.
The same code, test data, WLS JDBC connection & data source runs fine on HP-UX but when I try to run it on XP, I get an error.(see below) Our code calls the getConnection() method several times and it actually works the first few times in the transaction but then fails after the 5th or 6th call. We're using the weblogic.jdbc.oci.Driver in both HP-UX & XP and the JDBC settings are identical. I've tried the same query in SQLPLUS as what's being used in the prepared statement and it works fine.
The error message is as follows:
Transaction BEA1-0002AD72C454EBACDA96 not active anymore. tx status = Marked rollback. [Reason=java.lang.AbstractMethodError: weblogic.xml.schema.binding.BeanCodecBase.getCompositor()Lweblogic/xml/schema/binding/ModelGroupCompositor;]>
The code snippet that gets the error:
Context ctx = new InitialContext();
ds = (javax.sql.DataSource) ctx.lookup ("com.xxxx.yyyy.zzzz");
conn = ds.getConnection();
Any ideas what could cause this error?I turned JDBC logging on but the only SQLExceptions I could find in the JDBC log where some "java.sql.SQLException: Result set already closed" errors. Not ideal but the db calls actually worked and those errors were not in the same place in the code. I'm looking into why these are occurring but I don't think this is the root problem of the AbstractMethodError as the same SQLException occurs in the JDBC logs on UNIX where the AbstractMethodError is not being thrown. I can include a stack trace of the SQLException if you still think it might help.
While searching the logs, I found other occurrences of the AbstractMethodError. I also noticed there is a JDK version difference between the WLS 8.1.3 for XP and the one for HP-UX. The XP version has JDK 142_04 and the HP-UX has 142_03.
Here's a stack trace of the other AbstractMethodError I found from one of the EJB's:
####<Oct 6, 2004 6:41:35 AM PDT> <Info> <EJB> <JEAGLEMXP> <lnppiServer> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-00009C0656BCEBACDA96> <BEA-010051> <EJB Exception occurred during invocation from home: com.qwest.lnppi.business.port.PortedTnEjb_rn88fn_HomeImpl@26d560 threw exception: java.lang.AbstractMethodError: weblogic.xml.schema.binding.BeanCodecBase.getCompositor()Lweblogic/xml/schema/binding/ModelGroupCompositor;
java.lang.AbstractMethodError: weblogic.xml.schema.binding.BeanCodecBase.getCompositor()Lweblogic/xml/schema/binding/ModelGroupCompositor;
at weblogic.xml.schema.binding.BeanCodecBase.gatherContents(BeanCodecBase.java:299)
at weblogic.xml.schema.binding.CodecBase.serializeFill(CodecBase.java:285)
at weblogic.xml.schema.binding.CodecBase.serialize_internal(CodecBase.java:222)
at weblogic.xml.schema.binding.CodecBase.serialize(CodecBase.java:181)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:188)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:174)
at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:324)
at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:297)
at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:645)
at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:206)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:143)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:290)
at com.qwest.lnppi.portedTNservice.PortedTelephoneNumber_Stub.getPortedTelelphoneNumber(Unknown Source)
at com.qwest.lnppi.business.port.PortedTnBean.portedTnWS(Unknown Source)
at com.qwest.lnppi.business.port.PortedTnBean.portedTn(Unknown Source)
at com.qwest.lnppi.business.port.PortedTnEjb_rn88fn_EOImpl.portedTn(PortedTnEjb_rn88fn_EOImpl.java:98)
at com.qwest.lnppi.business.svc.GetCurrentServiceProviderSwitch.getCurrentServiceProviderSwitch(Unknown Source)
at com.qwest.lnppi.business.svc.LnppiServiceBean.getPortingOptions(Unknown Source)
at com.qwest.lnppi.business.svc.LnppiServiceEjb_tk1dpv_EOImpl.getPortingOptions(LnppiServiceEjb_tk1dpv_EOImpl.java:46)
at com.qwest.lnppi.web.lnppiTester.Tester.CallTheBean(Unknown Source)
at com.qwest.lnppi.web.lnppiTester.Tester.TestIt(Unknown Source)
at jsp_servlet.__tester._jspService(__tester.java:157)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:312)
at com.qwest.lnppi.web.lnppiTester.pgMgr.doTestIt(Unknown Source)
at com.qwest.lnppi.web.lnppiTester.pgMgr.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
> -
Java.lang.NoClassDefFoundError: javax/el/CompositeELResolver error
Hi to everyone.
i'm searching for help.
I'm working with a web project under WebShere and for working and compatibility reason I have to migrate from version 7.0 of WAS to older 6.1 version.
My project under version 7 run perfectly but now I not even can start correctly the WAS.
I receive the error about topic title: java.lang.NoClassDefFoundError: javax/el/CompositeELResolver error
The project was born to work with JSF 1.2 and RichFaces 3.3.2 but I know they are not supported under WAS 6.1 and so I've:
- first tried to imported in project older version of jsf and richfaces (jsf 1.1.02, rich 3.1.6);
- then tried to installed them as shared libraries;
suddenly i've tried to reinstall entire WAS... same result.
can someone help me?
PS: the content of console after start attempt is:
java.lang.NoClassDefFoundError: javax.el.CompositeELResolver
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:68)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:129)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:163)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.<init>(AbstractJSPExtensionProcessor.java:183)
at com.ibm.ws.jsp.webcontainerext.ws.WASJSPExtensionProcessor.<init>(WASJSPExtensionProcessor.java:65)
at com.ibm.ws.jsp.webcontainerext.ws.WASJSPExtensionFactory.createProcessor(WASJSPExtensionFactory.java:188)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionFactory.createExtensionProcessor(AbstractJSPExtensionFactory.java:75)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeExtensionProcessors(WebApp.java:1186)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:340)
at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:337)
at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:666)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:619)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1304)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1165)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:832)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:950)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2131)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by: java.lang.ClassNotFoundException: javax.el.CompositeELResolver
at java.net.URLClassLoader.findClass(URLClassLoader.java:496)
at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:631)
at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:90)
at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)
at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:54)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:429)
at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
... 26 moreLooks like you need an implementation of the EL language.
-
Problem with installation and activation
Hi, I have a problem with the installation of Adobe Muse.
I had a free 30-days trial, when it was over I bought the product ($ 13 per month),
I installed the program again and I see the same window with the finished Trials
and it requires a serial number and does not allow to enter the program.
I installed the program on your PC wife without any problems, but I can not install it on a laptop.
I have a laptop with Windows 8 operating system.
What I've done:
1. Uninstalled the free program,
2. check the connection to the Internet,
3. has installed a new program from the official website adobe.com,
4. Remove the line for the activation of the hosts file and resave the file,
5. turned off the brandmower,
6. rebooted.
I can't get support for a 3 days, is it the most terrible support I've ever seen? I dunno
Please help me at [email protected]I guess this stuff helps me
http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
2014-08-07 20:07 GMT+07:00 Дмитрий Броский <[email protected]>:
thanx
>
2014-08-07 18:18 GMT+07:00 Prabhakar.Kumar <[email protected]>:
problem with installation and activation created by Prabhakar.Kumar
>> <https://forums.adobe.com/people/Prabhakar.Kumar> in *Help with using
>> Adobe Muse CC* - View the full discussion
>> <https://forums.adobe.com/message/6619532#6619532>
>> -
Problem with Connection Pooling of datasources in a web service
Hi,
I have been driven insane trying to fix this problem, I am trying to connect to a MS SQL data source from a web service in tomcat 4.1, so I have defined the data source through tomcats server administration pages and checked that it has inserted the correct code to server.xml. I have also added the relevant information to the web.xml and added the code to the service. when I start tomcat it outputs:
DbcpDataSourceFactory: driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver, url=jdbc:microsoft:sqlserver://192.168.0.22:1433:databaseName=dbname, user=sa
but then these errors occours:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
Caused by: java.lang.IllegalStateException: Context path /RegistryServer is already in use
at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:523)
... 42 more
and
[ERROR] Digester - -End event threw exception <java.lang.reflect.InvocationTargetException>
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at org.apache.commons.digester.SetNextRule.end
(Bootstrap.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
Caused by: java.lang.IllegalStateException: Context path /Xindice is already in use
at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:523)
... 42 more
And when I try to use the data source my code gets the context but when getting the datasource it shows the error:
Error doing something: javax.naming.NamingException: DbcpDataSourceFactory: driverClassName is required
My server.xml reads:
<Resource name="jdbc/msService" scope="Shareable" type="javax.sql.DataSource"/>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
<ResourceParams name="jdbc/msService">
<parameter>
<name>validationQuery</name>
<value></value>
</parameter>
<parameter>
<name>user</name>
<value>sa</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:microsoft:sqlserver://192.168.0.22:1433:databaseName=dbname</value>
</parameter>
<parameter>
<name>password</name>
<value>password</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>4</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>2</value>
</parameter>
</ResourceParams>
and my web.xml
<web-app>
<display-name>User Service</display-name>
<description>A service to perform user information orientated tasks</description>
<session-config>
<session-timeout>60</session-timeout>
</session-config>
<resource-ref>
<description> Resource reference to java.sql.Connection factory defined in server.xml</description>
<res-ref-name>jdbc/msService</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
I have read the other posts regarding this error and most mention that the jar files need to be in <root>/common/lib but I have deinitely put all the MS jar files here!!!
sorry this is such a long post but if any one has any idea it would be most appreciated!!!!
cheers
pastyHi,
I'm struggling with the same problem. One thing I noticed is that your url looks a bit different than others that I've seen:
Yours:
url=jdbc:microsoft:sqlserver://192.168.0.22:1433:databaeName=dbname, user=sa
Most other folks:
url=jdbc:microsoft:sqlserver://192.168.0.22:1433;databaseName=dbname; user=sa
Note the semicolons.
I don't know whether this will help you or not, but it's worth a try.
Does anyone know where I can get documentation for the options that MS' jdbc driver for SQL Server? I've googled groups and the web and can't find anything authoritative.
Dan
Hi,
I have been driven insane trying to fix this problem,
I am trying to connect to a MS SQL data source from a
web service in tomcat 4.1, so I have defined the data
source through tomcats server administration pages and
checked that it has inserted the correct code to
server.xml. I have also added the relevant
information to the web.xml and added the code to the
service. when I start tomcat it outputs:
DbcpDataSourceFactory:
driverClassName=com.microsoft.jdbc.sqlserver.SQLServer
river,
url=jdbc:microsoft:sqlserver://192.168.0.22:1433:databa
eName=dbname, user=sa
but then these errors occours:
java.lang.reflect.InvocationTargetException
at
at
at
t sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
at
at
t
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
AccessorImpl.java:39)
at
at
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at
at
at java.lang.reflect.Method.invoke(Method.java:324)
at
at
at
t
org.apache.commons.launcher.ChildMain.run(ChildMain.jav
:269)
Caused by: java.lang.IllegalStateException: Context
path /RegistryServer is already in use
at
at
at
t
org.apache.catalina.core.StandardHostDeployer.addChild(
tandardHostDeployer.java:523)
... 42 more
and
[ERROR] Digester - -End event threw exception
<java.lang.reflect.InvocationTargetException>
java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMeth
dAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Delega
ingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(
ethodUtils.java:216)
at org.apache.commons.digester.SetNextRule.end
(Bootstrap.java:203)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMeth
dAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Delega
ingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.launcher.ChildMain.run(ChildMain.ja
a:269)
Caused by: java.lang.IllegalStateException: Context
path /Xindice is already in use
at
org.apache.catalina.core.StandardHostDeployer.addChild
StandardHostDeployer.java:523)
... 42 more
And when I try to use the data source my code gets the
context but when getting the datasource it shows the
error:
Error doing something: javax.naming.NamingException:
DbcpDataSourceFactory: driverClassName is required
My server.xml reads:
<Resource name="jdbc/msService" scope="Shareable"
le" type="javax.sql.DataSource"/>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFac
ory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
<ResourceParams name="jdbc/msService">
<parameter>
<name>validationQuery</name>
<value></value>
</parameter>
<parameter>
<name>user</name>
<value>sa</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:microsoft:sqlserver://192.168.0.22:1433:da
abaseName=dbname</value>
</parameter>
<parameter>
<name>password</name>
<value>password</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>4</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.microsoft.jdbc.sqlserver.SQLServerDriver</v>
</parameter>
<parameter>
<name>maxIdle</name>
<value>2</value>
</parameter>
</ResourceParams>
and my web.xml
<web-app>
<display-name>User Service</display-name>
<description>A service to perform user information
n orientated tasks</description>
<session-config>
<session-timeout>60</session-timeout>
</session-config>
<resource-ref>
<description> Resource reference to
to java.sql.Connection factory defined in
server.xml</description>
<res-ref-name>jdbc/msService</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
I have read the other posts regarding this error and
most mention that the jar files need to be in
<root>/common/lib but I have deinitely put all the MS
jar files here!!!
sorry this is such a long post but if any one has any
idea it would be most appreciated!!!!
cheers
pasty -
Javax Activation error, pls help me very urgent
Hello,
I am calling a java stored procedure, but I am getting the following error:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
boundary="----=_Part_0_-1403249095.1105388630390"
I dropped the jar files from the database and re-deployed the the latest jar files downloaded from Sun site, still I am getting the the same error.
could someone please help me with this, I am desperately trying to solve this problem and get the work done. I am using java stored procedure to send emails.
Any help is highly appreciated.
Thanks
CosmosThis is a Javamail problem.
with a quick search of the javamail forum i found the same problem: http://forum.java.sun.com/thread.jspa?threadID=74127&start=0&tstart=0 -
Java.lang.SecurityException when loading javax.activation.MimeType
Hi all,
I'm having this problem when trying to call a WebService in my Server;
java.lang.SecurityException: class "javax.activation.MimeType"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java(Compiled Code))
at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))
at java.net.URLClassLoader.defineClass(URLClassLoader.java(Compiled Code))
at java.net.URLClassLoader.access$500(URLClassLoader.java(Inlined Compiled Code))
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java(Compiled Code))
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at org.apache.soap.rpc.SOAPContext.addBodyPart(SOAPContext.java:344)
at org.apache.soap.rpc.SOAPContext.setRootPart(SOAPContext.java:403)
at org.apache.soap.rpc.SOAPContext.setRootPart(SOAPContext.java:442)
at org.apache.soap.rpc.SOAPContext.setRootPart(SOAPContext.java:417)
at org.apache.soap.transport.TransportMessage.save(TransportMessage.java:351)
at oracle.soap.transport.http.OracleSOAPHTTPConnection.send(OracleSOAPHTTPConnection.java:713)
at org.apache.soap.rpc.Call.invoke(Call.java:261)
It seems to work in my local machine (running on JDeveloper10G embedded server), but i cannot make it work in production server (version 10.1.2.0.2) ...
Any idea of what is going wrong? I know what the error means, but i don't know why it is raising.I've tried the webservice standalone (without a servlet frontend) and it seems to work, so i'll post this in the servlets forum.
Thanks. -
Java.lang.NoClassDefFoundError: javax/resource/ResourceException
Hi everybody,receive my sincere greeting,i have a slight problem right here.I am trying to test the Server API for Mobile Services i dowloaded from nokia forum.I have a J2SE program that sends an SMS to a mobile device.When i try to run the simple program in JBuilder 2005 Enterprise i encounter the error below.Please help me i am not sure if i should include the j2ee.jar for my project to detect the resource package in javax or not.Anyone related with this problem plz help me.
Nov 3, 2006 1:46:38 PM com.nokia.sams.util.sms.config.ServiceApiConfiguration init
INFO: Loading Service API configuration.
Nov 3, 2006 1:46:38 PM com.nokia.sams.util.sms.config.ServiceApiConfiguration init
INFO: Service API config file is: C:\Borland\JBuilder2005\jdk1.4\jre\lib\nokia_sams_service.properties
Nov 3, 2006 1:46:38 PM com.nokia.sams.util.sms.config.ServiceApiConfiguration init
INFO: Service API configuration loaded.
java.lang.NoClassDefFoundError: javax/resource/ResourceException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at com.nokia.sams.SmsMessageListenerHandler.<init>(SmsMessageListenerHandler.java:58)
at com.nokia.sams.SmsSession.<init>(SmsSession.java:37)
at com.nokia.sams.messaging.SmsMessagingSession.<init>(SmsMessagingSession.java:71)
at com.nokia.sams.SmsService.openSession(SmsService.java:74)
at com.klaas.sams.SMSServer.sendMessage(SMSServer.java:21)
at com.klaas.sams.SMSServer.main(SMSServer.java:50)
Exception in thread "main"Hi,
Just try to find connector.jar and put it into your lib location.
Regards,
Deddy -
Java.lang.NoClassDefFoundError: javax/xml/rpc/Service
Hi,
I have created client stubs for a webservice using axis wsdl2java tool. When I try calling these stubbed methods from JUnit tests, they are working fine but when I try to execute the jar (it is a swing) I get the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.Gudds.SeCURE.MainUI.<init>(MainUI.java:76)
at com.Gudds.SeCURE.Main.Start(Main.java:62)
at org.owasp.webscarab.WebScarab.main(WebScarab.java:34)I have put the jaxrpc.jar in the classpath and I suppose this jar has the java.xml.rpc.service class but I donot understand why it fails while executing the jar but works fine from the eclipse IDe. Plase help me.
Regrdas,
Kundan1. Build jar file with MAINFEST.MF and Export of Eclipse , which has content:
suppose in folder:
c:\client.jar ( client of web service )
c:\contrib/lib/ axis apis
Main-Class: com.MainClassName
Class-Path: contrib\axis\jaxrpc.jar contrib\axis\activation.jar con
trib\axis\axis.jar contrib\axis\axis.jar contrib\axis\commons-disco
very.jar contrib\axis\wsdl4j.jar contrib\axis\saaj.jar contrib\axi
s\soap.jar contrib\axis\commons-logging.jar contrib\axis\log4j.jar
contrib\axis\mail.jar
2. build jar with ant: make sure the their are at least one blank between
values of Class-Path.
<jar destfile="../Client/client.jar" >
<fileset dir="${build.dir}"/>
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="com.MainClass"/>
<attribute name="Class-Path" value=" contrib\axis\jaxrpc.jar contrib\axis\activation.jar .. "/>
</manifest>
</jar>
3. If you haven't pack you class file in jar, create a bat to set CLASSPATH
exactly to all jars.
Hope this helps
Maybe you are looking for
-
Macbook Pro Early 2009 Randomly Sleeps / Black Screen While In use
My macbook pro Early 2009, randomly goes to sleep while I am using the computer, I first noticed it occuring while I was using the mini display adapter to a computer monitor, and using a second monitor and watching a movie, the screen would go blank
-
Jsp Page session vaiable to java class and vise versa
Hi to all, I am new to jsp, i have to programs, one jsp page and another java class. in jsp page i get the user data from html form and put the id in session. here i have to call the session vaiable to my java class where it (variable)initialize a fi
-
EAP-TTLS with GTC (Generic Token Card)
Greetings iPad Forum, Our corporate wireless is currently setup to use EAP-TTLS with EAP-GTC (Generic Token Card) for inner identity. In other words, once a connection to the AP is initiated from a PC or Mac, the user is prompted for their RSA SecurI
-
Hey all! Hope you are all getting ready for the holidays! I have several iPhone text short cuts set up (think text expansion) and I know how to adjust them on all the iOS devices, however I do not think there is a way to adjust them on the Mac Air I
-
~ Is there a combo mic/headphone connection ? ~
Is there a Four-segmented connector that supports a headphone with an attached microphone ? ~ Thanks HP 700-010xt Desktop All my posts are my opinion.