Problem Accessing FWSM From Switch Console
Hi,
I have a 6509 with FWSM in module 4. FWSM is configured in single context mode. After I configured passwords and authentication on the FWSM, I can no longer access the module using "session slot 4 processor 1" when connecting to the 6509 switch via console. Please note that if I ssh to 6509 then I can get to FWSM successfully.
Obviously I can remove authentication config to resolve the issue for now but I need to keep them in the final configuration and cannot figure out how they would cause the above issue to find a workaround ...
My Authentication config:
enable password ew9KHLwZJ3Ih2ff5 encrypted
passwd GQwTW2VuxBDYJJlK encrypted
username admin nopassword privilege 15
aaa authentication ssh console TACACS+ LOCAL
aaa authentication http console TACACS+ LOCAL
aaa-server TACACS+ protocol tacacs+
aaa-server TACACS+ (management) host x.x.x.x
timeout 5
key xxxxx
http server enable
http x.x.x.x 255.255.255.255 management
ssh x.x.x.x 255.255.255.255 management
telnet timeout 5
ssh timeout 5
console timeout 0
Thanks in advance for your help ...
Ali
The test aaa-server command lets you verify that the FWSM can authenticate users with a particular AAA server, and for legacy VPN authorization, if you can authorize a user. This command lets you test the AAA server without having an actual user who attempts to authenticate or authorize. It also helps you isolate whether AAA failures are due to misconfiguration of AAA server parameters, a connection problem to the AAA server, or other configuration errors on the FWSM.
Similar Messages
-
What is the easiest way to access the router from an iPad? I have no problems accessing it from my laptop. Even though I am entering the address in the left address box, not the Google search box, it wants to do either a search, or add www to the beginning of the IP address.
I usually can eventually access the router, but it is way to much trouble. However, I use my iPad hundreds of times more often than my laptop.Are you typing http:// in front of the IP address of the router? e.g. http://192.168.0.1
Sometimes, and with some routers it doesn't seem to like it if you miss off the http:// -
ADS, Problem accessing data from Destination
Hello All,
I'm facing an error when executing transaction TRIP.
If I use the standard Adobe form it's OK no error.
If I use a Z-form copy of this standard form (after doing customizing in PE03) I have an error message: Error while initiating travel form
When I was deeper in the debugging I found that there was an exception rose which is:
ADS: com.adobe.ProcessingException: com.adobe.ProcessingException: Problem accessing data from Destination: ...
I found some threads talking about ADS and transaction SM59u2026
When testing the connection in tx SM59 I have an error message 403: forbidden access
Is it the cause of the error generated in TRIP tx?
If yes why using the standard form works fine??
Thank you in advance for your help.
Regards,
Moez.Hello Otto,
Yes I'm using the same user for the two forms.
It works for the standard form and not for the Z-form.
That's why I'm expecting a customizing issue to resolve this problem.
All solution that I found are talking about administration and Visual Admin tool.
Regards,
Moez. -
SYSTEM ERROR : com/adobe.processingexception:Problem accessing data from De
Hi SAP Guru,
We have configured ADOBE for separate ABAP server and Java Server.
But when I am execution report FP_TEST_00 getting below error
ADS: com.adobe.ProcessingException: Problem accessing d(200101) Message no. FPRUNX001
FP_CHECK_DESTINATION_SERVICE
FP_CHECK_HTTP_DATA_TRANSFER giving error
SYSTEM ERROR : com/adobe.processingexception:Problem accessing data from Destination dest :FP_ICF_DATA_IP1//sap/bc/fp/form/layout/FP_FORM_SECURITY_TEST.XDP?fp-language=DE
But report fp_pdf_test_00 is giving postive response.
I have troubles hooted according to note 944221 , my configuration is ok but no success.
Please help to resolve this issue.Hi,
Check your ADS Connection .
Do one thing
Go to T-code "SM59" - "RFC Destinations (Display/Maintain)"
select "HTTP Connections to External Server" - > ADS
Double click there and check the all the settings " Administrations " , Technical setting , Logon and security , Special option .
Please check the log on and pass word with the help of your SAP BASIS consultant it will work fine . -
Com.adobe.processingException : Problem accessing data from destination
hi guys,
i have an ECC 6.0 server(db : sql) and i am getting the below error while testing the destination service
(((com.adobe.processingException:Problem accessing data from destination
dest: fp_icf_data_isp)))
i checked rfc connection and it is working fine .
i dont remember the ADS_AGENT password for checking the user.but i have provided all the required roles for that.
please guide me to resolve this issueHi
When you say you checked the rfc are you refering to the one in SM59? The fp_icf_data_isp should be an entry in the visual admin of the server that runs the ADS. In the visual admin under server->services->destinations goto to the http folder and check that there is an entry with that name there. Also the address should be http://<host of abap system>:<abap http port> and the client field and username field should be filled in.
Regards
Thashin -
[Fwd: Security problem accessing MBeanServer from a servlet]
Reposting to Security and Servlet newsgroups.
-------- Original Message --------
Subject: Security problem accessing MBeanServer from a servlet
Date: 10 Feb 2004 13:02:09 -0800
From: Alain <[email protected]>
Reply-To: Alain <[email protected]>
Organization: BEA NEWS SITE
Newsgroups: weblogic.developer.interest.management
Hi,
I am trying to understand how WLS 7.0 secures a call to an MBean. Got
the following
scenario:
- I am in a servlet context
- I have created and registered an MBean with the WLS MBeanServer. Fine
so far
- Within the same call I can retrieve the MBean attributes. Fine so far
- I keep the MBeanServer reference in an object global to the servlet
context
The problem:
- When I do another request and try to use the cached MBeanServer
instance to
access the MBean, I get the following error:
weblogic.management.NoAccessRuntimeException: Access not allowed for
subject:
principals=[], on ResourceType ...
Any idea?
AlainPaulF <paulf@reply_in_newsgroup.com> wrote:
On 10 Feb 2004 13:02:09 -0800, Alain <[email protected]> wrote:
Hi,
I am trying to understand how WLS 7.0 secures a call to an MBean. Got
the following
scenario:
- I am in a servlet context
- I have created and registered an MBean with the WLS MBeanServer.Fine
so far
- Within the same call I can retrieve the MBean attributes. Fine sofar
- I keep the MBeanServer reference in an object global to the servlet
context
The problem:
- When I do another request and try to use the cached MBeanServer
instance to
access the MBean, I get the following error:
weblogic.management.NoAccessRuntimeException: Access not allowed for
subject:
principals=[], on ResourceType ...
Any idea?
AlainWhat ResourceType are you trying to access. From the Exception you're
trying to access it as an Anonymous user (principals=[]) and evidently
you're attempting to access something that is protected. I can't tell
what
from the snippet you've included.
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Thanks Paul for your reply.
You are right. I can access my custom MBeans if I am authenticated for example
as an Administrator. My problem is that I want any application to access this
MBean authenticated or not. I am trying to find how I could grant permission to
this MBean to everyone. Still searching.
Thanks. -
This error message has many threads. However, I have not seen any postings for NW CE 7.1. The configuration for this version of JAVA and ADS is very different from any of the documentation that we have found. We suspect a config issue but cannot find any pertinent documentation for ADS configuration and NW CE 7.1 (we are SP11).
Where can we find ADS configuration documentation for NW CE 7.1?
Please help.
So far, we are mainly using test FP_CHECK_DESTINATION_SERVICE which seems to prove that the destination configuration is the problem. Fortunately, some of the configuration was automated. But not all.Thanks for the help, so far. I have gotten one step closer by manually starting all processes and services related to Adobe Document Services. CE 7.1 is quite a bit different.
I can now get a byte count returned with the test FP_CHECK_DESTINATION_SERVICE in SE38 without checking the "with destination service" box. When I check the box, I still get the "Problem accessing data from Destination: dest:FP_ICF_DATA_<SID>//sap/bc/fp/ message".
The problem is related to the return of the rendering service from the Java side via the Java destination service.
Note that the ABAP side with the problem is ECC 6.0 EHP3 SP1. -
I loaded microsoft office on my mac airbook. I have no problem accessing it from my user. When the other log on user is clicked the software icons are not avauilable. How do I have any user on my airbook have access ? . i.e. my wife
Greetings Niel
I was able to copy down the Word, Excel and PowerPoint icons and access "however" when I exit out of the guest user it deletes them from the tool tray at the bottom.... I need them to stay there not have to copy them down..
Can you still assist? -
Problem Accessing Mapviewer 12c Administration Console
I am attempting to install and configure Oracle Mapviewer 12c (v12.1.3). The installation appears successful but after performing the installation, I am unable to access the Mapviewer 12c Administration Console. The default Admin Console URL is http://[host]:[port]/mapviewer. I can reach the URL using a browser (Firefox, Chrome, IE) but the admin welcome page will not display. The browser just "spins it's wheels" as it tries to load the page. The image below is from Firefox
Examining the browser's developer console (by pressing F12) while the page is loading, you can see it cycling through the login page repeatedly (see image below).
My environment consists of the following:
1) Server OS: Linux x86_64 (RedHat Enterprise 5.11)
2) Oracle Weblogic Server 12c - "Oracle Fusion Middleware Infrastructure" distribution
As per the documentation, Oracle Mapviewer 12c requires specific dependencies that the Generic Weblogic Server installation will not provide (i.e. http://www.oracle.com/technetwork/middleware/weblogic/overview/index.html). Instead, you must use the "Oracle Fusion Middleware Infrastructure" distribution, to install weblogic server and all the required dependencies.
The Oracle Fusion Middleware Infrastructure distribution was downloaded from the Oracle ADF download page on OTN or from the Oracle Software Delivery Cloud.
- Oracle ADF download page on OTN: http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html
- JAR file fmw_12.1.3.0.0_infrastructure_Disk1_1of1.zip
3) Oracle Fusion Middleware MapViewer Version 12c (12.1.3)
- downloaded from http://www.oracle.com/technetwork/middleware/mapviewer/downloads/index.html
- JAR file is fmw_12.1.3.0.0_mapviewer.jar
Following the instructions in the Users Guide for Oracle Mapviewer 12c E29624-02 (http://docs.oracle.com/middleware/1213/core/JIMPV/index.html), I first installed and configured Weblogic Server 12c, followed by Mapviewer 12c.
I made two different installation attempts:
a) I installed Mapviewer Using the Universal Installer
b) I Manually Deployed an Exploded MapViewer EAR Folder in WebLogic Server
Both attempts produced the same results.
Specifically, after installing and configuring Mapviewer, I could verify the version of Mapviewer using the URL:
http://[host]:[port]/mapviewer/omserver?getv=t
Accessing this URL immediately resulted in the expected response text string:
Ver12.1.3_B140430.1010
I could also successfully access the Weblogic Admin Console (http://[host]:[port]/console) and confirm the Weblogic is running, and that Mapviewer has been successfully deployed and running as well.
However, at this point, if I try accessing the Mapviewer 12c Administration Console via http://[host]:[port]/mapviewer, the Console launch page does not display (as described above).
At this point, I am asking myself why does Oracle's Demo site work (http://slc02okf.oracle.com) and mine doesn't. I assumed Oracle's own demo site for Mapviewer was using Mapviewer 12c. I based that assumption on the fact that Orqacle's Demo site (http://slc02okf.oracle.com/mvdemo/demo/oracle_maps_demo_v2.jsp) displays a header referencing Mapviewer 12c (see image below).
However, when I queried the version URL for Oracle's Demo site (i.e. http://slc02okf.oracle.com/mapviewer/omserver?getv=t), I see instead that they are running Mapviewer 11g!!
Ver11_1_1_7_3_B140717
So, long story short, has anyone successfully deployed Mapviewer 12c, and if so, can you access the Mapviewer 12c Administration Console??
Any and all input is greatly appreciated.
WayneWow! That was it. I was starting the Mapviewer server using 1.8.0_31 (the latest Java 8 JDK). I switched it over to 1.7.0_75 (latest Java 7) and it works! Big Thanks!
The Mapviewer 12c User Guide states that you need "JDK7 or later". I just assumed "later" meant JDK8 as well. However, when I checked the certification matrix on My Oracle Support for Mapviewer 12c and JDK, it only shows Java 7 as being certified. -
Problem accessing variables from java file to JSP page
Hello Everyone,
I have small problem accessing my method variables from my java bean file to a JSP page. can some please take a look and tell me why I can't populate my JSP page, I've been trying all day to get this done!!!
This is my Java file
package dev;
import java.io.*;
import java.util.*;
public class RoundDetail2
public String string_gameID;
public int string_card1;
public String readDetail_topLayer;
public static final String SUITS[] = {" ", "Clubs", "Hearts", "Spades", "Diamonds", "Joker", "FaceDown"};
public static final String VALUES[] = {"Joker ","Ace", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Jack", "Queen", "King"};
public static final String SuitVALUES[] = {" ","1","2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14"};
public RoundDetail2() throws FileNotFoundException
DataInputStream inFile=
new DataInputStream(
new BufferedInputStream(
new FileInputStream("C:/apps/jakarta-tomcat-4.0.6/webapps/ROOT/WEB-INF/classes/dev/Data_452SY2.txt")));
try {
while((readDetail_topLayer = inFile.readLine()) != null)
StringTokenizer tokenizer_topLayer = new StringTokenizer(readDetail_topLayer,"\t", true);
while (tokenizer_topLayer.hasMoreTokens())
string_gameID = tokenizer_topLayer.nextToken();
catch(IOException e)
System.out.println(e.getMessage());
Thanks KT......How are you declaring the class in your JSP? ... are you instantiating it as a bean using the useBean tag, or just instantiating it in your code like normal.
Maybe you could post the relevant JSP code too?
Hello again,
Only the last string is populating after the file has be tokenized. What I'll like to accomplish is passing the very first string in the file. I did not get too far in the JSP file setup because the code is still in it's testing stage, but any help will be highly appreciated.
Here is the JSP code
<%@page import="dev.*" %>
<%@page session="true" language="java" import="java.io.*" %>
<jsp:useBean id="wagerhist" scope="request" class="dev.RoundDetail2" />
<html>
<head>
<title>Round Detail</title>
<body>
<table width="530" bordercolor="#000000" valign="top">
<tr>
<td align="left" width="19%">Game ID<%=wagerhist.string_gameID%></td>
<td align="left" width="30%"> </td>
<td align="left" width="20%">card1</td>
<td align="left" width="31%"> </td>
</tr>
</table>
</body>
</html> -
Security problem accessing MBeanServer from a servlet
Hi,
I am trying to understand how WLS 7.0 secures a call to an MBean. Got the following
scenario:
- I am in a servlet context
- I have created and registered an MBean with the WLS MBeanServer. Fine so far
- Within the same call I can retrieve the MBean attributes. Fine so far
- I keep the MBeanServer reference in an object global to the servlet context
The problem:
- When I do another request and try to use the cached MBeanServer instance to
access the MBean, I get the following error:
weblogic.management.NoAccessRuntimeException: Access not allowed for subject:
principals=[], on ResourceType ...
Any idea?
AlainPaulF <paulf@reply_in_newsgroup.com> wrote:
On 10 Feb 2004 13:02:09 -0800, Alain <[email protected]> wrote:
Hi,
I am trying to understand how WLS 7.0 secures a call to an MBean. Got
the following
scenario:
- I am in a servlet context
- I have created and registered an MBean with the WLS MBeanServer.Fine
so far
- Within the same call I can retrieve the MBean attributes. Fine sofar
- I keep the MBeanServer reference in an object global to the servlet
context
The problem:
- When I do another request and try to use the cached MBeanServer
instance to
access the MBean, I get the following error:
weblogic.management.NoAccessRuntimeException: Access not allowed for
subject:
principals=[], on ResourceType ...
Any idea?
AlainWhat ResourceType are you trying to access. From the Exception you're
trying to access it as an Anonymous user (principals=[]) and evidently
you're attempting to access something that is protected. I can't tell
what
from the snippet you've included.
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Thanks Paul for your reply.
You are right. I can access my custom MBeans if I am authenticated for example
as an Administrator. My problem is that I want any application to access this
MBean authenticated or not. I am trying to find how I could grant permission to
this MBean to everyone. Still searching.
Thanks. -
Problem Accessing PayPal from All Computers...
Hi All,
I've been searching high and low both on Google and in this forum and can't find a resolution to this.
I have an Airport Extreme and suddenly I can no longer access PayPal on either my Mac or 2 other PCs (one WinXP, one Ubuntu - "Google Chrome could not find paypal.com").
Given this is happening across all computers connected to my router it would seem the problem lies there. I reset it to the factory defaults and recreated my wireless network but the problem persists.
I can use my cell phone to create a hotspot network. When I use that network I can connect to Paypal successfully, so it would seem the problem isn't on PayPal's end.
Ideas?
Thanks very much in advance!
nUpdate on the above:
I ran Disk Utility on my Mac and repaired permissions, which turned up several permissions errors related to Airport Utility. I also ran "Verify Disk" and it told me the boot disk needed repairing, which I did. I then repaired permissions again and now, unexplainably, I can access PayPal, from all computers.
Hope this helps someone. -
PROBLEM ACCESSING OWA FROM THE INTERNET TO THE CHILD DOMAIN MAIL SERVER.
Dear All,
Referring to the forum that I sent to the group sometime back which was successfully sorted. I have received a call from the users in the child domain, where they are not able to access OWA from the Internet. below is the error they are getting
Log OffOutlook Web Access could not connect to Microsoft Exchange. If the problem continues,
contact technical support for your organization.Click here to continue working.RequestUrl:
https://mail.mydomain.com:443/owa/forms/basic/BasicReadMessage.aspx?ae=Item&t=IPM.Note&id=
RgAAAADaPzSfz396RJbcAffXnu8fBwCXRKkddfkskskZ0zGXAAAAACF9AACXRKFoskTMSrrSWkkksAAAACgcAAAJUser: mynameEX Address: /o
=First Organization domain/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=myname1SMTP Address:
[email protected]
version: 8.3.348.2ExceptionException type:Microsoft.Exchange.Data.Storage.ConnectionFailedTransientExceptionException
message: Cannot open mailbox /o=First Organization domain/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/
cn=Recipients/cn=myname1.Call stackMicrosoft.Exchange.Data.Storage.ConnectionCachePool.OpenMailbox(String serverDn,
String userDn, String mailboxDn, Guid mailboxGuid, Guid mdbGuid, Object identity, ConnectFlag connectFlag, OpenStoreF
lag openStoreFlag, CultureInfo cultureInfo, String clientInfoString, Boolean secondTry)Microsoft.Exchange.Data.Storage.
ConnectionCachePool.OpenMailbox(String serverDn, String userDn, String mailboxDn, Guid mailboxGuid, Guid mdbGuid, Object
identity, ConnectFlag connectFlag, OpenStoreFlag openStoreFlag, CultureInfo cultureInfo, String clientInfoString,
Boolean secondTry)Microsoft.Exchange.Data.Storage.MailboxSession.Connect()Microsoft.Exchange.Clients.Owa.Core.
UserContext.get_MailboxSession()Microsoft.Exchange.Clients.Owa.Basic.OwaForm.OnLoad(EventArgs e)Microsoft.Exchange.
Clients.Owa.Basic.ReadMessage.OnLoad(EventArgs e)System.Web.UI.Control.LoadRecursive()System.Web.UI.Page.
ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)Inner
ExceptionException type: Microsoft.Mapi.MapiExceptionNetworkErrorException message: MapiExceptionNetworkError:
Unable to make connection to the server. (hr=0x80004005, ec=2423) Diagnostic context: ...... Lid: 13720 dwParam:
0x6BA Msg: EEInfo: Flags: 0 Lid: 11672 dwParam: 0x6BA Msg: EEInfo: NumberOfParameters: 0 Lid: 16280 dwParam: 0x6BA
Msg: EEInfo: ComputerName: n/a Lid: 8600 dwParam: 0x6BA Msg: EEInfo: ProcessID: 18036 Lid: 12696 dwParam: 0x6BA Msg:
EEInfo: Generation Time: 2014-12-12 12:01:11:86 Lid: 10648 dwParam: 0x6BA Msg: EEInfo: Generating component: 18 Lid:
14744 dwParam: 0x6BA Msg: EEInfo: Status: 11004 Lid: 9624 dwParam: 0x6BA Msg: EEInfo: Detection location: 320 Lid:
13720 dwParam: 0x6BA Msg: EEInfo: Flags: 0 Lid: 11672 dwParam: 0x6BA Msg: EEInfo: NumberOfParameters: 1 Lid: 8856
dwParam: 0x6BA Msg: EEInfo: prm[0]: Unicode string: MX4 Lid: 19778 Lid: 27970 StoreEc: 0x977 Lid: 17730 Lid: 25922
StoreEc: 0x977 Call stackMicrosoft.Mapi.MapiExceptionHelper.ThrowIfError(String message, Int32 hresult, Int32 ec,
DiagnosticContext diagCtx)Microsoft.Mapi.ExRpcConnection.Create(ConnectionCache connectionCache,
ExRpcConnectionCreateFlag createFlags, ConnectFlag connectFlags, String serverDn, String userDn, String user,
String domain, String password, String httpProxyServerName, Int32 ulConMod, Int32 lcidString, Int32 lcidSort,
Int32 cpid, Int32 cReconnectIntervalInMins, Int32 cbRpcBufferSize, Int32 cbAuxBufferSize)
Microsoft.Mapi.ConnectionCache.OpenMapiStore(String mailboxDn, Guid mailboxGuid, Guid mdbGuid,
ClientIdentityInfo clientIdentity, String userDnAs, OpenStoreFlag openStoreFlags,
CultureInfo cultureInfo, String applicationId)Microsoft.Mapi.ConnectionCache.
OpenMailbox(String mailboxDn, Guid mailboxGuid, Guid mdbGuid, WindowsIdentity
windowsIdentityAs, String userDnAs, OpenStoreFlag openStoreFlags, CultureInfo cultureInfo,
String applicationId)Microsoft.Exchange.Data.Storage.ConnectionCachePool.OpenMailbox(String
serverDn, String userDn, String mailboxDn, Guid mailboxGuid, Guid mdbGuid, Object identity,
ConnectFlag connectFlag, OpenStoreFlag openStoreFlag, CultureInfo cultureInfo, String clientInfoString,
Boolean secondTry)
Your Usual support will b greatly appreciated.
Regards
MichaelHello,
Edge server is not used for client comunication (OWA, ActiveSync etc). You should configure firewall rules to point to your CAS server or (more secure method) reverse proxy.
Hope it helps,
Adam
www.codetwo.com
If this post helps resolve your issue, please click the "Mark as Answer" or "Helpful" button at the top of this message. By marking a post as Answered, or Helpful you help others
find the answer faster. -
Problem accessing ejb from servlet
Hi,
I'm aving a problem accessing a stateful session bean from a servlet. I'm using a jndi lookup to do it because I need that a client has its own bean reference...
My code into the service method is:
InitialContext ctx;
try {
ctx = new InitialContext();
carrelloService = (CarrelloLocal)ctx.lookup("java:comp/env/ejb/Carrello");
and I have a reference to EJB into web.xml:
<ejb-local-ref>
<ejb-ref-name>ejb/Carrello</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home></local-home>
<local>carrello.model.CarrelloLocal</local>
</ejb-local-ref>
If I use @EJB annotation to inject the servlet, it works fine.
Instead using jndi lookup throws a NamingException because it doesn't find java:comp/env/ejb/Carrello entry.
Any idea about the problem?Here's something simple that I have that works:
<p> </p>
SimpleBean
<p> </p>
@Stateless(name="SimpleBean")
public class SimpleBeanBean implements SimpleBeanLocal {
<p> </p>
web.xml; -- note I use a whacko ejb-ref-name just to make it obvious where I'm using it.
<p> </p>
<ejb-local-ref>
<ejb-ref-name>ejb_mapping_doodad/SimpleBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>sab.otn681398.ejb.SimpleBeanLocal</local>
</ejb-local-ref><p> </p>
servlet:
<p> </p>
package sab.otn681398.web;
import java.io.IOException;
import java.io.PrintWriter;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.*;
import javax.servlet.http.*;
import sab.otn681398.ejb.SimpleBeanLocal;
public class TestServlet extends HttpServlet {
private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
private static final String SIMPLE_BEAN_JNDI = "ejb_mapping_doodad/ASimpleBean";
private final boolean USEENC = true;
private SimpleBeanLocal simple = null;
public void init(ServletConfig config) throws ServletException {
super.init(config);
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
try {
if(simple==null) {
simple = createSimple();
} catch(NamingException ne) {
throw new ServletException("Error in looking up the EJB", ne);
out.println("<html>");
out.println("<head><title>TestServlet</title></head>");
out.println("<body>");
out.printf("<p>The %s bean has been hit: %s times</p>", simple, simple.getHitCount());
out.println("</body></html>");
out.close();
private SimpleBeanLocal createSimple() throws NamingException {
return (USEENC==true? createSimpleViaENC(): createSimpleViaName());
private SimpleBeanLocal createSimpleViaENC() throws NamingException {
InitialContext ic = new InitialContext();
SimpleBeanLocal simple = (SimpleBeanLocal)ic.lookup("java:comp/env/" + SIMPLE_BEAN_JNDI);
return simple;
private SimpleBeanLocal createSimpleViaName() throws NamingException {
InitialContext ic = new InitialContext();
SimpleBeanLocal simple = (SimpleBeanLocal)ic.lookup(SIMPLE_BEAN_JNDI);
return simple;
}<p> </p>
-steve- -
Jintegra problem - accessing Matlab from Java??
Hi:
Sorry if this post doesn't belong here!!
I am accessing Matlab from JAVA using JIntegra for COM. I tried running the example in their website.
(http://j-integra.intrinsyc.com/support/com/doc/other_examples/Matlab.htm)
I have also posted the example below. I am using their trial version and have included all the jars as said. I get the an unexpected output (all zero's) for reading a variable in the matlab workspace. I don't understand why I get this. Can anyone let me know if this runs for you??
Thanks
Pavan
Example code from Jintegra website:
public class MatlabExample {
public static void main(java.lang.String[] args) throws Exception {
try {
// DCOM authentication: Make sure NT Domain, NT User, NT Password are valid credentials.
// Uncomment this line if MatlabExample.java remotely accesses MATLAB :
// com.linar.jintegra.AuthInfo.setDefault("NT DOMAIN", "NT USER", "NT PASSWORD");
// Create the MATLAB object
// Specify host name or IP address of MATLAB machine as parameter if
// MatlabExample.java remotely accesses MATLAB.
// mlapp.MLApp mlApp = new mlapp.MLApp("123.456.789.0");
mlapp.MLApp mlApp = new mlapp.MLApp();
String result = mlApp.execute("a = [1 2 3 4; 5 6 7 8;]");
System.out.println("Execute result is " + result);
double mreal[][] = new double[2][4];
double mimage[] = new double[0];
mlApp.getFullMatrix("a", "base", new Object[]{mreal}, new Object[]{mimage});
for (int i = 0; i < 2; i++) {
for (int j = 0; j < 4; j++) {
System.out.println(mreal[i][j]);
} finally {
com.linar.jintegra.Cleaner.releaseAll();
}......How are you declaring the class in your JSP? ... are you instantiating it as a bean using the useBean tag, or just instantiating it in your code like normal.
Maybe you could post the relevant JSP code too?
Hello again,
Only the last string is populating after the file has be tokenized. What I'll like to accomplish is passing the very first string in the file. I did not get too far in the JSP file setup because the code is still in it's testing stage, but any help will be highly appreciated.
Here is the JSP code
<%@page import="dev.*" %>
<%@page session="true" language="java" import="java.io.*" %>
<jsp:useBean id="wagerhist" scope="request" class="dev.RoundDetail2" />
<html>
<head>
<title>Round Detail</title>
<body>
<table width="530" bordercolor="#000000" valign="top">
<tr>
<td align="left" width="19%">Game ID<%=wagerhist.string_gameID%></td>
<td align="left" width="30%"> </td>
<td align="left" width="20%">card1</td>
<td align="left" width="31%"> </td>
</tr>
</table>
</body>
</html>
Maybe you are looking for
-
Can't connect to router / Error says router uses ACLs which it doesn't
Hi! I'm having troubles connecting my MacBook (10.4.10) to my WLAN-Router (Siemens Gigaset SE551). I switched from WEP to WPA encryption today and all windows machines work just fine, however my MacBook refuses to connect. The dialog says: "The selec
-
I want to buy an adapter to a laptop MacBook Pro, bought in the U.S.
I want to buy an adapter to a laptop MacBook Pro, bought in the U.S., because the laptop heats up when you put in the plug and use an adapter that is not Apple range.
-
HT1657 Can i watch a fental. Ovie in an airplane in my ipad
CAn i watch a rental movie in an airplane
-
I'm having an issue with Photoshop CS6. Basically, it's extremely slow. Whenever I launch it, and try to edit images, especially the larger ones, I hear my hard drive constantly working, and things just lag horribly. However, if I open the same image
-
Question: Programs that work with Nikon D600 .NEF files
I recently upgraded to the Nikon D600. With that, I'm unable to open RAW images in the programs that I currently have (PS Elements 9). Does Photoshop Elements 11 have the correct software (Camera Raw 7 and higher)? Or will I need to get the full v