Cannot load login module class
Hi,
i'm working on customizing Login Module now.
i have bulit the project and deploy the SDA file follow this link "[sap help|http://help.sap.com/saphelp_nw70/helpdata/en/76/08b34095070361e10000000a155106/frameset.htm]".
My Java project name is: MyLoginModule, with class file "MyLoginModuleClass" in "com.mycompany" package.
And my library project name is: MyLoginModuleLibrary, with "MyLoginModule.jar" in Jars,
and with "security_api" "com.sap.tc.logging" "com.sap.engin.lib.add_ejb" "security.class" "com.sap.security.api.sda" "com.sap.security.core.sda" in reference
After these steps, logon is failed.
and i get some log using "Note 1045019 - Web diagtool" below:
LOGIN.FAILED
User: N/A
Authentication Stack: ticket
Login Module Flag Initialize Login Commit Abort Details
1. com.sap.security.core.server.jaas.EvaluateTicketLoginModule
--- SUFFICIENT ok false true
2. com.mycompany.MyLoginModuleClass
--- OPTIONAL Cannot load login module class. com.mycompany.MyLoginModuleClass
Found in negative cache
---Loader Info ---
ClassLoader name: [common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;
service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore
Parent loader name: [Frame ClassLoader]
References:
Why didn't i see MyLoginModuleLibrary in "ClassLoader name" though i've add it in ConfigTool already.
Maybe this is the reason "cannot load login module calss com.mycompany.MyLoginModule"?
Any suggestion?
Regards,
Fishy
hi
this will give some idea
http://help.sap.com/saphelp_nw2004s/helpdata/en/2b/23e4407211732ae10000000a155106/content.htm
http://docs.sun.com/app/docs/doc/820-4801/gbyuw?a=view
Re: Deploying a custom login module to the J2EE engine
bvr
Edited by: bvr on May 7, 2009 12:53 PM
Similar Messages
-
Cannot load login module , Found in negative cache?
Hello All,
I am trying out the SSO with Header Variable Login , by adding the UserId into the Header Variable.
I am able to login to the Portal as per the steps given in "HeaderVariableLoginModule" http://help.sap.com/saphelp_nw04/helpdata/en/d0/a3d940c2653126e10000000a1550b0/frameset.htm
There is another extension of HeaderVariableLoginModule called the IPHeaderVariableLoginModule, which allows login only if the request comes from the specified IP address.
But after trying this i am getting the foll error :
Cannot load login module class de.platinion.security.IPHeaderLoginModule.
[EXCEPTION]
java.lang.ClassNotFoundException: de.platinion.security.IPHeaderLoginModule
Found in negative cache
Loader Info -
ClassLoader name: [common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore]
Parent loader name: [Frame ClassLoader]
I have followed the steps given in the document, https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/069eaf4b-0901-0010-6e89-d1fcceebcbf1
but still am getting the same error,
I guess it has something to do with the ClassLoader or classpath coz it gives a ClassNotFoundException, but am not able to find a solution..
Could some1 help me out??
Thanks,
MeghanaHi!
Did you found any solution to this? I have the same error. (NW04s SP13)
Br
Anton Renberg -
Cannot load login module in SAP WAS 6.40 SP12
I have developed a custom login module per the documentation in the SAP Help Portal and deployed it from the SAP NetWeaver Developer Studio to SDM successfully. I've configured the J2EE Engine to use this module per the documentation. After restarting the application server with the custom login module, I cannot login to the portal at all due to a ClassNotFoundException on my custom login class (com.ugs.sap.webkey.WebKeySso).
I'm not sure why this is happening. I've added the JAR to the library project per the documentation. My library project that was deployed to SDM is called WebKeySsoForSapLib. I added "library:WebKeySsoForSapLib" to the LoginModuleClassLoaders property in the Config Tool per the documentation.
I saw another post with this very same problem but no resolution. Does anyone have a solution to this? Points will be awarded.
The documentation to which I refer can be found at http://help.sap.com/saphelp_nw04/helpdata/en/f8/9636eedafe8b4589cd6e9e4e73fd3c/frameset.htmhi Eric,
we are also using custom Login Modules in our Web application.
I've got a question concerning custom LoginModules.
I hav read all the documents in SAP Library regarding creating LoginModule, making library and registering it on SAP J2EE engine.
I hav implemented a LoginModule as part of an application by using standard java interface <b>"LoginModule".</b>
I don't want it to implement interface <b>"AbstractLoginModule"</b> which is provided by SAP.
public class TestLoginModule implements LoginModule
1.Now where can i mention the Login configuration information? for example
MyLoginModule
com.mypackage.auth.TestLoginModule
required
debug="true"
serviceName="SecurityService";
2. is ther any <b>.config</b> to mention this Login information?
I found out <b>"fallback.config"</b> file which is in dir D:\usr\sap\J2E\JC00\j2ee\cluster\server0\temp\security.
Is this file helpful for me.
3. Steps i done are as follows,
1) I created the library <b>MyLoginModuleLibrary</b> for the TestLoginModule and deployed it on J2EE engine.
2) Then deployed my web application.
3) Create entry for my login module in Visual Administartor ->Security Service Provider.
4) I also added my LoginModule to LoginModule stack for my web application.
5)Now i m refering this LoginModule in my servlet page as
CallbackHandler callbackHandler = new MyCallbackHandler(userName, password);
LoginContext loginContext = new LoginContext("MyLoginModule", callbackHandler);
But at second line it is giving <b>Exception :</b>
javax.security.auth.login.LoginException: No LoginModules configured for MyLoginModule
at javax.security.auth.login.LoginContext.init(LoginContext.java:189)
Can u plz help me, i caant able to go forward without this. -
SOA WebLogic : Cannot load JDBC driver class
Hi, I'm new to this Oracle SOA World. Currently I'm trying to configure environment on my system. I found a very useful document to install all related SOA component to my system, the document name was 'Quick Start Guide for Oracle® SOA Suite 11gR1 (11.1.1.5.0)'. I did all the steps written in the document and have installed all the components successfully, component including Database, Jdevelper, WebLogic Server, RCU, SOA suite, service bus, all are installed successfully.
But when I'm trying to Configure Application Server (start -> Oracle SOA 11g-Home1), at one step 'Configure JDBC Component Schema' , here I'm getting this message
* The driver class listed below was not found in product installation
vendor: Derby
Driver: org.apache.derby.jdbc.clientdriver
A Test will not be performed on any database connections using this driver
In addition, when i just ignore this message and continue installation, after installation when i run weblogic server then it gives error and gets terminated
here is weblogic server log:
* 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:
Listening for transport dt_socket at address: 8453
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b50)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode)
Starting WLS with line:
C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xdebug -Xnoagent -Xrunjdwp:transpo
rt=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms512m -Xmx
1024m -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=AdminServer -Djava.
security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Xveri
fy:none -Xverify:none -da:org.apache.xmlbeans... -ea -da:com.bea... -da:javeli
n... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbcons
ole... -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE
~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dcom
mon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apach
e.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=
C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~2 -Djrockit.optfile=C:\Oracle\MIDDLE~
1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.
dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~2\config\FMWCON~1\servers\AdminSe
rver -Doracle.domain.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~2\con
fig\FMWCON~1 -Digf.arisidbeans.carmlloc=C:\Oracle\MIDDLE~1\USER_P~1\domains\BAS
E_D~2\config\FMWCON~1\carml -Digf.arisidstack.home=C:\Oracle\MIDDLE~1\USER_P~1\
domains\BASE_D~2\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\
Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~2\config\fmwconfig\jps-config.xml -Dorac
le.deployed.app.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~2\servers\AdminSe
rver\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirector
y=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\O
RACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.md
s.net.protocol"|"oracle.fabric.common.classloaderurl.handler"|"oracle.fabric.com
mon.uddiurl.handler"|"oracle.bpm.io.fs.protocol -Dweblogic.jdbc.remoteEnabled=f
alse -da:org.apache.xmlbeans... -Dsoa.archives.dir=C:\Oracle\Middleware\Oracle_
SOA1\soa -Dsoa.oracle.home=C:\Oracle\Middleware\Oracle_SOA1 -Dsoa.instance.home=
C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~2 -Dtangosol.coherence.clusteraddress
=227.7.7.9 -Dtangosol.coherence.clusterport=9778 -Dtangosol.coherence.log=jdk -D
javax.xml.soap.MessageFactory=oracle.j2ee.ws.saaj.soap.MessageFactoryImpl -Dwebl
ogic.transaction.blocking.commit=true -Dweblogic.transaction.blocking.rollback=t
rue -Djavax.net.ssl.trustStore=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoTrus
t.jks -Dem.oracle.home=C:\Oracle\Middleware\oracle_common -Djava.awt.headless=tr
ue -Dums.oracle.home=C:\Oracle\Middleware\Oracle_SOA1 -Dweblogic.management.disc
over=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dwe
blogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifes
t_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_c
lasspath weblogic.Server
Listening for transport dt_socket at address: 8453
<2012-mar-02 kl 21:14 CET> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE
Provider self-integrity check for better startup performance. To enable this ch
eck, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<2012-mar-02 kl 21:14 CET> <Info> <Security> <BEA-090906> <Changing the default
Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable th
is change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
<2012-mar-02 kl 21:14 CET> <Info> <WebLogicServer> <BEA-000377> <Starting WebLog
ic Server with Java HotSpot(TM) Client VM Version 19.1-b02 from Sun Microsystems
Inc.>
<2012-mar-02 kl 21:14 CET> <Info> <Management> <BEA-141107> <Version: WebLogic S
erver 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 >
<2012-mar-02 kl 21:14 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state
changed to STARTING>
<2012-mar-02 kl 21:14 CET> <Info> <WorkManager> <BEA-002900> <Initializing self-
tuning thread pool>
<2012-mar-02 kl 21:14 CET> <Notice> <Log Management> <BEA-170019> <The server lo
g file C:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServe
r\logs\AdminServer.log is opened. All server side log events will be written to
this file.>
<2012-mar-02 kl 21:14 CET> <Notice> <Security> <BEA-090082> <Security initializi
ng using security realm myrealm.>
<2012-mar-02 kl 21:14 CET> <Warning> <oracle.as.jmx.framework.MessageLocalizatio
nHelper> <J2EE JMX-46041> <The resource for bundle "oracle.jrf.i18n.MBeanMessage
Bundle" with key "oracle.jrf.JRFServiceMBean.checkIfJRFAppliedOnMutipleTargets"
cannot be found.>
<2012-mar-02 kl 21:14 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state
changed to STANDBY>
<2012-mar-02 kl 21:14 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state
changed to STARTING>
<2012-mar-02 kl 21:15 CET> <Critical> <JTA> <BEA-110482> <A logging last resourc
e failed during initialization. The server cannot boot unless all configured log
ging last resources (LLRs) initialize. Failing reason:
weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class:
org.apache.derby.jdbc.ClientDriver
weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class:
org.apache.derby.jdbc.ClientDriver
at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:3
01)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(Connect
ionEnvFactory.java:75)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionE
nvFactory.java:131)
at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactor
y(ConnectionPool.java:712)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.
java:235)
Truncated. see log file for complete stacktrace
>
<2012-mar-02 kl 21:15 CET> <Error> <Deployer> <BEA-149205> <Failed to initialize
the application 'wlsbjmsrpDataSource' due to error weblogic.application.ModuleE
xception: .
weblogic.application.ModuleException:
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:302)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
leListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
oymentCallbackFlow.java:517)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:52)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
loymentCallbackFlow.java:159)
Truncated. see log file for complete stacktrace
Caused By: weblogic.common.resourcepool.ResourceSystemException: Cannot load dri
ver class: org.apache.derby.jdbc.ClientDriver
at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:3
01)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(Connect
ionEnvFactory.java:75)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionE
nvFactory.java:131)
at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactor
y(ConnectionPool.java:712)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.
java:235)
Truncated. see log file for complete stacktrace
>
<2012-mar-02 kl 21:16 CET> <Alert> <OSB Security> <BEA-387068> <There is no PKI
credential mapper provider configured in your security realm. Service key provid
er management will be disabled. Configure a PKI credential mapper provider if yo
u need service provider support. This is typically the case if you have Oracle S
ervice Bus proxy services with web service security enabled or outbound 2-way SS
L connections.>
<2012-mar-02 kl 21:16 CET> <Warning> <Coherence> <BEA-000000> <Oracle Coherence
3.6.0.4 (member=n/a): Local address "127.0.0.1" is a loopback address; this clus
ter node will not connect to nodes located on different machines>
<2012-mar-02 kl 21:17 CET> <Warning> <J2EE> <BEA-160140> <Unresolved optional pa
ckage references (in META-INF/MANIFEST.MF): [Extension-Name: oracle.applcore.mod
el, Specification-Version: 0.1, Implementation-Version: 11.1.1.0.0, referenced f
rom: C:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\
tmp\_WL_user\usermessagingserver\a7bt7z]. Make sure the referenced optional pack
age has been deployed as a libraryHi:
try placing the jars that represent ur driver, here
For both Windows and Linux, you must perform the following steps:
Drop the vendor-specific driver JAR files to the user_projects/domains/soainfra/lib directory.
Drop the vendor-specific driver JAR files to the <Weblogic_Home>/server/lib.
Edit the classpath to include the vendor-specific jar file in <Weblogic_HOME>/common/bin/commEnv.sh
This info was copied, from here: http://docs.oracle.com/cd/E21764_01/integration.1111/e10231/adptr_db.htm#CHDBEJDC
Hope this helps
best -
Cannot load underlying module for 'Darwin'
I had to move my "Developer" account from some external drive to the internal drive of my Mac.
For this I zipped the users folder, copied to the internal "users" drive and unzipped it there.
Then I changed the users folder in the users settings. I also updated the permissions on the user "Developer" folder,
allowing admins "R&W", the user "R&W" (+ setting it as owner) and everyone else no permissions.
I was able to login to the new home dir. I opened my old Xcode project (that was updated automatically in some fashion).
But when I compile it I get the error "cannot load underlying module for 'Darwin'"
=> What went wrong ?
Btw:
I already removed Xcode, downloaded it again and placed it into the programs folder - same issue ... :-)Here is the stack trace:
<unknown>:0: error: cannot load underlying module for 'Darwin'
0 swift 0x00000001025fe968 llvm::sys::PrintStackTrace(__sFILE*) + 40
1 swift 0x00000001025fee54 SignalHandler(int) + 452
2 libsystem_platform.dylib 0x00007fff828c1f1a _sigtramp + 26
3 libsystem_platform.dylib 0x0000000000000028 _sigtramp + 2104746280
4 swift 0x0000000101b63588 swift::ModuleFile::getType(swift::Fixnum<31u, unsigned int>) + 856
5 swift 0x0000000101b6936b swift::ModuleFile::getDecl(swift::Fixnum<31u, unsigned int>, swift::Optional<swift::DeclContext*>) + 16027
6 swift 0x0000000101b81671 swift::ModuleFile::loadExtensions(swift::NominalTypeDecl*) + 385
7 swift 0x0000000101bbbd01 swift::SerializedModuleLoader::loadExtensions(swift::NominalTypeDecl*, unsigned int) + 49
8 swift 0x00000001029683af swift::ASTContext::loadExtensions(swift::NominalTypeDecl*, unsigned int) + 63
9 swift 0x00000001029c5339 swift::NominalTypeDecl::getExtensions() + 73
10 swift 0x00000001029ec9e6 swift::NominalTypeDecl::lookupDirect(swift::DeclName) + 22
11 swift 0x00000001029eae8a swift::DeclContext::lookupQualified(swift::Type, swift::DeclName, unsigned int, swift::LazyResolver*, llvm::SmallVectorImpl<swift::ValueDecl*>&) const + 3178
12 swift 0x0000000101c1123f (anonymous namespace)::SwiftDeclConverter::recordObjCOverride(swift::AbstractFunctionDecl* ) + 191
13 swift 0x0000000101c047ab (anonymous namespace)::SwiftDeclConverter::VisitObjCMethodDecl(clang::ObjCMethodDecl const*, swift::DeclContext*, bool) + 2299
14 swift 0x0000000101bfffb4 clang::declvisitor::Base<clang::declvisitor::make_const_ptr, (anonymous namespace)::SwiftDeclConverter, swift::Decl*>::Visit(clang::Decl const*) + 3076
15 swift 0x0000000101bff37c swift::ClangImporter::Implementation::importDeclImpl(clang::NamedDecl const*, bool&, bool&) + 316
16 swift 0x0000000101c03ad2 swift::ClangImporter::Implementation::importDeclAndCacheImpl(clang::NamedDecl const*, bool) + 226
17 swift 0x0000000101c07d3e swift::ClangImporter::Implementation::loadAllMembers(swift::Decl const*, unsigned long long, bool*) + 1486
18 swift 0x00000001029ccb56 swift::IterableDeclContext::loadAllMembers() const + 102
19 swift 0x00000001029c313c swift::NominalTypeDecl::getMembers(bool) const + 28
20 swift 0x00000001029eca1f swift::NominalTypeDecl::lookupDirect(swift::DeclName) + 79
21 swift 0x00000001029eae8a swift::DeclContext::lookupQualified(swift::Type, swift::DeclName, unsigned int, swift::LazyResolver*, llvm::SmallVectorImpl<swift::ValueDecl*>&) const + 3178
22 swift 0x0000000101c04b17 (anonymous namespace)::SwiftDeclConverter::VisitObjCPropertyDecl(clang::ObjCPropertyDecl const*, swift::DeclContext*) + 183
23 swift 0x0000000101bfffea clang::declvisitor::Base<clang::declvisitor::make_const_ptr, (anonymous namespace)::SwiftDeclConverter, swift::Decl*>::Visit(clang::Decl const*) + 3130
24 swift 0x0000000101bff37c swift::ClangImporter::Implementation::importDeclImpl(clang::NamedDecl const*, bool&, bool&) + 316
25 swift 0x0000000101c03ad2 swift::ClangImporter::Implementation::importDeclAndCacheImpl(clang::NamedDecl const*, bool) + 226
26 swift 0x0000000101c07d3e swift::ClangImporter::Implementation::loadAllMembers(swift::Decl const*, unsigned long long, bool*) + 1486
27 swift 0x00000001029ccb56 swift::IterableDeclContext::loadAllMembers() const + 102
28 swift 0x00000001029c35f5 swift::ExtensionDecl::getMembers(bool) const + 21
29 swift 0x00000001029ec9fd swift::NominalTypeDecl::lookupDirect(swift::DeclName) + 45
30 swift 0x00000001029eae8a swift::DeclContext::lookupQualified(swift::Type, swift::DeclName, unsigned int, swift::LazyResolver*, llvm::SmallVectorImpl<swift::ValueDecl*>&) const + 3178
31 swift 0x0000000101c04b17 (anonymous namespace)::SwiftDeclConverter::VisitObjCPropertyDecl(clang::ObjCPropertyDecl const*, swift::DeclContext*) + 183
32 swift 0x0000000101bfffea clang::declvisitor::Base<clang::declvisitor::make_const_ptr, (anonymous namespace)::SwiftDeclConverter, swift::Decl*>::Visit(clang::Decl const*) + 3130
33 swift 0x0000000101bff37c swift::ClangImporter::Implementation::importDeclImpl(clang::NamedDecl const*, bool&, bool&) + 316
34 swift 0x0000000101c03ad2 swift::ClangImporter::Implementation::importDeclAndCacheImpl(clang::NamedDecl const*, bool) + 226
35 swift 0x0000000101c07d3e swift::ClangImporter::Implementation::loadAllMembers(swift::Decl const*, unsigned long long, bool*) + 1486
36 swift 0x00000001029ccb56 swift::IterableDeclContext::loadAllMembers() const + 102
37 swift 0x00000001029c35f5 swift::ExtensionDecl::getMembers(bool) const + 21
38 swift 0x00000001029ec9fd swift::NominalTypeDecl::lookupDirect(swift::DeclName) + 45
39 swift 0x00000001029eae8a swift::DeclContext::lookupQualified(swift::Type, swift::DeclName, unsigned int, swift::LazyResolver*, llvm::SmallVectorImpl<swift::ValueDecl*>&) const + 3178
40 swift 0x0000000101c04b17 (anonymous namespace)::SwiftDeclConverter::VisitObjCPropertyDecl(clang::ObjCPropertyDecl const*, swift::DeclContext*) + 183
41 swift 0x0000000101bfffea clang::declvisitor::Base<clang::declvisitor::make_const_ptr, (anonymous namespace)::SwiftDeclConverter, swift::Decl*>::Visit(clang::Decl const*) + 3130
42 swift 0x0000000101bff37c swift::ClangImporter::Implementation::importDeclImpl(clang::NamedDecl const*, bool&, bool&) + 316
43 swift 0x0000000101c03ad2 swift::ClangImporter::Implementation::importDeclAndCacheImpl(clang::NamedDecl const*, bool) + 226
44 swift 0x0000000101c07d3e swift::ClangImporter::Implementation::loadAllMembers(swift::Decl const*, unsigned long long, bool*) + 1486
45 swift 0x00000001029ccb56 swift::IterableDeclContext::loadAllMembers() const + 102
46 swift 0x00000001029c35f5 swift::ExtensionDecl::getMembers(bool) const + 21
47 swift 0x00000001029ec9fd swift::NominalTypeDecl::lookupDirect(swift::DeclName) + 45
48 swift 0x00000001029eae8a swift::DeclContext::lookupQualified(swift::Type, swift::DeclName, unsigned int, swift::LazyResolver*, llvm::SmallVectorImpl<swift::ValueDecl*>&) const + 3178
49 swift 0x0000000101c1123f (anonymous namespace)::SwiftDeclConverter::recordObjCOverride(swift::AbstractFunctionDecl* ) + 191
50 swift 0x0000000101c047ab (anonymous namespace)::SwiftDeclConverter::VisitObjCMethodDecl(clang::ObjCMethodDecl const*, swift::DeclContext*, bool) + 2299
51 swift 0x0000000101bfffb4 clang::declvisitor::Base<clang::declvisitor::make_const_ptr, (anonymous namespace)::SwiftDeclConverter, swift::Decl*>::Visit(clang::Decl const*) + 3076
52 swift 0x0000000101bff37c swift::ClangImporter::Implementation::importDeclImpl(clang::NamedDecl const*, bool&, bool&) + 316
53 swift 0x0000000101c03ad2 swift::ClangImporter::Implementation::importDeclAndCacheImpl(clang::NamedDecl const*, bool) + 226
54 swift 0x0000000101c07d3e swift::ClangImporter::Implementation::loadAllMembers(swift::Decl const*, unsigned long long, bool*) + 1486
55 swift 0x00000001029ccb56 swift::IterableDeclContext::loadAllMembers() const + 102
56 swift 0x00000001029c35f5 swift::ExtensionDecl::getMembers(bool) const + 21
57 swift 0x00000001029ec9fd swift::NominalTypeDecl::lookupDirect(swift::DeclName) + 45
58 swift 0x00000001029eae8a swift::DeclContext::lookupQualified(swift::Type, swift::DeclName, unsigned int, swift::LazyResolver*, llvm::SmallVectorImpl<swift::ValueDecl*>&) const + 3178
59 swift 0x0000000101c04b17 (anonymous namespace)::SwiftDeclConverter::VisitObjCPropertyDecl(clang::ObjCPropertyDecl const*, swift::DeclContext*) + 183
60 swift 0x0000000101bfffea clang::declvisitor::Base<clang::declvisitor::make_const_ptr, (anonymous namespace)::SwiftDeclConverter, swift::Decl*>::Visit(clang::Decl const*) + 3130
61 swift 0x0000000101bff37c swift::ClangImporter::Implementation::importDeclImpl(clang::NamedDecl const*, bool&, bool&) + 316
62 swift 0x0000000101c03ad2 swift::ClangImporter::Implementation::importDeclAndCacheImpl(clang::NamedDecl const*, bool) + 226
63 swift 0x0000000101c07d3e swift::ClangImporter::Implementation::loadAllMembers(swift::Decl const*, unsigned long long, bool*) + 1486
64 swift 0x00000001029ccb56 swift::IterableDeclContext::loadAllMembers() const + 102
65 swift 0x00000001029c35f5 swift::ExtensionDecl::getMembers(bool) const + 21
66 swift 0x00000001029ec9fd swift::NominalTypeDecl::lookupDirect(swift::DeclName) + 45
67 swift 0x00000001029eae8a swift::DeclContext::lookupQualified(swift::Type, swift::DeclName, unsigned int, swift::LazyResolver*, llvm::SmallVectorImpl<swift::ValueDecl*>&) const + 3178
68 swift 0x0000000101c04b17 (anonymous namespace)::SwiftDeclConverter::VisitObjCPropertyDecl(clang::ObjCPropertyDecl const*, swift::DeclContext*) + 183
69 swift 0x0000000101bfffea clang::declvisitor::Base<clang::declvisitor::make_const_ptr, (anonymous namespace)::SwiftDeclConverter, swift::Decl*>::Visit(clang::Decl const*) + 3130
70 swift 0x0000000101bff37c swift::ClangImporter::Implementation::importDeclImpl(clang::NamedDecl const*, bool&, bool&) + 316
71 swift 0x0000000101c03ad2 swift::ClangImporter::Implementation::importDeclAndCacheImpl(clang::NamedDecl const*, bool) + 226
72 swift 0x0000000101c07d3e swift::ClangImporter::Implementation::loadAllMembers(swift::Decl const*, unsigned long long, bool*) + 1486
73 swift 0x00000001029ccb56 swift::IterableDeclContext::loadAllMembers() const + 102
74 swift 0x00000001029c35f5 swift::ExtensionDecl::getMembers(bool) const + 21
75 swift 0x00000001029ec9fd swift::NominalTypeDecl::lookupDirect(swift::DeclName) + 45
76 swift 0x00000001029eae8a swift::DeclContext::lookupQualified(swift::Type, swift::DeclName, unsigned int, swift::LazyResolver*, llvm::SmallVectorImpl<swift::ValueDecl*>&) const + 3178
77 swift 0x00000001028ebd20 swift::TypeChecker::lookupMember(swift::Type, swift::DeclName, swift::DeclContext*, bool) + 112
78 swift 0x00000001028ec3c2 swift::TypeChecker::lookupConstructors(swift::Type, swift::DeclContext*) + 34
79 swift 0x00000001028c965a swift::TypeChecker::addImplicitConstructors(swift::NominalTypeDecl*, llvm::SmallVectorImpl<swift::Decl*>&) + 1050
80 swift 0x00000001028c253d swift::TypeChecker::checkInheritanceClause(swift::Decl*, swift::DeclContext*, swift::GenericTypeResolver*) + 5213
81 swift 0x00000001028c459f swift::TypeChecker::validateDecl(swift::ValueDecl*, bool) + 1631
82 swift 0x00000001028d2ebf swift::ASTVisitor<(anonymous namespace)::DeclChecker, void, void, void, void, void, void>::visit(swift::Decl*) + 2287
83 swift 0x00000001028c3f0b swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 123
84 swift 0x00000001028aa1d8 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, unsigned int) + 1384
85 swift 0x0000000101bdf5dd swift::CompilerInstance::performSema() + 2381
86 swift 0x0000000101944788 frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 2008
87 swift 0x000000010194286d main + 1677
88 libdyld.dylib 0x00007fff849515c9 start + 1
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ usr/bin/swift -frontend -c /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/Speaker.swift -primary-file /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/EventViewController.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/SpeechTableViewCell.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/SpeechDAO.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/SpeechTableViewController .swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/BaseViewController.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/MyCoreDataUtil.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/SpeakerViewController.swi ft /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/SpeakerExtension.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/MyGraficsUtil.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/SpeakerDAO.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/Speech.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/SpeechViewController.swif t /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/AppDelegate.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/EventDAO.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/SpeakerTableViewCell.swif t /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/Event.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/EventTableViewController. swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/BaseTableViewController.s wift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/EventExtension.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/AppDelegate2.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/EventTableViewCell.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/SpeechExtention.swift /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/SpeakerTableViewControlle r.swift -target x86_64-apple-ios7.1 -target-cpu core2 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/D eveloper/SDKs/iPhoneSimulator8.2.sdk -I /Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfise vremphydfg/Build/Products/Debug-iphonesimulator -F /Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfise vremphydfg/Build/Products/Debug-iphonesimulator -g -import-objc-header /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/MyEvent-Bridging-Header.h -module-cache-path /Users/developer/Library/Developer/Xcode/DerivedData/ModuleCache -Xcc -I/Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfi sevremphydfg/Build/Intermediates/MyEvent.build/Debug-iphonesimulator/MyEvent.bui ld/swift-overrides.hmap -Xcc -iquote -Xcc /Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfise vremphydfg/Build/Intermediates/MyEvent.build/Debug-iphonesimulator/MyEvent.build /MyEvent-generated-files.hmap -Xcc -I/Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfi sevremphydfg/Build/Intermediates/MyEvent.build/Debug-iphonesimulator/MyEvent.bui ld/MyEvent-own-target-headers.hmap -Xcc -I/Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfi sevremphydfg/Build/Intermediates/MyEvent.build/Debug-iphonesimulator/MyEvent.bui ld/MyEvent-all-target-headers.hmap -Xcc -iquote -Xcc /Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfise vremphydfg/Build/Intermediates/MyEvent.build/Debug-iphonesimulator/MyEvent.build /MyEvent-project-headers.hmap -Xcc -I/Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfi sevremphydfg/Build/Products/Debug-iphonesimulator/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchai n/usr/include -Xcc -I/Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfi sevremphydfg/Build/Intermediates/MyEvent.build/Debug-iphonesimulator/MyEvent.bui ld/DerivedSources/x86_64 -Xcc -I/Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfi sevremphydfg/Build/Intermediates/MyEvent.build/Debug-iphonesimulator/MyEvent.bui ld/DerivedSources -Xcc -DDEBUG=1 -emit-module-doc-path /Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfise vremphydfg/Build/Intermediates/MyEvent.build/Debug-iphonesimulator/MyEvent.build /Objects-normal/x86_64/EventViewController~partial.swiftdoc -Onone -module-name MyEvent -emit-module-path /Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfise vremphydfg/Build/Intermediates/MyEvent.build/Debug-iphonesimulator/MyEvent.build /Objects-normal/x86_64/EventViewController~partial.swiftmodule -serialize-diagnostics-path /Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfise vremphydfg/Build/Intermediates/MyEvent.build/Debug-iphonesimulator/MyEvent.build /Objects-normal/x86_64/EventViewController.dia -emit-dependencies-path /Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfise vremphydfg/Build/Intermediates/MyEvent.build/Debug-iphonesimulator/MyEvent.build /Objects-normal/x86_64/EventViewController.d -o /Users/developer/Library/Developer/Xcode/DerivedData/MyEvent-duznkkgndabyibfise vremphydfg/Build/Intermediates/MyEvent.build/Debug-iphonesimulator/MyEvent.build /Objects-normal/x86_64/EventViewController.o
1. While type-checking 'EventViewController' at /Users/developer/_CloudStation/Work2/MyEvent5/MyEvent/EventViewController.swift :11:1
2. While reading from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ usr/lib/swift/iphonesimulator/Foundation.swiftmodule
3. While deserializing decl #105 (EXTENSION_DECL) -
Cannot load JDBC Driver Class in Tomcat5.5 using struts.
Hello to all,
I'm working in the struts environment using Esclipse3.2 IDE.
And I have installed Tomcat5.5 server.I have created the LoginForm
in struts.Now i like to connect my LoginForm with MySql database.I
have also created the database in MySql naming strutsdatabase.
I had also download the mysql-connector-java-3.0.16-ga-bin.jar and
save that in C:/tomcat/commons/lib directory.
While running I have got the below error:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:598)
at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:808)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:335)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
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 java.lang.ClassLoader.loadClass(Unknown Source)
javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE
at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:812)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:335)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
And I have attached my struts-config.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software
Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources>
<data-source
type="org.apache.tomcat.dbcp.dbcp.BasicDataSource">
<set-property property="url"
value="jdbc:mysql://localhost:3306/strutsdatabase?autoReconnect
=true"/>
<set-property property="driverClassName"
value="com.mysql.jdbc.Driver"/>
<set-property property="username" value=""/>
<set-property property="password" value=""/>
<set-property property="maxActive" value="10"/>
<set-property property="validationQuery" value="SELECT
COUNT(*) FROM test"/>
<set-property property="maxWait" value="5000"/>
<set-property property="defaultAutoCommit" value="false"/>
</data-source>
</data-sources>
<form-beans>
<form-bean name="LoginForm"
type="fino.web.struts.action.LoginForm"/>
</form-beans>
<global-exceptions/>
<global-forwards/>
<action-mappings>
<action name="LoginForm" path="/login" scope="request"
type="fino.web.struts.action.LoginAction" validate="true">
<forward name="success" path="/success.jsp"/>
<forward name="failure" path="/failure.jsp"/>
</action>
</action-mappings>
<controller/>
<message-resources null="false"
parameter="org.apache.struts.action.ActionResources"/>
</struts-config>
Friends,please help me to find solution to this problem.Note: This thread was originally posted in the [Java Compiler|http://forums.sun.com/forum.jspa?forumID=7] forum, but moved to this forum for closer topic alignment.
-
Windows 7-8.1 Can not change the MAC Address on wifi and cannot load login page in public HotSpot.
Adapter: Ralink RT3070 Chipset wifi adapter
Tested: os Windows 8.1 Professional
Hot Spot: 802.11b
The first problem windows 7-8.1 got IP adress and connect he public HotSpot but cannot load login page or any other page. It does not work with it.
The second problem Wifi canrd/configure/Advandes (No network adress change function).Tested with the default windows driver and the ralink rt 3070 driver the same problem.On windows XP the same function the same driver works perfectly.
multiple users to have expressed interest in the problem But Microsoft not corrected the problem window7-8.1 10?
lizardsystems.com/wiki/change_mac_address/faq/change_mac_address_in_windows_7
blog.technitium.com/2011/05/tmac-issue-with-wireless-network.html
superuser.com/questions/519189/how-to-change-the-mac-address-in-win-8-to-spoof-a-roku-player-through-a-wifi-spl
social.technet.microsoft.com/Forums/windows/en-US/59e07df3-471c-499e-ad5f-e7cb507595df/cannot-change-mac-address-in-windows-7-driver-has-option-doesnt-work-neither-does-regedit-ms?forum=w7itpronetworking
networksteve.com/windows/topic.php/CANNOT_CHANGE_WIRELESS_%28SPOOF%29_MAC_ADDRESS_ON_WINDOWS_7/?TopicId=16810&Posts=1
On windows XP or linux have a MAC adress Change function allow 00 mac adress and another normal mac adress range.On windows 8.1 all Mac changer program dont work.This 2,6,A,E on second adress are not vaild Mac adress. You simply can not use normal MAC
addresses on windows 8.1.When i connect the usb the Pc windows 8.1 recognizes the adapter but the default driver and the downloaded ralink driver the same problem.On windows xp the current driver works perfectly have (Local Mac Network Adress) funktion
and works with the 802.11b hot spot.I got the internet my PC and laptop too public HotSpots and another wifi HotSpots if wont work correctly i can not use neither the windows 7,8,8.1 or 10. Many users have expressed interest in the problem more forums.
The 3. problem im tested in virtualbox the windows 7 and 8.1 on 8.1 (on the blue wifi platform) not show correctly the signal strengh. On windows 7 show this correctly.The windows 7-8.1 Configure/advanced the advanced options on Ralink 3070 the default (windows
driver) somehow downgraded function is less than for Xp. Configure/advanced the advanced options (needs to be upgraded in the future) because it does not advance but rather regressed.
Today it is very common these wi-fi technology increasingly used (hotels,Public Hots Spots,Internet coffe,) growing free bublic wifi projects. The wifi funktions on windows need debugging and modernize.The quality of Wi-Fi is now the operating system
is now a thing order which is not good then the operating system is unusable.Hi,
For changing the MAC address for Windows 7 is designed with some limitation, we cannot get over it. Thanks for your understanding.
Under Windows 7, the possible range of spoofed addresses for wireless adapters that can be set is limited. To be used by Windows 7, a spoofed MAC address should have 0 as a least significant bit (unicast) and 1 as a second least significant
bit (locally administered) in the second nibble. Thus possible values for the second nibble are limited to 2, 6, A and E.
In other words
MAC address: “XY-XX-XX-XX-XX-XX” “X” can be anything hexadecimal. The hexadecimal “Y”, written in binary format, is Y: “kmnp”, where “p” is the least significant bit;
p=0 --> unicast;
p=1 --> multicast;
n=0 --> globally assigned MAC;
n=1 --> locally administered;
So, actually MAC can be changed to any combination in which p=0 and n=1;
“Y” can be 2, 6, A or E.
So the possible MAC addresses in Windows 7 for wireless adapters:
X2-XX-XX-XX-XX-XX
X6-XX-XX-XX-XX-XX
XA-XX-XX-XX-XX-XX
XE-XX-XX-XX-XX-XX
For the wifi hotspot issue, please check this blog to see if it can be helpful.
Windows 7 Connectivity Problems in Public Hotspots
http://blogs.technet.com/b/patrickr/archive/2010/07/28/windows-7-connectivity-problems-in-public-hotspots.aspx
Kate Li
TechNet Community Support -
Java.sql.SQLException: Cannot load JDBC driver class 'null'
Hi,
I am a beginner of using jdbc, i use the tomcat4.1.x, mysql3.23.54 and it's jdbc driver 2.0.14. I place the drive <in jar file> in tomcat/commons/lib and configure the server.xml, web.xml and some testing coding. But there are some error like the following:
java.sql.SQLException: Cannot load JDBC driver class 'null'
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:529)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312)
at foo.DBTest.init(DBTest.java:18)
at org.apache.jsp.test_jsp._jspService(test_jsp.java:48)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
of course its some of the error code and there are more.
Why I have this problems and how can I fix it? Can someone help me??
Thanks,
Tong
I place my test.jsp at tomcat/webapps/DBTest and DBTest.java at tomcat/webapps/DBTest/WEB-INF/classes/foo
additional of the tomcat/conf/server.xml
<Resource name="TestDB" auth="Container" type="javax.sql.DataSource" description="MySQL TestDB"/>
<ResourceParams name="TestDB">
<parameter><name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter><name>maxActive</name><value>10</value></parameter>
<parameter><name>maxIdle</name><value>1</value></parameter>
<parameter><name>maxWait</name><value>10000</value></parameter>
<parameter><name>username</name><value>javauser</value></parameter>
<parameter><name>password</name><value>javadude</value></parameter>
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost:3306/javatest?autoReconnect=true</value>
</parameter>
</ResourceParams>
tomcat/webapps/DBTest/WEB-INF/web.xml :
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<description>MySQL Test App</description>
</web-app>Post the part of your code that loads the driver and connects. My guess is you are using a variable for the name of the driver and the variable has not been set to anything(intially set to null).
Thanks
Cardwell -
Hi,
i am doing a forum application.
i am trying to connect database connection through javax.sql.DataSource.
I am using Eclipse editor for developing this application and i am using sql server 2000 database.
i have create a servlet file.
here is the coding.
DatabaseGetConnection.java
`````````````````````````````````````````
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.sql.DataSource;
public class DatabaseGetConnection extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
private Connection con=null;
private DataSource ds=null;
public DatabaseGetConnection() throws ServletException {
super();
public DatabaseGetConnection(final HttpServletRequest req, final HttpServletResponse res) throws ServletException, IOException {
this.doPost(req, res);
public void init() throws ServletException {
try
final Context initContext = new InitialContext();
final Context envContext = (Context)initContext.lookup("java:/comp/env");
this.ds = (DataSource)initContext.lookup("jdbc/mySQLServer");
}catch(final NamingException ne)
ne.printStackTrace();
}catch(final Exception e)
e.printStackTrace();
public DataSource getDS()
System.out.println("Datasource method calling");
if (this.ds!=null)
System.out.println("Datasource not null");
}else
System.out.println("Datasource null");
return this.ds;
public Connection getCon()
try
this.con=this.getDS().getConnection();
if (this.con!=null)
System.out.println("Connection Successfull");
}catch(final SQLException se)
System.out.print("Connection Establishment Error : ");
se.printStackTrace();
return this.con;
I have configured server.xml. here is the configuration
server.xml
````````````````
<GlobalNamingResources>
<Resource name="jdbc/mySQLServer" global="jdbc/mySQLServer" auth="Container"
type="javax.sql.DataSource" factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=forum;SelectMethod=cursor"
username="sa" password="sa" maxActive="20" maxIdle="10"
maxWait="-1"/>
</GlobalNamingResources>
here is the web.xml file
``````````````````````````````````
<resource-ref>
<res-ref-name>jdbc/mySQLServer</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
is this configuration correct? plz help me about the configuration and coding through Eclipse.
i have run the application and i got the error. here is the error details
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.microsoft.jdbc.sqlserver.SQLServerDriver'
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at com.forum.database.DatabaseGetConnection.getCon(DatabaseGetConnection.java:85)
at com.forum.database.DatabaseGetConnection.GetAllTopicSearch(DatabaseGetConnection.java:101)
at org.apache.jsp.test_jsp._jspService(test_jsp.java:73)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
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 java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760)
... 24 more
thanks and regards,
k.s.kumarPlease don't multipost, it's rude: http://forum.java.sun.com/thread.jspa?threadID=5219591
Please continue on that thread. -
Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
Hi,
At the moment I'm trying to get an example working. The error message I get is:
Unable to get connection, DataSource invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'"
The example I tried is http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html.
Configuration:
Wampserver 2.0 (Apache, MySQL, PHP for Windows XP), Tomcat 6.0 and jdk1.6.0_03.
The following files are installed in %CATALINA_HOME%/webabbs/
- Dbtest/test.jsp
- Dbtest/WEB-INF/web.xml
- Dbtest/WEB-INF/lib/standard.jar
- Dbtest/WEB-INF/lib/tomcat-dbcp.jar
- Dbtest/WEB-INF/lib/jstl.jar
Tia,
Abel.Hi,
I added the jar file containing the requested class to my lib directory. So the current contents of that directory is:
The following files are installed in %CATALINA_HOME%/webabbs/
- Dbtest/test.jsp
- Dbtest/WEB-INF/web.xml
- Dbtest/WEB-INF/lib/standard.jar
- Dbtest/WEB-INF/lib/tomcat-dbcp.jar
- Dbtest/WEB-INF/lib/jstl.jar
- Dbtest/WEB-INF/lib/mysql-connector-java-5.1.5-bin.jar
More importantly, I started my Wamp server.
The example works as it should have. Thanks for the feedback.
Abel -
Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'
Hi,
I'm trying to run my web app and connect to a MySQL database but keep getting this error:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'
any ideas?
Thanks!Lookup the stacktrace and find the root cause of the exception.
My cents on a ClassNotFoundException which is rather self-explaining.
By the way, the mentioned driver class name is a very old driver. You shouldn't be using that anymore. Surf to the MySQL homepage and download the most recent Connector/J JDBC driver for your database version. Documentation is also available over there. -
Cannot Load Evtouch Module for Touch Screen
I cannot seem to load the evtouch module I need for the touch screen on my laptop. This is the error I get in the Xorg.0.log file in /var/log - any ideas? Is there a way I can recompile this for the cuurent xorg server version?
(II) LoadModule: "evtouch"
(II) Loading /usr/lib/xorg/modules/input//evtouch_drv.so
(II) Module evtouch: vendor="Kenan Esau"
compiled for 4.3.99.902, module version = 0.8.8
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 2.1
(EE) module ABI major version (2) doesn't match the server's version (4)
(II) UnloadModule: "evtouch"
(II) Unloading /usr/lib/xorg/modules/input//evtouch_drv.so
(EE) Failed to load module "evtouch" (module requirement mismatch, 0)I have patched the evtouch source using Ubuntu diff file for this package (and other modifications to make it work with hal). It is loaded correctly now, but it doesn't work. When I touch the screen with the pen the mouse pointer goes to the upper left or down right corner. I made the calibration with ubuntu live and it works under ubuntu. Do you have the same problem with Arch?
EDIT: nevermind, I tried Ubuntu's binary and it worked, then I realized I forgot another debian patch. Adding this patch to the package I've made I got a working driver.
Last edited by gborzi (2009-04-25 19:37:30) -
Cannot load login profile for windows clients
Hi
i am using leopard 10.5.3.my users have a default windows profile path at /Server HD/Users/Profiles/username.when i login from windows clients some users cannot load the profile.the following error is displayed in windows clients
windows cannot load your roaming profile.
please help me to resolve this issue
regs
S.MohanI am having the same issue the clients can save the data to the path therefore cant read it upon logon...Grrrrr
-
Hi
I am trying to mount a CIFS share, which keeps failing.
It seems to be related to the fact that the md5 module isn't loaded.
I have tried to load the module, but it keeps failing
FATAL: Error inserting md5 (/lib/modules/3.0-ARCH/kernel/crypto/md5.ko.gz): Unknown symbol in module, or unknown parameter (see dmesg)
dmesg says:
md5: Unknown symbol md5_transform (err 0)
I have tried the following:
* reinstalling the kernel package (pacman -S linux), and rebooting
* running depmod then modprobe md5
* loading other modules, modprobe hmac (worked)
Does anyone have any ideas to fix this?
ThanksK, figured it out: Turns out that the standard arch kernel does not support the AVM Fritz PnP/PCI cards.
<sarcasm>Lol, not that this is _the_ most often used passive ISDN card for homeuser or anything... course support for this card is not compiled in, especially when there is support compiled in for pretty much every other isdn card (that are just hardly used at all) </sarcasm> -
Cannot load i915 module (drm_mm_get_block error)
Hi all,
I managed to get Arch up and running, however I've got some pretty bad UI lag (without compositing enabled). I checked and it seems as if the module for my Intel 965GM chipset isn't being loaded...
Whenever I do modprobe i915, I get the following error:
i915: Unknown symbol drm_mm_get_block
However, it appears that drm is being loaded just fine:
[drm] Initialzed drm 1.1.0 20060810
I have the xf86-video-intel-2.8.1-1 drivers installed, as well as kernel 2.6.30-ARCH.
Any help or advice would be appreciated - I'm trying to see if Arch is the distro for me.Hi all,
I managed to get Arch up and running, however I've got some pretty bad UI lag (without compositing enabled). I checked and it seems as if the module for my Intel 965GM chipset isn't being loaded...
Whenever I do modprobe i915, I get the following error:
i915: Unknown symbol drm_mm_get_block
However, it appears that drm is being loaded just fine:
[drm] Initialzed drm 1.1.0 20060810
I have the xf86-video-intel-2.8.1-1 drivers installed, as well as kernel 2.6.30-ARCH.
Any help or advice would be appreciated - I'm trying to see if Arch is the distro for me.
Maybe you are looking for
-
Hello! Here's some information that might be familiar, I don't know: I got my Mac late 2014 Yosemite, 13-inch, Retina 120 GB, 8 GB RAM This would be the second time that I'm 'uninstalling' Spotify. The first time was a few months back, when it wouldn
-
HOW DO I RETRIEVE PURCHASED MUSIC/VIDEOS FROM LOST/STOLEN IPHONE 3GS??
i lost my iphone with some recent music & videos purchased on it. now that my phone is gone, *how do i retrieve the purchased media on my itunes at home????????* thanx Message was edited by: ninaova
-
Blinking folder with question mark icon upon start up? Disk or SATA?
Long story short, disk utility is unable to repair the "Macintosh HD" disk. Re-installing mountain lion is not an option due to the computer's inability to detect the HDD disk. How do I differentiate between a corrupted (dead) hard drive or a broken
-
Display BLOB from remote database
Context: We are offloading documents (pdf) from our OLTP database to a dedicated 'output database.' These documents must be displayed from the application on our OLTP database using a database link. Various posts show that querying a BLOB from a remo
-
Missing Header Row When Exporting Data to Excel and Program Runs Slow
Hello all, I am new to programming. I’ve dabbled with VB.NET at times over the years but this is the first time I’m trying C#. Although, it’s been quite a while since I’ve done any type of programming other than writing SQL queries at work. For the s