Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SecurityManager und einbinden der policy file

Empfohlene Antworten

Hallo,

Ich hab eine Java Applikation die mit Spring, JPA und RMI arbeitet. Nun würde ich gerne einen RMISecurityManager einbinden, sobald ich aber den SecurityManager setze spuckt mein log4j Initialisierungswarnungen und mein Spring kann den applicationContext nicht mehr finden.

kann mir da jemand Helfen? Die Policy-Datei sowie die applicationContext-Datei, die ich benutzen will, befinden sich im ClassPath. Setze ich die Policy-Datei richtig oder wird die default policy benutzt? grant permission java.security.AllPermission hat nichts gebraucht. Ohne den SecurityManager geht alles einwandfrei.

System.setProperty("java.security.policy", "java.policy");

System.setSecurityManager(new RMISecurityManager());
log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).

log4j:WARN Please initialize the log4j system properly.
Exception: IOException parsing XML document from class path resource [applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist

Gibts keine Ideen oder jemanden der das schon mal eingesetzt hat?

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.