classpath

I am running a RMI application and no security manager: RMI class loader disabled exception comes

こ雲淡風輕ζ 提交于 2020-01-05 05:57:23
问题 This is the whole exception: Computeappengine exceptionRemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: Client.prog (no security manager: RMI class loader disabled) java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang

Jenkins Running on Websphere 8.5 causes plugin class load errors

杀马特。学长 韩版系。学妹 提交于 2020-01-04 20:28:25
问题 I am running Jenkins (1.552) on WebSphere 8.5 with Java 7 on RedHat Linux. I loaded the Artifactory plugin into Jenkins, but when I hit test connection, I receive the following error: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log After looking around, it appears that the Artifactory plugin was not compiled with the pluginFirstClassLoader option. It appears due

Need file from src/main/resources in generate-sources phase for annotation processor config

。_饼干妹妹 提交于 2020-01-04 14:14:56
问题 I have an annotation processor that I need to give some configuration to tell it a few details about how I want it to generate source code. I spent a good deal of time trying to understand why the file was sitting in target/classes after the build, but I was getting an exception during annotation processing stating that the file did not, in fact, exist. After much digging I finally figured out why the file (stored in src/main/resources/config ) isn't getting copied over to target/classes

How to prevent JBoss inter web application classpath?

橙三吉。 提交于 2020-01-04 11:58:51
问题 I have two web application deployed in JBoss within same server. I have observed classpath is shared between this two web applications. So how do I prevent classpath saring between applications. I mean whatever classes and jar files available in one application should not be visible in another application in same server in jboss. 回答1: For most versions of jBoss AS you need to update your jboss-web.xml file: <jboss-web> <class-loading> <loader-repository>com.example:archive=unique-archive-name

How to prevent JBoss inter web application classpath?

浪子不回头ぞ 提交于 2020-01-04 11:55:47
问题 I have two web application deployed in JBoss within same server. I have observed classpath is shared between this two web applications. So how do I prevent classpath saring between applications. I mean whatever classes and jar files available in one application should not be visible in another application in same server in jboss. 回答1: For most versions of jBoss AS you need to update your jboss-web.xml file: <jboss-web> <class-loading> <loader-repository>com.example:archive=unique-archive-name

Javadoc generation for Android

大兔子大兔子 提交于 2020-01-04 08:08:11
问题 I am trying to generate my documentation for my android project with javadoc. The problem is that javadoc isn't able to find the android package. My error is the same as this one. If I am trying the first solution it says: javadoc: error - The -classpath option may be specified no more than once. What am I doing wrong? Furthermore, I tried this solution, but I dont know what I have to do at the last step. 回答1: I've found you can add multiple paths to -classpath by separating them with semi

Javadoc generation for Android

天涯浪子 提交于 2020-01-04 08:07:42
问题 I am trying to generate my documentation for my android project with javadoc. The problem is that javadoc isn't able to find the android package. My error is the same as this one. If I am trying the first solution it says: javadoc: error - The -classpath option may be specified no more than once. What am I doing wrong? Furthermore, I tried this solution, but I dont know what I have to do at the last step. 回答1: I've found you can add multiple paths to -classpath by separating them with semi

loading clojure-contrib

为君一笑 提交于 2020-01-04 02:34:34
问题 I'm new to the whole JVM thing, and trying to play with clojure. I'm attempting to load clojure-contrib and failing: # in bash $ java -cp /path/to/clojure.jar:/path/to/contrib.jar clojure.main # in REPL user=> (require 'clojure.contrib.math) nil user=> (sqrt 2) java.lang.Exception: Unable to resolve symbol: sqrt in this context (NO_SOURCE_FILE:10) Any pointers will be great - thanks. 回答1: I'm no expert, but it seemed like a namespace issue. The solution I employed was this: ;; for REPL user=>

How can I navigate to a .java file instead of a .class file with sourcepath specified in the classpath?

廉价感情. 提交于 2020-01-04 02:20:07
问题 I have a prebuilt jar under my project's libs folder to speed up build-time. However, I would like to browse the lib's source when navigating into one of its contained classes, so thus added the following line to .classpath: <classpathentry kind="lib" path="libs/mylib.jar" sourcepath="/MyLibSrc"/> Where MyLibSrc contains the source for mylib.jar. When I navigate into one of the lib's classes, Eclipse opens the corresponding .class file instead of the .java file. How can I set to open the

Real SBT Classpath at Runtime

巧了我就是萌 提交于 2020-01-03 17:45:07
问题 I have some test cases that need to look at the classpath to extract the paths of some files/directories in there. This works fine in the IDE. The problem is that, when running SBT test, Properties.javaClassPath gives me /usr/share/sbt-launcher-packaging/bin/sbt-launch.jar . The classpath is fine when I run show test:dependency-classpath . Is there a way to obtain that information from inside the running Scala/Java program? Or is there a way to toss it into a system property or environment