EJB access problem from server A to B
hI All,
I use Weblogic 6.1 SP3 on Windows 2000:
When I am calling a Session EJB (on server B) from server A I get:
java.lang.ClassCastException: Assigning instance of class $Proxy105 to
field com.traiana.core.engine.connector.ConnectorAdaptorData#_addressData
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2266)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:514)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1407)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
at
weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:110)
at
weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:123)
at
com.traiana.core.engine.connector.ejb.connectorbean.ConnectorBean_7l9wfx_EOImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Any clue ?
I am able to ping my server
C:\>ping serverB
Reply from xx.xxx.xx.xxx: bytes=32 time<1ms TTL=128
Reply from xx.xxx.xx.xxx: bytes=32 time<1ms TTL=128
Reply from xx.xxx.xx.xxx: bytes=32 time<1ms TTL=128
Reply from xx.xxx.xx.xxx: bytes=32 time<1ms TTL=128
Ping statistics for xx.xxx.xx.xxx:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:>tnsping ORCL
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 29-OCT-2012 17:19:55
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerB)(PORT=1521)) (CONNECT_DATA=(SERVER=DEDICATED) (SERVICE_NAME =ORCL)))
TNS-12535: TNS:operation timed out
Similar Messages
-
I am using JDev 10g(9.0.4) I have created an EJB, I can deploy the EJB to OC4J Standalone 10g (9.0.4) and everything works great.
However, when I deploy the EJB to Oracle Application Server 10g(9.0.4) enterprise edition, I cannot assess the EJB.
I assume it may be a security issue??
Anyone have any ideas?It may be security but it may just be the JNDI URL you are using.
If you are accessing a remote EJB and specifying the full JNDI as "ormi://host:23971/application" then you'll need to modify it to specify a slightly different JNDI lookup string.
In an OracleAS environment, the ports for the OC4J instance are dynamically allocated, so what was an easily identifiable fixed port (23791 for OC4J standalone) isn't the same in OracleAS.
So what we've provided is a way to specify a JNDI URL which first will interrogate our server to find the OC4J RMI port, and then connect to that.
The EJB Developer's Guide describes this. Look for the location section at the following link.
http://download-west.oracle.com/docs/cd/B10464_02/web.904/b10324/primer.htm#1019664
cheers
-steve- -
Direct File System access problems from JAWS application
Hello,
I have built a Web Start application that consists of a Webserver (Jetty) ,
a WAR file and a Java (main) class that deploys the web application on
the server and starts the server. It all works fine, apart from the fact
that I am getting java.security.AccessControlExceptions when I try to
access the local filesystem or system variables like the java.io.tmpdir.
I have signed all the jar files and I included the<security> <allpermissions />
</security> tag in the jnlp file. Still, I can't seem to get out
of the sandbox.
I have read in this article (http://mindprod.com/jgloss/javawebstart.html)
that direct file system access from a Web Start application is impossible
(Quote: "There is still no way for even a signed JAWS app to
find some persistent disk space in an easy way. It pretty well
has to ask the user for the name of some directory to use.")
Is this true?
Thank you,
PeterHi Guys,
I found a way to access the local filesystem...
Besides signing all the jar files and including the<security><allpermissions /></security> tag in the jnlp file I have to include this line in the code I execute on the client machine:
System.setSecurityManager(null);
Regards,
Peter -
Folders and Files access denied from Server 2008 on Windows 7
I upgraded my server from 2003 to 2008. Now my Windows 7 machines can't open files in the Shared Documents on the server. Error comes back with access denied. Can use remote desktop with a Windows 7 machine and have access to the Shared Documents
folder. Any help as to why getting access denied would be great.Hi,
Plesase check ntfs permisions and share permssions of the shared folder. You could try to set share permissions to Full Control for the Everyone group to see if the issue still exists.
Share and NTFS Permissions on a File Server
http://technet.microsoft.com/en-us/library/cc754178.aspx
Regards,
Mandy
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Sapgui access problem from citrix
I am getting one error message while accessing sapgui through citrix .
It is giving the following error message
"This application has failed to start because saplgdll.dll was not found . Re - installing the application may fix this problem" in the error dialog box
can anybody help on this error. why this error is coming.what are the checks we need to do.
Regards,
krishna.we are using ECC6.0 . Actual problem is when i login into the citrix , we have one application called 'my workplace' for accessing all production systems. after logging into this application , it will display list sapgui systems available like BI,XI,R/3 systems. when i trying to access any of the sapgui i am getting the error message.
"This application has failed to start because saplgdll.dll was not found . Re - installing the application may fix this problem" in the error dialog box"
where is the actual problem occured by analysing the error message. we are using ecc 6.0 installed on unix server with oracle database.
can you give the information like what are the checks we need to perform for resolving this issue.
Thanks for your response.
Regards,
krishna. -
Show Progress Bar while Accessing data from Server
Hi,
I need a Progress bar to be displayed when my application triggers database to backup, As the data would be large progress bar makes sense to display the time span.
I need a progress bar in place to show the progress of the task,
Can anyone suggest me how to do this? This should be shown when i backup my database from WPF.
I have code written for server side and just need a progress bar and timer.
Thanks,
Shreyas MYou could use a BackgroundWorker. There is a complete code sample available on MSDN here:
https://msdn.microsoft.com/en-us/library/cc221403(v=vs.95).aspx. You do the long-running work, i.e. the actual backup, in the DoWork event handler.
Note that you will need to report the progress (by calling the ReportProgress method of the BackgroundWorker) and calculate the total time it will take to complete the backup operation yourself.
It might be easier to just display some "waiting" element and no progress bar during the time it takes for the operation to complete:
<!-- replace this with any element like for example an Image -->
<TextBlock x:Name="loadingElement" Visibility="Collapsed">please wait...</TextBlock>
loadingElement.Visibility = System.Windows.Visibility.Visible;
System.Threading.Tasks.Task.Factory.StartNew(() =>
//call your backup method here (this code is being run on a background thread....
.ContinueWith((t) =>
loadingElement.Visibility = System.Windows.Visibility.Collapsed;
}, System.Threading.CancellationToken.None, TaskContinuationOptions.None, TaskScheduler.FromCurrentSynchronizationContext());
After all you probably don't know how long time it will take for the method to complete, right? If you want to display a ProgressBar, the backup method should report the progress somehow. If you just call a method and wait for it to complete, you have no
idea of how long time it will take for the method to return. You will then have to estimate the actual time and then increase the value of the progress bar accordingly.
There is no way to find out before hand exactly how long time it will take until a method returns so it is the responsibility of the (backup) method to report to the caller how long time it needs and how long time is left until it is done. Far from all API:s
support reporting progress.
As you see in the BackgroundWorker example on MSDN, you could call the ReportProgress once in each iteration of a loop but if there is no loop in your Backup method you better just display a busy indicator without a progress bar since you don't know anything
about the progress anyway.
Edit: You could of course also display a ProgressBar element with its IsIndeterminate set to True. Just replace the TextBlock and use the sample code above:
<ProgressBar x:Name="loadingElement" IsIndeterminate="True" Height="50"/>
Setting this property to true is useful when you don't know how long time the operation will take:
https://msdn.microsoft.com/en-us/library/system.windows.controls.progressbar.isindeterminate(v=vs.110).aspx
Hope that helps.
Please remember to mark helpful posts as answer to close your threads and then start a new thread if you have a new question. Please don't ask several questions in the same thread. -
Need FMS Guru! to Read substitution.xml from Server Side Apps
I know how to read XML file from HTTP using XML.load(url),
but there are some config node i need to read from substitution.xml
from conf folder. Seems like XML.load doesn't allow accessing
Physical path from "D:\Program Files\Adobe\Flash Media Server
3\conf" - I am new in FMS Development, I dont know how to access
them from Server side. Help pls.Thanks by your help Shanu.
Nevertheless, finally I tryed the easiest way (pass the parameter with 'GET'). Moreover I found why my code wasn't working. It was a fool thing. I though PDA connect throught a proxy, but it wasn't true. Whatever.
Regards.
FSG.
The final script on the xml-report is:
<report type="Validacion Online" required="false" multiple="false" attachments="false" scriptref="store://this/reportdef/script[@name='ValidacionOnlineValidation1']">
<field sortid="0" id="Poliza" inputtype="textbox" label="Poliza" rows="1" wide="false" required="false"/>
</report>
<script name="ValidacionOnlineValidation1" script="if (0 == 0)
var szURL="http://URL/vonline/vonline?parameter1=";+Poliza.value;
var m_HttpReq = new ActiveXObject("Pocket.HTTP"); m_HttpReq.timeout = 15000;
var m_HttpResponse = m_HttpReq.GetResponse(szURL,"");
window.alert(m_HttpResponse.string);
if (m_HttpResponse.statusCode==200) {....}
else {....} -
Hi Team,
We are using SharePoint 2010 server with service pack 1, we want to remove/delete old user profiles, access & site from server
is there any script or feature available using that we can only remove dactivated/deleted/old user profiles, access & site.
Thanks
NPratikTake a look at Metalogix ControlPoint, which will compare user accounts on SharePoint to Active Directory and remove accounts that no longer exist in AD (or are disabled).
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
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 WL6.1 server from IE browser
Hello,
Im currently running weblogic server 6.1sp4 on microsoft xp home edition.
I started weblogic using the startWebLogic.cmd file. For the most part it looks
like the server starts up correctly but when I try to access the index.html page
through internet explorer 6.0 by typing http://localhost:8001/index.html I get
a "The page cannot be displayed" error.
The server log looks alright upon start up.
below is the output from the logs.
C:\bea\wlserver6.1\config\mydomain>startWebLogic.cmd
C:\bea\wlserver6.1>set PATH=.\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Syst
em32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel
C:\bea\wlserver6.1>set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
C:\bea\wlserver6.1>echo off
* To start WebLogic Server, use the password *
* assigned to the system user. The system *
* username and password must also be used to *
* access the WebLogic Server console from a web *
* browser. *
C:\bea\wlserver6.1>"C:\bea\jdk131\bin\java" -hotspot -ms64m -mx64m -classpath
;.\lib\weblogic_sp.jar;.\lib\weblogic.jar" -Dweblogic.Domain=mydomain -Dweblogic
.Name=myserver "-Dbea.home=C:\\bea" -Dos.name="windows 2000" -Dweblogic.manageme
nt.password=arnold79 -Dweblogic.ProductionModeEnabled=true "-Djava.security.poli
cy==C:\bea\wlserver6.1/lib/weblogic.policy" weblogic.Server
Starting WebLogic Server ....
<Nov 22, 2003 10:42:07 PM EST> <Notice> <Management> <Loading configuration file
.\config\mydomain\config.xml ...>
<Nov 22, 2003 10:42:08 PM EST> <Notice> <WebLogicServer> <Starting WebLogic Admi
n Server "myserver" for domain "mydomain">
<Nov 22, 2003 10:42:10 PM EST> <Notice> <Management> <Applications will only be
copied to managed servers when needed. To force applications to be copied to man
aged servers when they are started, specify system property -Dweblogic.managemen
t.forceApplicationCopy=true on your startup command.>
<Nov 22, 2003 10:42:11 PM EST> <Notice> <Management> <Application Poller not sta
rted for production server.>
<Nov 22, 2003 10:42:11 PM EST> <Notice> <WebLogicServer> <ListenThread listening
on port 8001>
<Nov 22, 2003 10:42:11 PM EST> <Notice> <WebLogicServer> <SSLListenThread listen
ing on port 8002>
<Nov 22, 2003 10:42:12 PM EST> <Notice> <Management> <Starting discovery of Mana
ged Server... This feature is on by default, you may turn this off by passing
-D
weblogic.management.discover=false>
<Nov 22, 2003 10:42:12 PM EST> <Notice> <WebLogicServer> <Started WebLogic Admin
Server "myserver" for domain "mydomain" running in Production Mode>
"Anant Kadiyala" <[email protected]> wrote in message
news:3f79ca48$[email protected]..
>
Have anyone browsed the Embedded LDAP server successfully in 8.1GA usingan external
LDAP browser?
I followed instructions onhttp://edocs.bea.com/wls/docs81/secmanage/ldap.html#1100263
but hit a road block. The broswer is not able to connect when using UserDN. When
I connect using anonymous mode, it is able to connect fine.
Is there a bug in the 8.1 Embedded LDAP server?
Are you using the cn=Admin dn or a user dn? If you are using a user dn, you
will need to
modify acls.prop. -
Problems servicing EJB requests on SOA server. SOA Suite 11g.
Hi all
I recently installed SOA Suite 11g on my Windows 7 machine for a project that will be employing SOA, BPM and EJB services. I created a new SOA domain with an admin server and a managed SOA server. When creating the domain, I specified BPM Suite, SOA Suite, Enterprise manager, WSM Policy Manager and JRF to be included as per project requirements.
SOA and BPM project have been deployed to and are working fine on the SOA server, but I observed the following odd behaviour when I tried to deploy and use a Java EJB service: -
1. Via the admin console, I successfully deployed my EJB ear to the managed SOA server and can see it in the JNDI tree of the server.
2. When I try to invoke the EJB from a remote client, the service is successfully located via JNDI and a request is sent, but it is as though the service then simply swallows the request and does nothing with it. No output is returned from the EJB service and none of the logging from the EJB service appears in the logs. No errors are reported on the console or in any of the Weblogic logs that I have looked through.
3. I tried deploying the ear to the admin server instead and invoking it with the same client. This time it works absolutely fine.
4. When messing around with setDomainEnv.cmd, I accidentally removed jrf.jar from the classpath. When the SOA server subsequently started, this caused lots of errors while deploying the SOA components, but my EJB service worked with no problems on the SOA server. When I correcteed the classpath and restarted, the original problem returned.
It seems as though a conflict is occurring, which I am pretty baffled by. I would be very grateful for any advice or suggestions on this issue.
Many thanks
JonHi Jon
I don't know the root cause of this issue. But try this and see if it works. Undeploy this EJB EAR application from weblogic admin console. Then Login into EM Console. And in EM Console, expand weblogic domain and select your soa server under this folder and right click and try to Deploy your EAR. And then access the EJB.
We have some BPM Applications where we have one Workflow project that we deploy from EM Console. This BPM App also have lots of EJB projects. We deploy all of them as single EAR from em console under weblogic domain. So far we have not faced any issues.
Thanks
Ravi Jegga -
Hello there :)
i,ve faced a problem as the following :
i,ve internal network ( domain network ) with standlone TMG i want TMG to Allow public users to access
1- web server with load balance on port 5555
2- mail server with HTTPS for OWA
3- DNS to make public users make query to solve Domain name
4- FTP with load balance on port 5555
please anyone can help me with configuring this n make external users access the following mentioned aboveHi,
You could get start from the following blogs.
Microsoft Forefront TMG – Webserver Load Balancing
http://www.isaserver.org/articles-tutorials/configuration-general/Microsoft-Forefront-TMG-Webserver-Load-Balancing.html
Enabling Forms-based Authentication for External and Internal OWA 2010 Users in Exchange 2010 published using Forefront TMG 2010
http://www.msexchange.org/articles-tutorials/exchange-server-2010/management-administration/enabling-forms-based-authentication-external-internal-owa-2010-users-exchange-2010-published-using-forefront-tmg-2010-part2.html
TMG Firewall Name Resolution
http://www.isaserver.org/articles-tutorials/installation-planning/TMG-Firewall-Name-Resolution-Part3.html
Best Regards,
Joyce
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
I have been using an iPhone and iPad to access my work emails via our MS Exchange server for a number of years now with no problems at all. I recently replaced my home PC with an iMac (first Mac I have owned) but cannot get it to communicate with the exchange server. I've checked and re-checked the information on the iMac and my iPad - I even deleted the mail account on the iPad and input the details concurrently with setting up on the iMac - but the Mac will not access the exchange server.
I receive the message "The Exchange server "---------------" rejected the password for user "------" Enter you password again or cancel." I am using the correct password. iPad and iPhone are logging on using that password fine. iMac just ends up repeating this message.
Our IT support at work assure me that there is no reason from their end for it not to work, and reasonably point to it working using the iPhone etc.
I'd be extremely grateful if anyone can provide a solution to this basic, but extremely frustrating, little problem.iPhone and iPad use a different way of accessing the server.
I don't know the exact details, but we are using Zarafa instead of Exchange and have the same problem:
iPhone and the likes can connect to Zarafas z-push interface, which is some identical interface to the native Exchange interface, while the desktop e-mail application tries to interface with the web front end (via http) of the server.
These are completely different setups and it depends on the actual installation of the server to get this going.
So, you will most likely need different access parameters for the desktop - and the web mail feature has to be enabled on the Exchange server.
In my opinion using the web mail interface is just silly. On the other hand, the native protocol has less features comparedto the web front end, so you are somehow stuck with sins of the past.
Good luck! -
Missing version field in response from server when accessing resource
HY
I have a problem to use the version option of the webstart. All files are included into a war file (created with jar cvf xx.war *). This file is in the webapps folder of the Tomcat 5. The jar files from the dev. kit (jnlp-servlet.jar, jaxp.jar, parser.jar are in the WEB-INF/lib folder).
Every time I get the same message:
Category: Download Error
Missing version field in response from server when accessing resource: (http://localhost:8080/version/ademo.jar, 1.1)
Do I need a aditional file or must Iwrite a servlet???
Whats wrong
my JNLP file
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File fuer HJP3 WebStart Demo-Applikation -->
<jnlp codebase="http://localhost:8080/version/" href="wstest.jnlp">
<information>
<title>HJP3 WebStart Demo Application</title>
<vendor>Guido Krueger</vendor>
<homepage href="http://www.javabuch.de"/>
<description>HJP3 WebStart Demo Application</description>
<icon href="wstest.gif"/>
<offline-allowed/>
</information>
<information locale="de">
<description>HJP3 WebStart Demo-Applikation</description>
<offline-allowed/>
</information>
<security>
<!-- <all-permissions/> //-->
</security>
<resources>
<j2se version="1.4+"/>
<jar href="ademo.jar" version="1.1"/>
</resources>
<application-desc main-class="Listing3813"/>
</jnlp>
my version.xml file
<jnlp-versions>
<resource>
<pattern>
<name>ademo.jar</name>
<version-id>1.1</version-id>
</pattern>
<file>application.jar</file>
</resource>
</jnlp-versions>
my web.xml file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>JnlpDownloadServlet</servlet-name>
<servlet-class>com.sun.javaws.servlet.JnlpDownloadServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JnlpDownloadServlet</servlet-name>
<url-pattern>*.jnlp</url-pattern>
</servlet-mapping>
</web-app>The log file (jnlpdownloadservlet.log) would show the calls for the jar files if the servlet is called for the jar files (did you correct the url mapping ?). Here are a few lines from a log file
JnlpDownloadServlet(4): Initializing
JnlpDownloadServlet(3): Request: /maportal/wfe/wfeguiv.jnlp
JnlpDownloadServlet(3): User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
JnlpDownloadServlet(4): DownloadRequest[path=/wfe/wfeguiv.jnlp isPlatformRequest=false]
JnlpDownloadServlet(4): Basic Protocol lookup
JnlpDownloadServlet(4): JnlpResource: JnlpResource[WAR Path: /wfe/wfeguiv.jnlp lastModified=Tue Mar 23 17:06:56 CET 2004]]
JnlpDownloadServlet(3): Resource returned: /wfe/wfeguiv.jnlp
JnlpDownloadServlet(4): lastModified: 1080058016000 Tue Mar 23 17:06:56 CET 2004
JnlpDownloadServlet(3): Request: /maportal/wfe/wfegui.gif
JnlpDownloadServlet(3): User-Agent: JNLP/1.0.1 javaws/1.4.2_03 (b02) J2SE/1.4.2_03
JnlpDownloadServlet(4): DownloadRequest[path=/wfe/wfegui.gif isPlatformRequest=false]
JnlpDownloadServlet(3): Request: /maportal/wfe/wfegui.jar
JnlpDownloadServlet(3): User-Agent: JNLP/1.0.1 javaws/1.4.2_03 (b02) J2SE/1.4.2_03
JnlpDownloadServlet(4): DownloadRequest[path=/wfe/wfegui.jar isPlatformRequest=false]
JnlpDownloadServlet(4): Basic Protocol lookup
JnlpDownloadServlet(4): JnlpResource: JnlpResource[WAR Path: /wfe/wfegui.jar lastModified=Tue Mar 23 17:06:30 CET 2004]]
JnlpDownloadServlet(3): Resource returned: /wfe/wfegui.jarYou should see all the resources (including jar files) being requested, and whether a specific version was requested or not (in above sample, not).
I put my problems down to my application server (Orion) as other people seem to have this working. The deployment in Orion keeps the original timestamps of the jars, so I explicitly set the timestamps in my build so that the unchanged jars do not have to be downloaded all the time. This is not really a good solution, so maybe someone else can give further advice.
Brendan -
UNABLE TO ACCESS SECURED EJB USING IIOP FROM JSP
Following codes does not work with IIOP when called from jsp returns an
com.sap.engine.services.iiop.CORBA.CORBAObject:com.sap.engine.services.iiop.server.portable.Delegate_1_1@8312b1 step2 RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: com.sap.engine.services.ejb.exceptions.BaseRemoteException: User Guest does not have access to method create(). at
Following codes does not work with IIOP when called from a fat client returns an
org.omg.CORBA.UNKNOWN: vmcid: 0x0 minor code: 0 completed: Maybe
at com.sun.corba.se.internal.core.UEInfoServiceContext.<init>(UEInfoServ
iceContext.java:33)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.sun.corba.se.internal.core.ServiceContextData.makeServiceContext(
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.cosnaming.CNCtxFactory");
p.put(Context.PROVIDER_URL, "iiop://hostname:50007");
p.put(Context.SECURITY_PRINCIPAL, "User");
p.put(Context.SECURITY_CREDENTIALS, "pass");
I have add java option to add IIOP filer
-Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sap.engine.services.iiop.csiv2.interceptors.SecurityInitializer
Solution Required: Could you please detail me what steps in need to perform in order for me to access secure ejb using iiop protocol.
FYI -- How ever ejb security works with P4 protocol, If required i can send you the test case ear.
Thanks
Vijay
Following are the server side logs
java.rmi.RemoteException: com.sap.engine.services.ejb.exceptions.BaseRemoteException: User Guest does not have access to method create().
at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:91)
at test._TestEJBHome_Stub.create(_TestEJBHome_Stub.java:214)
at jsp_testIIOP1199698887113._jspService(jsp_testIIOP1199698887113.java:33)
at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
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:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.engine.services.security.exceptions.BaseSecurityException: Caller not authorized.
at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:608)
at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:505)
at com.sap.engine.services.security.resource.ResourceContextImpl.checkPermission(ResourceContextImpl.java:45)
at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:89)
... 20 more
; nested exception is:
java.lang.SecurityException: com.sap.engine.services.security.exceptions.BaseSecurityException: Caller not authorized.
at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:608)
at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:505)
at com.sap.engine.services.security.resource.ResourceContextImpl.checkPermission(ResourceContextImpl.java:45)
at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:89)
at test._TestEJBHome_Stub.create(_TestEJBHome_Stub.java:214)
at jsp_testIIOP1199698887113._jspService(jsp_testIIOP1199698887113.java:33)
at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
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:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)That's the code that you need to execute but you should
probably encapsulate that code in Custom Action.
Orion has a EJB Tag Library that is free to distribute that
does all that stuff you just set some attributes.
Go to their site and look at their Tag Libraries.
Also look for other Tag Libraries Freely Available for EJB Access.
Maybe you are looking for
-
Open report in same page section in dashboard
hi all, i am facing some problem i have a report with some link on dashboard. When clicking on that link new report is going to be open. What i want is after clicking the link the new report should be opened in the same dashboard section where first
-
How do I access Camera Raw Plug-in for PSE 11?
I can't figure out how to access the Camera Raw plug-in for Photoshop Elements 11 ( on a Macbook Pro OSX.) I recently installed PSE 11, and when I select "about plug-in" within the app, it brings up a box that shows version 7.1.0.354. Does that me
-
Hi, I want to display some text in a script window dynamically. Is it possible to have a dynamic window in script. Please help in this regard. Thanks & Regards, Rajesh
-
Exporting Custom table through function module
<b>How can i Export Custom table through function module.</b> when we add some table in the function module table tab it asks for a ref. table which is some table in database .. but i want to add some custom table with some user defined column names.
-
Pdf file missing left hand column
I create a pdf files from a word resume and the file does not show the left side column with various links that I have been used seeing. Is their a tool I should have turned on.