Tomcat web context with j2ee server
Hi everybody!
Can anyone tell me how to add a web context to tomcat when it is running with j2ee server, since it no longer reads the ./conf/server.xml file.
Thank you.
Hi!
Sun's J2sdkee1.3 is built on tomcat server. When tomcat is started up by j2sdkee it doesn't load (or ignores) the ./conf/server.xml file where should be defined the web context used by tomcat, like:
<Context path="/examples" docBase="D:/path/to/examples"
debug="0"
reloadable="true"
trusted="true" >
</Context>
And I cannot find a way to add a context which has a different document base as the one defined in the ./config/web.properties
thanks.
Similar Messages
-
The problem is occurred with J2ee server node which is disabled it from MMC
Dear SAP Consultants,
The problem is occurred with J2ee server node which is disabled J2ee server node from MMS Console and the abap work process is working fine but the dispatcher is yellow status and I can login to the abap system but Iu2019m not able to start the j2ee from Tcode u201CSmicmu201D as well
The system parameters are:
BI 7.0 System as ABAP & JAVA add on, windows 2003 on Oracle database, 24 GB Ram
Paging files: Driveu201D Os system: minimum: 1525, maximum: 3048
Driveu201DEu201D application: minimum: 70855, maximum: 70855
I can see the log files as follow:
From dev_disp:
Sun Jun 21 13:10:28 2009
J2EE server info
start = TRUE
state = STARTED
pid = 2892
argv[0] = E:\usr\sap\BWD\DVEBMGS00\exe\jcontrol.EXE
argv[1] = E:\usr\sap\BWD\DVEBMGS00\exe\jcontrol.EXE
argv[2] = pf=E:\usr\sap\BWD\SYS\profile\BWD_DVEBMGS00_cai-bwdev
argv[3] = -DSAPSTART=1
argv[4] = -DCONNECT_PORT=64990
argv[5] = -DSAPSYSTEM=00
argv[6] = -DSAPSYSTEMNAME=BWD
argv[7] = -DSAPMYNAME=cai-bwdev_BWD_00
argv[8] = -DSAPPROFILE=E:\usr\sap\BWD\SYS\profile\BWD_DVEBMGS00_cai-bwdev
argv[9] = -DFRFC_FALLBACK=ON
argv[10] = -DFRFC_FALLBACK_HOST=localhost
start_lazy = 0
start_control = SAP J2EE startup framework
DpJ2eeStart: j2ee state = STARTED
DpJ2eeLogin: j2ee state = CONNECTED
Sun Jun 21 13:10:29 2009
***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
ERROR => NiIRead: SiRecv failed for hdl 6 / sock 1032
(SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:1362) [nixxi.cpp 4424]
DpJ2eeMsgProcess: j2ee state = CONNECTED (NIECONN_BROKEN)
DpIJ2eeShutdown: send SIGINT to SAP J2EE startup framework (pid=2892)
ERROR => DpProcKill: kill failed [dpntdisp.c 371]
DpIJ2eeShutdown: j2ee state = SHUTDOWN
Sun Jun 21 13:10:48 2009
DpEnvCheckJ2ee: switch off j2ee start flag
From dev_jcontrol :
[Thr 2124] Sun Jun 21 13:10:29 2009
[Thr 2124] *** ERROR => invalid return code of process [bootstrap] (exitcode = 66) [jstartxx.c 1642]
[Thr 2124] JControlExecuteBootstrap: error executing bootstrap node [bootstrap] (rc = 66)
[Thr 2124] JControlCloseProgram: started (exitcode = 66)
[Thr 2124] JControlCloseProgram: good bye... (exitcode = 66)
From dev_bootstrap :
JHVM_BuildArgumentList: main method arguments of node [bootstrap]
-> arg[ 0]: com.sap.engine.bootstrap.Bootstrap
-> arg[ 1]: ./bootstrap
-> arg[ 2]: ID0072573
-> arg[ 3]: -XX:NewSize=57M
-> arg[ 4]: -XX:MaxNewSize=57M
-> arg[ 5]: -Xms256M
-> arg[ 6]: -Xmx256M
-> arg[ 7]: -XX:+DisableExplicitGC
-> arg[ 8]: -verbose:gc
-> arg[ 9]: -Djava.security.policy=.java.policy
-> arg[ 10]: -Djava.security.egd=file:/dev/urandom
-> arg[ 11]: -Djco.jarm=1
[Thr 5216] JLaunchIExitJava: exit hook is called (rc = 66)
[Thr 5216] **********************************************************************
ERROR => The Java VM terminated with a non-zero exit code.
Please see SAP Note 943602 , section 'J2EE Engine exit codes'
for additional information and trouble shooting.
[Thr 5216] JLaunchCloseProgram: good bye (exitcode = 66)
From server.0.log :
#1.5 #001E4F208703008A0001C7470000092000046A4414D60A1F#1242740546634#/System/Server##com.sap.caf.eu.gp.schedule.impl.ScheduleWorker#J2EE_GUEST#0##n/a##27772ea0447811deb9bf001e4f208703#SAPEngine_Application_Thread[impl:3]_25##0#0#Error#1#com.sap.caf.eu.gp.schedule.impl.ScheduleWorker#Plain###ERROR_ACQUIRE_CONNECTION
com.sap.caf.eu.gp.base.exception.EngineException: ERROR_ACQUIRE_CONNECTION
at com.sap.caf.eu.gp.base.db.ConnectionPoolJ2EE.getConnection(ConnectionPoolJ2EE.java:92)
at com.sap.caf.eu.gp.schedule.impl.ScheduleDbImpl.getScheduleToProcess(ScheduleDbImpl.java:1936)
at com.sap.caf.eu.gp.schedule.impl.ScheduleService.getScheduleToProcess(ScheduleService.java:432)
at com.sap.caf.eu.gp.schedule.impl.ScheduleWorker.work(ScheduleWorker.java:77)
at com.sap.caf.eu.gp.schedule.impl.ScheduleWorker.run(ScheduleWorker.java:63)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Caused by: com.sap.engine.services.dbpool.exceptions.BaseSQLException: ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: com.sap.sql.log.OpenSQLException: Error while accessing secure store: File "
cai-bwdev
sapmnt
BWD
SYS
global
security
data
SecStore.properties" does not exist although it should..
at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:59)
at com.sap.caf.eu.gp.base.db.ConnectionPoolJ2EE.getConnection(ConnectionPoolJ2EE.java:89)
... 8 more
Caused by: com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: com.sap.sql.log.OpenSQLException: Error while accessing secure store: File "
cai-bwdev
sapmnt
BWD
SYS
global
security
data
SecStore.properties" does not exist although it should..
at com.sap.engine.services.dbpool.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:193)
at com.sap.engine.services.connector.jca.ConnectionHashSet.match(ConnectionHashSet.java:338)
at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:267)
at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:51)
... 9 more
Caused by: com.sap.sql.log.OpenSQLException: Error while accessing secure store: File "
cai-bwdev
sapmnt
BWD
SYS
global
security
data
SecStore.properties" does not exist although it should..
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:106)
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:145)
at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:226)
at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:197)
at com.sap.engine.services.dbpool.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:117)
... 12 more
Caused by: com.sap.security.core.server.secstorefs.FileMissingException: File "
cai-bwdev
sapmnt
BWD
SYS
global
security
data
SecStore.properties" does not exist although it should.
at com.sap.security.core.server.secstorefs.StorageHandler.openExistingStore(StorageHandler.java:372)
at com.sap.security.core.server.secstorefs.SecStoreFS.openExistingStore(SecStoreFS.java:1946)
at com.sap.sql.connect.OpenSQLConnectInfo.getStore(OpenSQLConnectInfo.java:802)
at com.sap.sql.connect.OpenSQLConnectInfo.lookup(OpenSQLConnectInfo.java:783)
at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:209)
... 14 more
Please advice with the right solution,
Regards,
Ahmedthanks
-
Learning Web Services with J2EE
Hi:
I've been developing in J2EE for 3 years now, using Servlets/JSP/Tag Libraries etc.... I want to find a good source (book) that teaches you web services with J2EE, does anyone recommend any good starters to advance books for Web Services.
Thank you
GoceHave you looked at the J2EE 1.4 Tutorial?
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
It includes chapters on developing both Web applications and enteprise beans as Web service endpoints.
-Ian Evans -
Web Service problem with J2EE server
Hi,
I am trying to test my web service from WSADMIN and it's giving me following error:
HTTP Status 404 - /wsnavigator/jsps/index.jsp
type Status report
message /wsnavigator/jsps/index.jsp
description The requested resource (/wsnavigator/jsps/index.jsp) is not available.
As my SAP System is not running on J2EE server, So i downloaded J2EE (SDK) from sun web site
and after starting the server i tested my webservice but still it's giving the above error.
J2EE server Address that i entered in WSADMIN is http://localhost:8080.
So please tell me what should i do to run this web service and let me know is it possible to use web service if sap sytem is not on J2EE server.
Thanks,
RahulHi Rahul,
If you don't mind, can you explain how did you resolve the error.
Thanks in advance.
Shiven -
How to deploy my web module to J2EE server?
hi, i used forte CE to create my web module and its working perfectly when i run it through forte CE.
I've created a .war file for my web module through forte CE via the command Export WAR.
I've set up my J2EE server and its running cause i can go to its index page.
Now the problem, through the deployment tool that come with J2EE, I created a new application and add my .war into it. Next I tried to deploy my application .ear file. The deployment is successful.
But when I tried to access my application through the browser, I got this error messages:
A Servlet Exception Has Occurred
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
An error occurred at line: 2 in the jsp file: /searchQRStatus.jsp
Generated servlet error:
e:\j2sdkee1.3\repository\psa\web\qrstatus\_0002fsearchQRStatus_jsp.java:65: Class org.apache.jsp.ConnectionBean not found.
ConnectionBean connection = null;
I got repeated similiar error msgs for all my javabeans, ConnectionBean is one of them.
It seems that the server cannot find my javabean .java/.class files.
I only use jsp/javabeans/html/ms access database with ODBC connection.
1) How to solve my problems?
2) Do I need to set up a new ODBC 32bit System DSN for my database again, since the location for the database is different after deployment?
any help will be greatly appreciated..............thankzperhaps your J2EE server only has access to JRE and not JDK? ... you'll need the JDK to run JSP pages because they are compiled on-the-fly into servlets. just a thought.
-
Does anyone know if J2EE server can implement JNLP. I can run the JNLP problem on my local machine. But when i put it on the server I can't get the path right. Does anyone know how to set the path correctly? And where am i suppose to put the files when i make the war file? Thanks
I poked a JNLP resource and here is what he suggested:
JNLP applications can be hosted on any web server as long as the JNLP mime type is properly set for .jnlp files. Check out the following page for more information:
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/setup.html
For packaging JNLP apps in a WAR file, you will probably want to use it with the JNLPDownloadServlet, check out the servlet guide for more information:
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/downloadservletguide.html
Hope that helps. -
Problem with J2EE server start
hello,
I install J2EE SDK sever and I want to start this. So I have typed this line:
J2ee -verbose and I have this error:
Logging for J2EE Server Version: 1.3.1-b17 started at: Wed Mar 29 15:24:15 CEST 2006..
Using the Java HotSpot(TM) Client VM and the version number 1.5.0_06 from Sun Microsystems Inc..
VM is using the classpath: C:\j2sdkee1.3.1\lib\system\cloudscape.jar;C:\j2sdkee1.3.1\lib\system\tools.jar;C:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar;C:\j2sdkee1.3.1\lib\cloudscape\cloudclient.jar;C:\j2sdkee1.3.1\lib\classes;C:\j2sdkee1.3.1\classes;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\j2sdkee1.3.1\lib\toolclasses;C:\j2sdkee1.3.1\lib\j2eetools.jar;C:\j2sdkee1.3.1\lib\locale;;C:\jdk1.5.0_06\lib\tools.jar;C:\j2sdkee1.3.1\lib\jhall.jar .
J2EE Home Directory has been set to: C:\j2sdkee1.3.1.
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/IdentityHashtable
at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.<clinit>(Util.java:87)
at com.sun.corba.ee.internal.POA.POAImpl.activate(POAImpl.java:935)
at com.sun.corba.ee.internal.POA.POAImpl.activate_object(POAImpl.java:895)
at com.sun.corba.ee.internal.CosNaming.TransientNameService.initialize(TransientNameService.java:117)
at com.sun.corba.ee.internal.CosNaming.TransientNameService.<init>(TransientNameService.java:70)
at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMgr.java:103)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:226)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)I have the JDK 1.5.0_06 and the J2sdkee1.3.1.
Have an idea what is the problem, and what I must modify in order to do working my server?
thank you for your help
Antitrust1982Hello
I use this version because I try to execute the tutorial of JMS, but I can't working it. The version porpose are these one : http://java.sun.com/products/jms/tutorial/1_3_1-fcs/doc/client.html#1025256
Thank you for your help. -
Unable run web context with jsf 1.2
Hi, I use jsf 1.1.01 and have no problem. When I upgrade jsf libraries for 1.2.01 version, Apache Tomcat write these warnings and ends web thread.
What is missing???
thanks Radim
28.8.2006 11:49:09 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
28.8.2006 11:49:09 org.apache.catalina.core.StandardContext start
SEVERE: Context [ghory] startup failed due to previous errorsIndianparadesi wrote:
I have jsf_core.tld and html_basic.tld in web-inf. You shouldn't have tld files of 'standard' implementations lying around. Remove them all. Those should already be included in their respective JAR files which on its turn should already be placed in the classpath. Otherwise it would likely cause conflicts with each other.
googling net shows that JSF 1.2 is supported well in JBoss 4.x and there is no info on how to make JSF 1.2 work in JBoss 3.2.x. Now can you tell me how to solve the problem in the scenario given above (without changing JBoss version to 4.x)I have no idea about JBoss, but I can tell that JSF 1.2 requires at least Servlet 2.5 / JSP 2.1 to get work. If your AS only supports Servlet 2.4 and you want to use JSF 1.2, then you could consider dropping JSP and use Facelets instead as view technology. -
How do VB Winsock component communicate with J2EE server by ServerSocket ?
We are designing a thin client and server software system.
The server is application server with java language, the client is application with VB language.
The vb client program using Winsock component connect to the java application server of ServerSocket by specifying port.
This system had been tested run for end user.
Now, we would like the application server turn on j2ee platform. we don't know how the JavaTM 2 Platform, Enterprise Edition SDK version 1.3 can communicate with the vb client program?
Who would like to tell us.Your problem is not uncommon. You do have an advantage: your server code is already in Java. You have some options here. However, I am guessing that either (a) you're running out of time to implement a solution or (b) you're running out of budget. In either case, the easiest solution will be to build a simple multiple socket server client to run on the server. You can create multiple threads to talk to multiple clients via server sockets. You could allocate a port range to use. The clients could then use a randomize algorithm to select a port in the range. If already in use, then go to the next one.
There is a crude sample in the Sun Java Trails that can get you started.
HTH -
BPEL Web Service with OWSM Server Agent NOT AUTHENTICATING
I have deployed OWSM Server Agent to enable WS-Security Username/Password Authentication following the steps in the below URL.
http://www.oracle.com/technology/obe/fusion_middleware/owsm/secure%20soa/securing%20soa%20with%20owsm.htm
Section: Creating and Installing an Oracle WSM Server Agent
The OWSM agent configuration is working fine with individual Web Services.
For BPEL, the authentication is not happening if we call the default endpoint from JAVA proxy or Soap UI e.g
http://host.domainame:7777/orabpel/bpelprocess1/050101 - Authenticates as per the OWSM policy and WORKS FINE
http://host.domainame:7777/orabpel/bpelprocess1 - Executes the process WITHOUT authenticating
Any help would be appreciated.
Thanks
ShehzadDid you resolve this issue ? We are having same issue with one of our BPEL process ........ any help would be highly appreciated .....
Thanks in Advance -
Web authentication with Radius server problem
Hello,
I'm having problem to web authenticate users via radius server for one WLC. Here is the outpu from WLC:
*emWeb: Mar 26 14:17:31.537: 20:7d:xx:xx:d8:f0 Username entry (aaaaaa) created for mobile, length = 7
*emWeb: Mar 26 14:17:31.537: 20:7d:xx:xx:d8:f0 Username entry (aaaaaa) created in mscb for mobile, length = 7
*aaaQueueReader: Mar 26 14:17:31.537: Unable to find requested user entry for aaaaaa
*aaaQueueReader: Mar 26 14:17:31.537: ReProcessAuthentication previous proto 8, next proto 1
*aaaQueueReader: Mar 26 14:17:31.537: AuthenticationRequest: 0x1e08eb94
*aaaQueueReader: Mar 26 14:17:31.538: Callback.....................................0x10908d90
*aaaQueueReader: Mar 26 14:17:31.538: protocolType.................................0x00000001
*aaaQueueReader: Mar 26 14:17:31.538: proxyState...................................20:7D:xx:xx:D8:F0-00:00
*aaaQueueReader: Mar 26 14:17:31.538: Packet contains 11 AVPs (not shown)
*aaaQueueReader: Mar 26 14:17:31.538: apfVapRadiusInfoGet: WLAN(1) dynamic int attributes srcAddr:0x0, gw:0x0, mask:0x0, vlan:0, dpPort:0, srcPort:0
*aaaQueueReader: Mar 26 14:17:31.538: 20:7d:xx:xx:d8:f0 Successful transmission of Authentication Packet (id 67) to 10.xx.33.249:1645, proxy state 20:7d:xx:xx:d8:f0-00:01
*aaaQueueReader: Mar 26 14:17:31.538: 00000000: 01 43 00 8c 48 7c a7 ff df 06 53 30 c0 be e1 8e .C..H|....S0....
*aaaQueueReader: Mar 26 14:17:31.538: 00000010: d7 fd 8b d3 01 09 73 65 66 72 73 76 65 02 12 7b ......aaaaaa..{
*aaaQueueReader: Mar 26 14:17:31.538: 00000020: ae 2e f5 eb fa cf f5 cc 3b 08 65 d7 04 0e ba 06 ........;.e.....
*aaaQueueReader: Mar 26 14:17:31.538: 00000030: 06 00 00 00 01 04 06 0a 2e 09 14 05 06 00 00 00 ................
*aaaQueueReader: Mar 26 14:17:31.538: 00000040: 0d 20 0d 73 65 76 73 74 2d 6c 77 63 31 30 3d 06 ...xxxxx-lwc10=.
*aaaQueueReader: Mar 26 14:17:31.538: 00000050: 00 00 00 13 1a 0c 00 00 37 63 01 06 00 00 00 01 ........7c......
*aaaQueueReader: Mar 26 14:17:31.538: 00000060: 1f 0e 31 39 32 2e 31 36 38 2e 31 2e 36 31 1e 0c ..192.168.1.61..
*aaaQueueReader: Mar 26 14:17:31.538: 00000070: 31 30 2e 34 36 2e 39 2e 32 30 50 12 95 11 7c d9 10.xx.9.20P...|.
*aaaQueueReader: Mar 26 14:17:31.538: 00000080: 75 8e 01 6e bf 62 38 f8 38 ab 68 4a u..n.b8.8.hJ
*radiusTransportThread: Mar 26 14:17:31.603: 00000000: 03 43 00 14 e5 8c e7 75 52 04 af e0 07 b7 fb 96 .C.....uR.......
*radiusTransportThread: Mar 26 14:17:31.603: 00000010: c1 4a fb 40 .J.@
*radiusTransportThread: Mar 26 14:17:31.603: ****Enter processIncomingMessages: response code=3
*radiusTransportThread: Mar 26 14:17:31.603: ****Enter processRadiusResponse: response code=3
*radiusTransportThread: Mar 26 14:17:31.603: 20:7d:xx:xx:d8:f0 Access-Reject received from RADIUS server 10.xx.33.249 for mobile 20:7d:xx:xx:d8:f0 receiveId = 0
*radiusTransportThread: Mar 26 14:17:31.603: ReProcessAuthentication previous proto 1, next proto 2
*radiusTransportThread: Mar 26 14:17:31.603: AuthenticationRequest: 0x1da9fa4c
*radiusTransportThread: Mar 26 14:17:31.603: Callback.....................................0x10908d90
*radiusTransportThread: Mar 26 14:17:31.603: protocolType.................................0x00000002
*radiusTransportThread: Mar 26 14:17:31.603: proxyState...................................20:7D:xx:xx:D8:F0-00:00
*radiusTransportThread: Mar 26 14:17:31.603: Packet contains 11 AVPs (not shown)
*radiusTransportThread: Mar 26 14:17:31.605: 20:7d:xx:xx:d8:f0 Returning AAA Error 'No Server' (-7) for mobile 20:7d:xx:xx:d8:f0
*radiusTransportThread: Mar 26 14:17:31.605: AuthorizationResponse: 0x2dd03648
*radiusTransportThread: Mar 26 14:17:31.605: structureSize................................32
*radiusTransportThread: Mar 26 14:17:31.605: resultCode...................................-7
*radiusTransportThread: Mar 26 14:17:31.605: protocolUsed.................................0x00000002
*radiusTransportThread: Mar 26 14:17:31.605: proxyState...................................20:7D:xx:xx:D8:F0-00:00
*radiusTransportThread: Mar 26 14:17:31.605: Packet contains 0 AVPs:
*emWeb: Mar 26 14:17:31.605: Authentication failed for aaaaaa
*emWeb: Mar 26 14:17:31.605: 20:7d:xx:xx:d8:f0 Username entry deleted for mobile
*emWeb: Mar 26 14:17:31.605: 20:7d:xx:xx:d8:f0 Plumbing web-auth redirect rule due to user logout
*emWeb: Mar 26 14:17:31.605: 20:7d:xx:xx:d8:f0 192.168.1.61 WEBAUTH_REQD (8) Deleting mobile policy rule 42461
*emWeb: Mar 26 14:17:31.605: 20:7d:xx:xx:d8:f0 Adding Web RuleID 42464 for mobile 20:7d:xx:xx:d8:f0
*emWeb: Mar 26 14:17:31.605: 20:7d:xx:xx:d8:f0 Web Authentication failure for station
*emWeb: Mar 26 14:17:31.605: 20:7d:xx:xx:d8:f0 192.168.1.61 WEBAUTH_REQD (8) Reached ERROR: from line 5069
That was pretty clear for me that Radius is refusing to give user access.
Fully-Qualified-User-Name = NMEA\aaaaaa
NAS-IP-Address = 10.xx.9.20
NAS-Identifier = xxxxx-lwc10
Called-Station-Identifier = 10.xx.9.20
Calling-Station-Identifier = 192.168.1.61
Client-Friendly-Name = YYY10.xx
Client-IP-Address = 10.xx.9.20
NAS-Port-Type = Wireless - IEEE 802.11
NAS-Port = 13
Proxy-Policy-Name = Use Windows authentication forall users
Authentication-Provider = Windows
Authentication-Server = <undetermined>
Policy-Name = YYYYY Wireless Users
Authentication-Type = PAP
EAP-Type = <undetermined>
Reason-Code = 66
Reason = The user attempted to use an authentication method that is not enabled on the matching remote access policy
That output is from WLC 5508 version 7.0.235
What is strange, that user was able to authenticate from other before refresh WLC 4402 ver 4.2.207. I cannot change WLC because of AP which cannot run old version.
this is output from working client connection from old WLC
NAS-IP-Address = 10.xx.9.13
NAS-Identifier = xxxxx-lwc03
Client-Friendly-Name = YYY10.46
Client-IP-Address = 10.xx.9.13
Calling-Station-Identifier = 192.168.19.246
NAS-Port-Type = <not present>
NAS-Port = <not present>
Proxy-Policy-Name = Use Windows authentication for all users
Authentication-Provider = Windows
Authentication-Server = <undetermined>
Policy-Name = YYYYY Wireless Guest Access
Authentication-Type = PAP
EAP-Type = <undetermined>
I know there is different Policy Name used, but my question is why it is not using the same as on old WLC when configuration is same.
Is there any way I can force users to use different policy from WLC or AP configuration or is this solely configuration of Radius?
Is it maybe problem of version 7.0.235?
Any toughts would be much appriciated.Scott,
You are probably right. The condition that is checked for the first policy name (we have 2) is to match
NAS-Port-Type = Wireless - IEEE 802.11, and this is basically used to differentiate guests from other company users.
as you can see from the logs the one that is working correctly is not sending NAS-Port-Type. The question is why.
As I said before.
WLC 5508 ver. 7.0.235 is sending NAS-Port-Type
WLC 4402 ver. 4.2.207 is not.
The same user was working OK on 4402 WLC and after refresh and associating APs to 5508 it all broke, so client did not changed anything on adapter. -
Make files downloadable from outside tomcat(web) context
Hi there,
I made an application on whicht people can upload word/pdf files.
I put them in a dir called /opt/customer/2342/ , where 2342 is the customer id.
The files are stored there, because I don't want people to be able to just download the files by using http://www.blahblah.com/customer/2342
Now I want to create a servlet or jsp file that is able to make the files downloadable for specific users.
Of course I can find the files using java.util.File. But I don't have a clue how to make them downloadable from this path. Should it be something with a FileStream... ?? And adding the mime-type?
Can anybody give me some hints on making files downloadable from a specific dir?
Thanks in advance.
Jeroen van Hertumhere is a servlet that is used to load files that are stored on the file system. The user submits the file path releative to a know file path.
package common.servlet;
import java.io.*;
import java.net.*;
import javax.naming.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.apache.log4j.Logger;
public class FileResourceServlet extends HttpServlet
// -------- Static fields ----------------------------------------------
// Logger
private static Logger logger = Logger.getLogger(FileResourceServlet.class.getName());
* Root context for all JNDI lookups
private static final String ROOT_CONTEXT = "java:comp/env";
* JNDI lookup name of the binary path value
private static final String BINARY_PATH_KEY = "binaryPath";
* Default in case looking it up from the environment fails
private static final String DEFAULT_FILE_RESOURCE_PATH = "/home/cp/bin";
// -------- Fields -----------------------------------------------------
private String fileResourcePath = null;
// -------- Methods ----------------------------------------------------
* Initializes the servlet.
public void init(ServletConfig config) throws ServletException
super.init(config);
try
//Get Norm's info
Context initCtx = new InitialContext();
Context envCtx = (Context)initCtx.lookup(ROOT_CONTEXT);
fileResourcePath = (String)envCtx.lookup(BINARY_PATH_KEY);
catch( Exception e )
logger.error("Error looking up file resource path, going with " +
"default value - " + DEFAULT_FILE_RESOURCE_PATH, e);
this.fileResourcePath = DEFAULT_FILE_RESOURCE_PATH;
logger.debug("File Resource Path:" + fileResourcePath );
* Destroys the servlet.
public void destroy()
* Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
* @param request servlet request
* @param response servlet response
protected void processRequest(HttpServletRequest request,
HttpServletResponse resp)
throws ServletException, IOException
ServletContext sc = getServletContext();
String pathInfo = request.getPathInfo();
logger.debug("Path Info: " + pathInfo);
if (pathInfo!=null && !pathInfo.startsWith("/")) pathInfo = "/" + pathInfo;
String filename = fileResourcePath + pathInfo;
logger.debug("Binary Filename:" + filename );
// Get the MIME type of the image
String mimeType = sc.getMimeType(filename);
if (mimeType == null)
//sc.log("Could not get MIME type of " + filename);
logger.warn("Could not get MIME type of " + filename);
resp.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
return;
// Set content type
resp.setContentType(mimeType);
// Set content size
File file = new File(filename);
resp.setContentLength((int)file.length());
// Open the file and output streams
FileInputStream in = new FileInputStream(file);
OutputStream out = resp.getOutputStream();
// Copy the contents of the file to the output stream
byte[] buf = new byte[2048];
int count = 0;
while ((count = in.read(buf)) >= 0)
out.write(buf, 0, count);
in.close();
out.close();
* Handles the HTTP <code>GET</code> method.
* @param request servlet request
* @param response servlet response
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
processRequest(request, response);
* Handles the HTTP <code>POST</code> method.
* @param request servlet request
* @param response servlet response
protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
processRequest(request, response);
* Returns a short description of the servlet.
public String getServletInfo()
return "Short description";
} -
Make connection with j2ee server
i am using j2me wireless toolkit. i installed j2ee also on my computer. i need to connect to this server using Generic Connection Framework(GCF) supported by j2me.
When i write the relevant code and execute it , i am getting no response. I am new to this field so plz help me.Well, then show us the relevant code (and error print), like this, we can only guess what's wrong..
-
Hi All,
Can anyone help me in knowing how to configure webcache on top of UCM server and what is webcache invalidation?
If you provide any link of documentation for that ,then it will be a great help.
Thanks,
Shrutihttp://oamidam.wordpress.com/category/oracle-web-cache/
-
What is needed to develop web services with DI Server using C #?
Hi,
What is needed to develop web service using DI Service ad C#?
Does anyone have any examples?
thanks,
WillianLogin C# sample
u2018 Create Service WebReference
LoginWebRef.LoginService loginService = new LoginWebRef.LoginService();
// service command login call
string sessionID = login.Login(
"localhost",
"COM_OBS_AUT_TEST",
LoginWebRef.LoginDatabaseType.dst_MSSQL2005, true,
"sa", "xx",
"manager", "manager",
LoginWebRef.LoginLanguage.ln_English, true,
"localhost:30000");
Business Partners add C# sample.
// Create Service WebReference
BPWebRef.BusinessPartnersService bpsService = new
BPWebRef.BusinessPartnersService();
// MsgHeader class
BPWebRef.MsgHeader msgheader = new BPWebRef.MsgHeader();
msgheader.SessionID = DIServerSessionID;
msgheader.ServiceName = MsgHeaderServiceName.BusinessPartnersService;
msgheader.ServiceNameSpecified = true;
bpsService.MsgHeaderValue = msgHeader;
// fill business partner class
BPWebRef.BusinessPartner bp = new BPWebRef.BusinessPartner();
bp.CardCode = "MyBPCardCode";
u2026
// service command call
BPWebRef.BusinessPartnerParams bpParams = bpsService.Add(bp);
Maybe you are looking for
-
STRANGE PROBLEM with "Create New Mail Account.scpt" when creating POP acct.
I am using "Create New Mail Account.scpt" to create a POP account. It creates the account successfully. It fetches the mails successfully. Now the problem begins. After fetching all the mails once if u click "Get Mail" in mac mail, it fetches all the
-
I've just upgraded from Snow Leopard to Mountain Lion, and I'm trying to figure out how to recover proper image scaling during slideshows. When the option to scale images to fit the entire screen was selected in Snow Leopard, the images were well sca
-
I would like to create a iBook with IBA within it augmented reality, for excample with layar. I couldn't find a osx dasboard widget for it, neither could I find a possibility to create something in HTML5. What I want is a ibook with additional info/m
-
Apple_Boot Recovery HD partition - what exactly does it do?
On a new MacBook Air (Mid 2011) there is a partiton on the internal solid state drive that shows up (you can see it by using Terminal, then type "diskutil list" at the prompt) as Apple_Boot Recovery HD 650.0 MB disk0s3. My question is what exactly
-
Deserializing failed during calling webservice
Hi, try to test a webservice with the test functionality on WAS Web Service Navigator. The following error occure: com.sap.engine.services.webservices.additions.soaphttp.exceptions.ProcessException: Deserializing fails. Nested message: XML Deserializ