Accessing remote jcs/jcx controls from page flows
Hi,
Is there a standard way to access remote jcx/jcs controls from page flows ?
If i am correct the call to the dispatcher bean is a remote call , so can we run jcx/jcs controls on a different machine from where jpfs are running.
I am just trying to dig into workshop framework to understand this , any pointers would be of great help.
Thanks
Varun
Thanks for the tip. Unfortunately, I've tried this and there was no change.
Here's how I tried to implement it:
1. Edited the HTTP Configuration page in the Web Service wizard. Added http://portletserver/portlets/portletfolder/portlet.aspx. I've looked at this a million times to make sure there aren't any typos.
2. Beforehand, I added http://portletserver/portlets/portletfolder/. to the HTTP Configuration page. I thought that would gateway everything in the portlet folder... Is that an incorrect assumption?
3. I also tried to modify the .aspx page by adding a pt:url transformer tag to the target attribute of the form. The portlet works but it is still prompting with the pop up.
Similar Messages
-
Calling Service Control from Page Flow
In Workshop for Weblogic Platform v10.0, we have a web service control in a page flow.
Although the web service call succeeds (as evidenced by a TcpMon monitor), the control method always returns null.
I'm guessing that although the call looks synchronous, it's actually behaving asynchronously - returning immediately with null.
Is this perhaps related to the particulars of calling controls from a Page Flow environment? Is it a bug in v10 of Workshop (Eclipse-based?
Thanks for any ideas!
- Rob
ps: Here's the control interface and using class:
package controls;
import com.bea.control.ServiceControl;
import org.apache.beehive.controls.api.events.EventSet;
import org.apache.beehive.controls.api.bean.ControlExtension;
@ServiceControl.Location(urls = {"http://LECAP1.lan.us.ray.com:9905/xsltTransform_vs0"})
@ServiceControl.HttpSoapProtocol
@ServiceControl.SOAPBinding(style = ServiceControl.SOAPBinding.Style.DOCUMENT, use = ServiceControl.SOAPBinding.Use.LITERAL, parameterStyle = ServiceControl.SOAPBinding.ParameterStyle.BARE)
@ServiceControl.WSDL(resourcePath = "controls/cesXsltTransform.wsdl", service = "xsltTransform_vs0")
@ControlExtension
public interface xsltTransform_vs0ServiceControl extends ServiceControl
static final long serialVersionUID = 1L;
public java.lang.String xmlTransform(com.raytheon.schemas.ces.transformationservices.xmlschema.schema.TransformInput transformInput_arg);
/** This event set interface provides support for the onAsyncFailure event.
@EventSet(unicast=true)
public interface Callback extends ServiceControl.Callback {};
@Control
private xsltTransform_vs0ServiceControl xsltTransform_vs0ServiceControl1;
com.raytheon.schemas.ces.transformationservices.xmlschema.schema.TransformInput transformInput_arg = form
.getTransformInput_arg();
String xmlTransformResult = xsltTransform_vs0ServiceControl1
.xmlTransform(transformInput_arg);Strange -- the PageFlowJspFilter adds no-cache headers to the response, so
if you're forwarding to a JSP from the action, then the browser shouldn't be
caching the result. What's in the URL bar in the case where your request is
getting cached?
"Neeraj Harlalka" <[email protected]> wrote in message
news:3ff993bd$[email protected]..
>
Richard -
Ok. I dug deeper into the issue and now my problem is that although theaction
is getting called correctly, it seems to execute from a cache. The actiondoes
not get executed the second time.
Any ideas?
Neeraj
"Richard Feit" <[email protected]> wrote:
Hmm... I'm not sure why you'd get that. Can you post the relevant JSP
code?
Also, are you able to hit the other page flow directly from a browser?
Rich
"Neeraj Harlalka" <[email protected]> wrote in message
news:[email protected]..
Hi Richard -
I get an error saying cannot find the begin.do action.
Thanks
Neeraj
Richard Feit" <[email protected]> wrote:
Hello Neeraj,
This should work:
<netui:anchor
href="/someOtherFlow/SomeOtherFlowController.jpf">someOtherFlowController.
j
p
f</netui:anchor>
What happens when you do this?
Rich
"Neeraj Harlalka" <[email protected]> wrote in message
news:3fda39df$[email protected]..
I read the other posts on how to call one page flow from a jsp
that
belongs to
another pageflow. However the last suggestion posted - use the netuianchor tag
with href, also does not work.
Any other solution?
Thanks
Neeraj -
Message resources from page flow
How can I access the ResourceBoundle declared at the top of the page flow, from
the page flow?I have a question that goes along with this...
Can you add formatting with any of these different bundle options? Since
8.1 SP2 now has the attribute "accessKey" on buttons, we'd like to be able
to underline the letter we are using for the accessKey. Our attempt at
using the message bundle just puts the formatting inside the button value.
When the jsp displayed this was the value shown for the button text: <u> S
</u>ubmit
Is this possible to do without using javascript? One of our team members
found a script that adds the underline, but there is alot of code to
underline one letter.
Ideas?
Thank you!
Wendy
"John Rohrlich" <[email protected]> wrote in message
news:[email protected]...
Gus,
Your welcome.
You don't need to get the bundle and pass it. You can access it directly
from the JSP. If these are validation error messages you can use the
<netui:error> tag. If the string you want to access is not for displaying
validation errors you'll want to access the strings in another manner. The
documentation in
http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/netui/guide/conDatabindingXScript.html
shows at least 3 approaches. Here is the relevant section from that
document.
bundle
The bundle data binding context references properties that you define in a
message resources file, which allows you to implement internationalizedweb
applications by not hard-coding text labels in your JSP pages.
For example, in your page flow controller class, you can add an annotation
such as the following:
* @jpf:controller
* @jpf:message-resources resources="labels.Messages"
public class Controller extends PageFlowController
{ ...In this example, the naming convention is that the message resources
file must be located in the project's /WEB-INF/classes/labels directory,and
the file must be named Messages.properties.
In the Messages.properties file, you might have a property such as:
nameLabel=Name Then in your JSP page, you can use a data bindingexpression
such as the following:
<netui:label value="{bundle.default.nameLabel}"/> Alternately, you can use
the key attribute on the @jpf:message-resources annotation:
In your page flow controller class annotation:
* @jpf:controller
* @jpf:message-resources key="foo" resources="labels.Messages"
public class Controller extends PageFlowController
{ ...Assume that the Messages.properties file in the
/WEB-INF/classes/labels directory is the same as shown in the previous
example. In the JSP page, you could use a tag such as the following:
<netui:label value="{bundle['foo/jpfDirectory'].nameLabel}"/> In this
case, your page flow controller class file is/jpfDirectory/Controller.jpf.
>
Another option is to use the <netui-data:declareBundle> tag. For example,in
your JSP page:
<netui-data:declareBundle name="someMessages"
bundlePath="com/foobar/resources/WebAppMessages"/>This tag declares abundle
that can be referenced in a data binding expression, such as in the
following example:
<netui:label value="{bundle.someMessages}"/> For more information, see the
topics about the @jpf:message-resources Annotation and the
<netui-data:declareBundle> Tag.
"Gus" <[email protected]> wrote in message
news:[email protected]...
First of all, thanks!
I want to get a string from the bundle and pass it to a JSP in therequest.
I have defined the resources at the top of the JPF, as specified in thehelp:
@jpf:message-resources resources="mensajes"
The question is how can I get a string from the mensajes.properties
file.
>>
Gus
I would be better able to answer your question if I knew what you
wanted
to
do. Are you trying to display the strings from the bundle?
john
"Gus" <[email protected]> wrote in message
news:[email protected]...
How can I access the ResourceBoundle declared at the top of the pageflow,
from
the page flow? -
How to access to EM Grid control from outside browser
I want to access to EM Grid Control console from an other place, outside of my office but I can't, I configured my firewall with the default ports 1159,1830.
I don't know if I have to add other port, I can't understand because I Have an other application e-business that I can access without any problems.You can get to grid control within your office?
Try using the SECURE connection
https://host.port#/em -
How to access remote tables on Oracle from Access fron end?
Note: Access application and access tables are in separate .mdb files.
I've successfully migrated my Access 2000 tables to Oracle. And there were no errors during the migration. The two original Access tables were renames to tblBOMdetail_L and tblPartInfo_L and two new linked tables were created with the _R name. Mapping queries were created for tblBOMdetail and tblPartInfo.
However, when I launch my Access application, I get the following error: "The Microsoft Jet database engine cannot find the input table or query 'tblPartInfo'. Make sure that it exists and that its name is spelled correctly."
Is there something more that I have to do to enable this connection. I already have the necessary ODBC connection set up.
Thanks.Hi ,
The first thing you need to verify is that you can view the data in the tables with _R appended to their name. This will verify whether the ODBC link is set up correctly and pointing at the correct Oracle table in the Oracle database.
Another point. Are you still using 2 .mdb files? If so since your data is now in Oracle it may be prudent to use only one .mdb.
If you need more help then please contact [email protected]
John -
EmptyStackException when exit from nested page flow on SP2
I have tried to call a nested page flow (TestNestedController.jpf) from page flow
and using redirect="true". After exit from nested page flow, it supposes that
return to the action testNestedDone() in page flow(TestPageController). It works
on SP1, but it fails on SP2.
Please suggest any solutions for this issues.
public class TestPageController extends PageFlowController
// Uncomment this declaration to access Global.app.
// protected global.Global globalApp;
// For an example of page flow exception handling see the example "catch"
and "exception-handler"
// annotations in {project}/WEB-INF/src/global/Global.app
* This method represents the point of entry into the pageflow
* @jpf:action
* @jpf:forward name="success" path="page.jsp"
protected Forward begin()
return new Forward("success");
* @jpf:action
* @jpf:forward name="success" path="/test/testNested/TestNestedController.jpf"
redirect="true"
protected Forward goToNested()
System.out.println("go to nested redirect = true");
return new Forward("success");
* @jpf:action
* @jpf:forward name="success" path="index.jsp"
protected Forward testNestedDone()
return new Forward("success");The error message like this:
Empty nesting stack for returned action BackToPrevious from Page Flow /xxxx/viewMemberController.jpf.
com.bea.wlw.netui.pageflow.EmptyNestingStackException: Empty nesting stack for
returned action BackToPrevious from page flow /xxxx/viewMember/viewMemberController.jpf.
at com.bea.wlw.netui.pageflow.FlowController.forwardTo(FlowController.java:1103)
"patrick" <[email protected]> wrote:
>
I have tried to call a nested page flow (TestNestedController.jpf) from
page flow
and using redirect="true". After exit from nested page flow, it supposes
that
return to the action testNestedDone() in page flow(TestPageController).
It works
on SP1, but it fails on SP2.
Please suggest any solutions for this issues.
public class TestPageController extends PageFlowController
// Uncomment this declaration to access Global.app.
// protected global.Global globalApp;
// For an example of page flow exception handling see the example
"catch"
and "exception-handler"
// annotations in {project}/WEB-INF/src/global/Global.app
* This method represents the point of entry into the pageflow
* @jpf:action
* @jpf:forward name="success" path="page.jsp"
protected Forward begin()
return new Forward("success");
* @jpf:action
* @jpf:forward name="success" path="/test/testNested/TestNestedController.jpf"
redirect="true"
protected Forward goToNested()
System.out.println("go to nested redirect = true");
return new Forward("success");
* @jpf:action
* @jpf:forward name="success" path="index.jsp"
protected Forward testNestedDone()
return new Forward("success"); -
UIX/XML BC4J - Controlling page flow in event handlers
We have an event handler that executes some data processing using bc4j tags, and need to redirect the flow to another page, based on the value of some parameters. For example, we have a checkbox Prepare for another insert, and we want to check for its state in the event handler to determine which page to display.
We tried the following code
UIX page event handler:
<event name="saveEvent" >
<bc4j:findRootAppModule name="TipoPunteggioViewAppModule" >
<bc4j:findViewObject name="TipoPunteggioView" >
<bc4j:findRow name="CreateTipoPunteggioView" >
<bc4j:setPageProperty name="keyTipoPunteggio" >
<bc4j:stringKey />
</bc4j:setPageProperty>
<bc4j:setAttribute name="FlgObsoleto" />
<bc4j:setAttribute name="Firma" />
<bc4j:setAttribute name="TitTipoPunteggio" />
<bc4j:insertRow/>
<bc4j:commit/>
<bc4j:executeQuery/>
<ctrl:method class="com.websiteitalia.valutazioni.handlers.Handlers"
method="anotherInsertEventHandler" />
</bc4j:findRow>
</bc4j:findViewObject>
</bc4j:findRootAppModule>
</event>
Java method event handler:
public static EventResult anotherInsertEventHandler(BajaContext bCtx,
Page page,
PageEvent event) {
// AnotherInsert is the name of the checkbox on the page
if ("on".equals(event.getParameter("AnotherInsert"))) {
return new EventResult(page);
} else {
return new EventResult(new Page("ListPage"));
When we return the same page, things work fine, but when we return another page we get an ArrayIndexOutOfBoundException. We have also noticed that if we return a simple page, without data scopes and bc4j tags, we get the correct result. We are probably wrong in the manner we do the redirect inside of a java event handler, because seems that the page we return is not completely processed.
Can anyone explain the available techniques to control the page flow, using UIX XML tags or Java APIs alone or both of these together? For example, how can be replicated the <ctrl:go> behavior using Java APIs?The UIX page works correctly if loaded directly, the error takes place only when we redirect in this manner from a page that has a different application module / view object scopes. In fact, when we redirect to a page that have the same scopes of the first (or when the second page has not scopes at all the simple page) the error doesnt occur. Thats why we suppose that some step of the page rendering process arent executed correctly, it seems that the new page still finds some of the old page (the scopes)..
To redirect to a page from a java event handler we have returned an event result with the next page (see above post for a code snippet), is this the correct way? Can we simulate the ctrl:go tag from the java code (with the redirect=true option)? There are any other? -
Application Server Control Console page error problems
Hi All,
I am getting the following error when i am trying to access the application server control console page
EMDAEMON
HTTP/1.1 404 , Not Found
the oracle management port number is 1157
enterprise manager agent port is 1830
when i checked emctl status iasconsole and emctl status agent both are running actually
enterprise manager server control port is 1156(infra) and 1158(midtier)
all the ports are different but i am getting problem still. Please let me know whats wrong.
ThanksUsing the right URL?
In each <oracle home>\install\setupinfo.txt, there should be a line that says:
.... Use the following URL to access the Oracle Enterprise Manager Application Server Control: http://xxxxxxx.xxxx.xxx.xxx:nnnnn
If the URL is correct then you need to look deeper - are you connecting to the Enterprise Manager (EM) from the server console? From a PC elsewhere on the LAN and possibly subject to your local workstation security policies, firewall or internet proxy ? -
How to link 2 page flow controllers in Workshop
Hello there,
I have been playing with rowSet controls and page flows in WorkShop for a few days now and I can see that the creation of both of these is straight forward.
The question that I have is ... having created the page flow for a given rowSet control, say, "customersController.jpf" -- how can I click on a given row and pass a parameter to, say, "ordersControler.jpf" and have ordersController.jpf query the database based on the parameter passed to it?
At this point I have these 2 page flows which work okay in isolation. So, we have:
/customers/customersController.jpf    [custid, name, address, etc]
/orders/ordersController.jpf    [orderid, date, total, etc]
I have already managed to pass the custid parameter when clicking on the custid field for a given customer on the customersController.jpf page.
URL looks something like this:
http://localhost:7001/myApp/customers/showOrders.do?_autoscope__rowId=customersControllerGridName%7ECUSTID%7E1004
"showOrders.do" is, of course, an action that calls ordersController.jpf.
We can see that the customer id (CUSTID) parameter is being passed (1004). Now, how can I modify ordersController.jpf and orders.jcx so that only the orders for customer 1004 are returned by ordersController.jpf? By default, all the order in the database are returned.
Thanks a million,
Manuel
Message was edited by:
manu_morenoHi manu_moreno,
You should create an Event handler.
On the Property Editor, click on the "Event Handler" option.
On "Add Handler..." you should select "Handle Page Flow Event". This way you can trigger a Page Flow action everytime an action in another portlet is called.
The parameters I suggest you put on the Session.
Hope this Helps,
Pedro Oguri -
Is WSRP supported in Adobe CQ for accessing Remote Portlet?
Hello, I wanted to know if WSRP is supported in Adobe CQ for accesssing remote portlet? or alternate ways to access remote portlets on Adobe CQ pages. Pointers in this direction would be helpful.
ThanksAFAIK we don't have WSRP producer OR consumer. Using [1] might help to meet your need.
[1] http://dev.day.com/docs/en/cq/current/administering/cq_as_portal.html#CQ%20Portal%20Direct or -
Page Flow db vs java Control db access
I am a real newbie here and I wanted to ask some design questions.
Primarily, I am designing a page flow that hits a backend server. Users fill out
forms, and it updates what they are doing.
Should I have the db control directly in the pageflow, or should I send the req
to a java control that then has the db control? The latter seems to me to be taking
redundant steps.
thanks,
mIt does, and it makes a LOT of sense. Thanks!!!
"Morgan" <[email protected]> wrote:
>
Hi Matt,
The BEA guys seem to be busy this week, but I think I can actually answer
this
question.
It sounds like you have a pretty basic web app, maybe even started from
the RowSet
Control wizard?
From my understanding of Model, View, Controller, struts and Workshop,
it sounds
like in your case you would probably want to use the control directly
in your
pageflow. Most likely you will get a RowSet out of your control for
a query and
then push that out to some type of tag that can work with it or some
variation
along those lines. If you need to perform significant business logic
on the
data before adding it to the database, or after retrieving it and before
presenting
it, then I think it would be a good idea to encapsulate that business
logic in
another class or control. Significant is a relative term I suppose,
but changing
a value from upper to lower case or something simple I'd probably just
handle
in the Controller or with a formatter tag. If you had to correlate information
from multiple rows, analyze it, create totals, and statistics, I would
probably
build a class to handle that logic so that the controller just made the
decision
on where to send results and where to send information collected.
I hope that helps,
Morgan
"Matt Mcknight" <[email protected]> wrote:
I am a real newbie here and I wanted to ask some design questions.
Primarily, I am designing a page flow that hits a backend server. Users
fill out
forms, and it updates what they are doing.
Should I have the db control directly in the pageflow, or should I send
the req
to a java control that then has the db control? The latter seems tome
to be taking
redundant steps.
thanks,
m -
Page Flow and Java Control interaction
Hi everybody !
Even after to read some documents like
http://dev2dev.bea.com/pub/a/2004/06/wlw_internals.html
and
http://dev2dev.bea.com/pub/a/2004/01/jones.html
i still didn't get what is really happening "behind the scenes" between Page Flows and Java Controls (Workshop 8.1). I would be glad if anyone could send to me more detailed documentation or explanation about this subject.
How can a Java Control to stand behind a Stateless Session Bean (GenericStatelessSLSB) and still to keep its internal state (instance variables) consistent ? How can a statefull Java Control to remain statefull being accessed by a stateless component (the EJB) ? Or is the source code of a Java Control (the JCS file) kept by the Page Flow and sent to EJB for its execution ?
Thanks in advance.Hi Daniel
I have attached a doc I created that explains what happens behind the scenes
when a pageflow call a JCS va a JWS calling a JCS.
Can you please go through the document and let me know any questions you may
have?
Thanks
Vimala
<Daniel Lima> wrote in message news:[email protected]..
Hi everybody !
Even after to read some documents like
http://dev2dev.bea.com/pub/a/2004/06/wlw_internals.html
and
http://dev2dev.bea.com/pub/a/2004/01/jones.html
i still didn't get what is really happening "behind the scenes" between
Page Flows and Java Controls (Workshop 8.1). I would be glad if anyone
could send to me more detailed documentation or explanation about this
subject.
How can a Java Control to stand behind a Stateless Session Bean
(GenericStatelessSLSB) and still to keep its internal state (instance
variables) consistent ? How can a statefull Java Control to remain
statefull being accessed by a stateless component (the EJB) ? Or is the
source code of a Java Control (the JCS file) kept by the Page Flow and
sent to EJB for its execution ?
Thanks in advance. -
I need helping configuring RDP access to my local server from a remote location on my Cisco ASA 5505 Firewall.
I have attempted to configure rdp access but it does not seem to be working for me Could I please ask someone to help me modify my current configuration to allow this? Please do step by step as I could use all the help I could get.
I need to allow the following IP addresses to have RDP access to my server:
66.237.238.193-66.237.238.222
69.195.249.177-69.195.249.190
69.65.80.240-69.65.80.249
My external WAN server info is - 99.89.69.333
The internal IP address of my server is - 192.168.6.2
The other server shows up as 99.89.69.334 but is working fine.
I already added one server for Static route and RDP but when I try to put in same commands it doesnt allow me to for this new one. Please take a look at my configuration file and give me the commands i need in order to put this through. Also please tell me if there are any bad/conflicting entries.
THE FOLLOWING IS MY CONFIGURATION FILE
Also I have modified IP information so that its not the ACTUAL ip info for my server/network etc... lol for security reasons of course
Also the bolded lines are the modifications I made but that arent working.
ASA Version 7.2(4)
hostname ciscoasa
domain-name default.domain.invalid
enable password DowJbZ7jrm5Nkm5B encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
interface Vlan1
nameif inside
security-level 100
ip address 192.168.6.254 255.255.255.0
interface Vlan2
nameif outside
security-level 0
ip address 99.89.69.233 255.255.255.248
interface Ethernet0/0
switchport access vlan 2
interface Ethernet0/1
interface Ethernet0/2
interface Ethernet0/3
interface Ethernet0/4
interface Ethernet0/5
interface Ethernet0/6
interface Ethernet0/7
ftp mode passive
dns server-group DefaultDNS
domain-name default.domain.invalid
object-group network EMRMC
network-object 10.1.2.0 255.255.255.0
network-object 192.168.10.0 255.255.255.0
network-object 192.168.11.0 255.255.255.0
network-object 172.16.0.0 255.255.0.0
network-object 192.168.9.0 255.255.255.0
object-group service RDP tcp
description RDP
port-object eq 3389
object-group service GMED tcp
description GMED
port-object eq 3390
object-group service MarsAccess tcp
description MarsAccess
port-object range pcanywhere-data 5632
object-group service MarsFTP tcp
description MarsFTP
port-object range ftp-data ftp
object-group service MarsSupportAppls tcp
description MarsSupportAppls
port-object eq 1972
object-group service MarsUpdatePort tcp
description MarsUpdatePort
port-object eq 7835
object-group service NM1503 tcp
description NM1503
port-object eq 1503
object-group service NM1720 tcp
description NM1720
port-object eq h323
object-group service NM1731 tcp
description NM1731
port-object eq 1731
object-group service NM389 tcp
description NM389
port-object eq ldap
object-group service NM522 tcp
description NM522
port-object eq 522
object-group service SSL tcp
description SSL
port-object eq https
object-group service rdp tcp
port-object eq 3389
access-list outside_1_cryptomap extended permit ip 192.168.6.0 255.255.255.0 object-group EMRMC
access-list inside_nat0_outbound extended permit ip 192.168.6.0 255.255.255.0 192.168.0.0 255.255.0.0
access-list inside_nat0_outbound extended permit ip 192.168.6.0 255.255.255.0 object-group EMRMC
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 host 99.89.69.334 eq pcanywhere-data
access-list outside_access_in extended permit udp 69.16.158.128 255.255.255.128 host 99.89.69.334 eq pcanywhere-status
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 host 99.89.69.334 object-group RDP
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq ftp
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq ldap
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq h323
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq telnet
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq www
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 host 99.89.69.334 object-group SSL
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 object-group NM522
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 object-group NM1731
access-list outside_access_in extended permit tcp 173.197.144.48 255.255.255.248 host 99.89.69.334 object-group RDP
access-list outside_access_in extended permit tcp any interface outside eq 3389
access-list outside_access_in extended permit tcp host 66.237.238.194 host 99.89.69.333
access-list outside_access_in extended permit tcp host 66.237.238.194 host 99.89.69.333 object-group rdp
access-list outside_access_in extended permit tcp any host 99.89.69.333 object-group rdp
access-list out_in extended permit tcp any host 192.168.6.2 eq 3389
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-524.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) tcp 99.89.69.334 3389 192.168.6.1 3389 netmask 255.255.255.255
static (inside,outside) tcp interface 3389 192.168.6.2 3389 netmask 255.255.255.255
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 99.89.69.338 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
http server enable
http 192.168.6.0 255.255.255.0 inside
http 0.0.0.0 0.0.0.0 outside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto map outside_map 1 match address outside_1_cryptomap
crypto map outside_map 1 set peer 68.156.148.5
crypto map outside_map 1 set transform-set ESP-3DES-MD5
crypto map outside_map interface outside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash md5
group 1
lifetime 86400
crypto isakmp policy 30
authentication pre-share
encryption 3des
hash md5
group 2
lifetime 86400
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd auto_config outside
tunnel-group 68.156.148.5 type ipsec-l2l
tunnel-group 68.156.148.5 ipsec-attributes
pre-shared-key *
class-map inspection_default
match default-inspection-traffic
policy-map type inspect dns preset_dns_map
parameters
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
service-policy global_policy global
prompt hostname context
Cryptochecksum:f47dfb2cf91833f0366ff572eafefb1d
: end
ciscoasa(config-network)#Unclear what did not work. In your original post you include said some commands were added but don't work:
static (inside,outside) tcp interface 3389 192.168.6.2 3389 netmask 255.255.255.255
and later you state you add another command that gets an error:
static (inside,outside) tcp 99.89.69.333 3389 192.168.6.2 3389 netmask 255.255.255.255
You also stated that 99.89.69.333 (actually 99.89.69.233, guessing from the rest of your config and other posts) is your WAN IP address.
The first static statement matches Cisco's documentation, which states that a static statement must use the 'interface' directive when you are trying to do static PAT utilizing the IP address of the interface. Since 99.89.69.333 is the assigned IP address of your WAN interface, that may explain why the second statement fails.
Any reason why you are using static PAT (including the port number 3389) instead of just skipping that directive? Static PAT usually makes sense when you need to change the TCP port number. In your example, you are not changing the TCP port 3389. -
Accessing a java class method from the jsp page.
Hi im a beginner with jsp and im trying to find a way to access a method of my java class file in jsp page. After searching through the forums i tried to use the usebean tag. Im using apache to host the jsp file.Below is an excerpt of my code and the error message i got. What am i doing wrong? anyone know?
<%@ page language="java" %>
<jsp:useBean id="movies" class="movie.Movie" />
<jsp:setProperty name="movies" property="*"/>
<%
movies.getStart("file:///C:/Video/Applications2/sun.mpg");
response.setContentType("text/xml");
%>
exception
org.apache.jasper.JasperException: Exception in JSP: /View.jsp:7
4: <jsp:setProperty name="movies" property="*"/>
5: <%
6:
7: movies.getStart("file:///C:/Video/Applications2/sun.mpg");
8: response.setContentType("text/xml");
9: %>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
javax.servlet.ServletException: javax/media/ControllerListenerHi thanks for responding. Ok i did look through and it was opening some gui. I still need the program to do server side processes so cant use an applet.but i dont need the gui so i revised it and removed the gui. also im using a servlet to call the class now yet i still have the same error. Any ideas?
Below is the vid2jpg code minus the gui.
import java.io.*;
import java.awt.*;
import javax.media.*;
import javax.media.control.*;
import javax.media.format.*;
import javax.media.protocol.*;
import java.awt.image.*;
import javax.imageio.*;
public class vid2jpg implements ControllerListener
Processor p;
Object waitObj = new Object();
boolean stateOK = true;
DataSourceHandler handler;
int imgWidth;int imgHeight;
Image outputImage;
String sep = System.getProperty("file.separator");
int[] outvid;
int startFr = 1;int endFr = 1000;int countFr = 0;
boolean sunjava=true;
* Static main method
public static void main(String[] args)
if(args.length == 0)
System.out.println("No media address.");
new vid2jpg("file:///C:/Video/applications2/sun.mpg"); // or alternative "vfw://0" if webcam
else
String path = args[0].trim();
System.out.println(path);
new vid2jpg(path);
* Constructor
public vid2jpg(String path)
MediaLocator ml;String args = path;
if((ml = new MediaLocator(args)) == null)
System.out.println("Cannot build media locator from: " + args);
if(!open(ml))
System.out.println("Failed to open media source");
* Given a MediaLocator, create a processor and start
private boolean open(MediaLocator ml)
System.out.println("Create processor for: " + ml);
try
p = Manager.createProcessor(ml);
catch (Exception e)
System.out.println("Failed to create a processor from the given media source: " + e);
return false;
p.addControllerListener(this);
// Put the Processor into configured state.
p.configure();
if(!waitForState(p.Configured))
System.out.println("Failed to configure the processor.");
return false;
// Get the raw output from the Processor.
p.setContentDescriptor(new ContentDescriptor(ContentDescriptor.RAW));
TrackControl tc[] = p.getTrackControls();
if(tc == null)
System.out.println("Failed to obtain track controls from the processor.");
return false;
TrackControl videoTrack = null;
for(int i = 0; i < tc.length; i++)
if(tc.getFormat() instanceof VideoFormat)
tc[i].setFormat(new RGBFormat(null, -1, Format.byteArray, -1.0F, 24, 3, 2, 1));
videoTrack = tc[i];
else
tc[i].setEnabled(false);
if(videoTrack == null)
System.out.println("The input media does not contain a video track.");
return false;
System.out.println("Video format: " + videoTrack.getFormat());
p.realize();
if(!waitForState(p.Realized))
System.out.println("Failed to realize the processor.");
return false;
// Get the output DataSource from the processor and set it to the DataSourceHandler.
DataSource ods = p.getDataOutput();
handler = new DataSourceHandler();
try
handler.setSource(ods); // also determines image size
catch(IncompatibleSourceException e)
System.out.println("Cannot handle the output DataSource from the processor: " + ods);
return false;
// setLayout(new FlowLayout(FlowLayout.LEFT));
// currPanel = new imgPanel(new Dimension(imgWidth,imgHeight));
// add(currPanel);
// pack();
//setLocation(100,100);
// setVisible(true);
handler.start();
// Prefetch the processor.
p.prefetch();
if(!waitForState(p.Prefetched))
System.out.println("Failed to prefetch the processor.");
return false;
// Start the processor
//p.setStopTime(new Time(20.00));
p.start();
return true;
* Sets image size
private void imageProfile(VideoFormat vidFormat)
System.out.println("Push Format "+vidFormat);
Dimension d = (vidFormat).getSize();
System.out.println("Video frame size: "+ d.width+"x"+d.height);
imgWidth=d.width;
imgHeight=d.height;
* Called on each new frame buffer
int nextframetime = 0;
private void useFrameData(Buffer inBuffer)
try
if(inBuffer.getData()!=null) // vfw://0 can deliver nulls
if(sunjava) // and with import javax.imageio.*;
int frametimesecs = (int)(inBuffer.getTimeStamp()/1000000000);
if(frametimesecs%10 == 0 && frametimesecs==nextframetime)
nextframetime+=10;
BufferedImage bi = new BufferedImage(outputImage.getWidth(null), outputImage.getHeight(null), BufferedImage.TYPE_INT_RGB);
Graphics g = bi.getGraphics();
ImageIO.write(bi, "png", new File("images"+sep+"image_"+(inBuffer.getTimeStamp()/1000000000)+".png"));
catch(Exception e){}
* Tidy on finish
public void tidyClose()
handler.close();
p.close();
* Block until the processor has transitioned to the given state
private boolean waitForState(int state)
synchronized(waitObj)
try
while(p.getState() < state && stateOK)
waitObj.wait();
catch (Exception e)
return stateOK;
* Controller Listener.
public void controllerUpdate(ControllerEvent evt)
if(evt instanceof ConfigureCompleteEvent || evt instanceof RealizeCompleteEvent || evt instanceof PrefetchCompleteEvent)
synchronized(waitObj)
stateOK = true;
waitObj.notifyAll();
else
if(evt instanceof ResourceUnavailableEvent)
synchronized(waitObj)
stateOK = false;
waitObj.notifyAll();
else
if(evt instanceof EndOfMediaEvent || evt instanceof StopAtTimeEvent)
tidyClose();
* Inner classes
* A DataSourceHandler class to read from a DataSource and displays
* information of each frame of data received.
class DataSourceHandler implements BufferTransferHandler
DataSource source;
PullBufferStream pullStrms[] = null;
PushBufferStream pushStrms[] = null;
Buffer readBuffer;
* Sets the media source this MediaHandler should use to obtain content.
private void setSource(DataSource source) throws IncompatibleSourceException
// Different types of DataSources need to handled differently.
if(source instanceof PushBufferDataSource)
pushStrms = ((PushBufferDataSource) source).getStreams();
// Set the transfer handler to receive pushed data from the push DataSource.
pushStrms[0].setTransferHandler(this);
// Set image size
imageProfile((VideoFormat)pushStrms[0].getFormat());
else
if(source instanceof PullBufferDataSource)
System.out.println("PullBufferDataSource!");
// This handler only handles push buffer datasource.
throw new IncompatibleSourceException();
this.source = source;
readBuffer = new Buffer();
* This will get called when there's data pushed from the PushBufferDataSource.
public void transferData(PushBufferStream stream)
try
stream.read(readBuffer);
catch(Exception e)
System.out.println(e);
return;
// Just in case contents of data object changed by some other thread
Buffer inBuffer = (Buffer)(readBuffer.clone());
// Check for end of stream
if(readBuffer.isEOM())
System.out.println("End of stream");
return;
// Do useful stuff or wait
useFrameData(inBuffer);
public void start()
try{source.start();}catch(Exception e){System.out.println(e);}
public void stop()
try{source.stop();}catch(Exception e){System.out.println(e);}
public void close(){stop();}
public Object[] getControls()
return new Object[0];
public Object getControl(String name)
return null;
below is the servlet code.
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class ShowMovie extends HttpServlet {
String rootURL="http://127.0.0.1:8080/Video/";
public void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
//String movie=request.getParameter("movie");
String movie ="son";
getStart(movie);
response.sendRedirect(rootURL+"View.jsp");
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
public void getStart(String url){
new vid2jpg(url);
this is the error from the server. Im using tomkat 5
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError: javax/media/ControllerListener
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(Unknown Source)
java.security.SecureClassLoader.defineClass(Unknown Source)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
java.lang.ClassLoader.loadClassInternal(Unknown Source)
ShowMovie.getStart(ShowMovie.java:31)
ShowMovie.processRequest(ShowMovie.java:14)
ShowMovie.doGet(ShowMovie.java:22)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs. -
Getting image path from database( Remote server) & display in jsp page
hai frnds,
i have one doudt regarding in my web application Development
. I want to Getting image path from database( **Remote server**) & display in jsp page here iam forwarding my control through Servlets
how this will passiable
Thanks in Advance
SonyKamesh
[email protected]hai
I think ur doubt will be...
1) Getting a Image From Remote Server( & U stored a only path name in Data Base)
2) Image r stroed in saparate Drive( Not in Webroot-- where u Created domine )
Please Any Help Will be Appriciated
[email protected]
Edited by: Sonykamesha on Dec 18, 2007 11:02 PM
Maybe you are looking for
-
I have looked at various help topics but nothing is working; I have not deleted my history lately and nothing in my preferences is checked to do so automatically. I also tried deleting 'sessionstore.js' but that didn't help either. Firefox acknowledg
-
I clicked on the "Firefox" button at the top and then clicked on fullscreen and the Firefox button disappeared - can't figure out how to get out of fullscreen. Tried "alt" already. Thanks!
-
How to clear wifi hotspot history?
[Nokia 5800] Hi, I recently used a wifi hotspot whilst on holiday, which was unsecured, but once you started to web browse you where prompted for a username/password, which i had. Since coming back, i now have a problem where sometimes when i try to
-
PRICE LIST LINE을 DELETE 하는 SAMPLE API
제품 : MFG_QP 작성날짜 : 2006-05-23 PRICE LIST LINE을 DELETE 하는 SAMPLE API ======================================== PURPOSE Price List Lines을 delete 할 수 있는 API가 있는지 알아보고 그 사용방법 을 이해한다. Explanation 아래 설명하는 script는 Price List Lines 만을 delete 하는 sample API scr
-
Install Flash Player on OS X 10.8.5
Can't install Flash Player on OS X 10.8.5. Receive message: Adobe Flash Player can't be installed on the disk. This system does not meet the minimum requirements for installation. Mac OS X 10.6 or higher is required. I have enabled Java, trashed all