Maven -> Weblogic error

I have a strange error. All my co-workers can build but I cant. The only thing I can find is that I dont have installed BEA Weblogic but I dont want to have that installed. It should be able to run anyway.

Could someone tell me what is wrong? If you need pom.xml I got that one as well.




process-classes:
     [copy] Copying 4 files to C:\hudson\jobs\albpm_ip-identity-asserter_-_Build\workspace\target\mbean-content
    [mkdir] Created dir: C:\hudson\jobs\albpm_ip-identity-asserter_-_Build\workspace\target\mbean-jar
     [java] Creating an MJF from the contents of directory C:\hudson\jobs\albpm_ip-identity-asserter_-_Build\workspace\target\mbean-content...
     [java] Compiling the files...
     [java] Creating the list.
     [java] Doing the compile.
     [java] WLMaker-SubProcess: : Exception in thread "main" java.lang.Error: java.util.zip.ZipException: The system cannot find the file specified
     [java] WLMaker-SubProcess: : 	at weblogic.management.commo.BeanGenDriver.getManagementTempDir(BeanGenDriver.java:93)
     [java] WLMaker-SubProcess: : 	at weblogic.management.commo.BeanGenDriver.main(BeanGenDriver.java:117)
     [java] WLMaker-SubProcess: : Caused by: java.util.zip.ZipException: The system cannot find the file specified
     [java] WLMaker-SubProcess: : 	at java.util.zip.ZipFile.open(Native Method)
     [java] WLMaker-SubProcess: : 	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
     [java] WLMaker-SubProcess: : 	at java.util.jar.JarFile.<init>(JarFile.java:132)
     [java] WLMaker-SubProcess: : 	at java.util.jar.JarFile.<init>(JarFile.java:97)
     [java] WLMaker-SubProcess: : 	at weblogic.management.commo.BeanGenDriver.getManagementTempDir(BeanGenDriver.java:90)
     [java] WLMaker-SubProcess: : 	... 1 more
     [java] WLMaker-SubProcess: : Stopped draining WLMaker-SubProcess: 
     [java] WLMaker-SubProcess: : Stopped draining WLMaker-SubProcess: 
     [java] BeanGen code generation failed
[HUDSON] Archiving C:\hudson\jobs\albpm_ip-identity-asserter_-_Build\workspace\pom.xml to C:\hudson\jobs\albpm_ip-identity-asserter_-_Build\modules\dk.skat.ip.integration.albpm$ip-identity-asserter\builds\2010-11-22_13-41-28\archive\dk.skat.ip.integration.albpm\ip-identity-asserter\1.2\pom.xml
[INFO] ------------------------------------------------------------------------

Open in new window

MickeysAsked:
Who is Participating?
 
objectsCommented:
it looks like it needs files from WL installation, not actually WL running

> well I will try to talk to the developer about it.

thats the best bet. you need to understand fully what it is doing before you can take any action
0
 
objectsCommented:
looks like the bean generation requires weblogic to be installed
can you post your pom
0
 
MickeysAuthor Commented:
Here you go. There is weblogic and in my reporsitory this is downloaded ok.
<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

	<modelVersion>4.0.0</modelVersion>

	<parent>

		<groupId>dk.xxxx.ip.parents</groupId>

		<artifactId>ip-parent</artifactId>

		<version>1.3</version>

	</parent>

	<groupId>dk.xxxx.ip.integration.albpm</groupId>

	<artifactId>ip-identity-asserter</artifactId>

	<version>1.2</version>

	<name>${project.artifactId}</name>

	<packaging>jar</packaging>

	<description>IPIdentityInContextIdentityAsserter</description>

	<url>http://xxxxxxxxxxxx.xxx.dk/sites/ip/integration/albpm/${project.artifactId}/trunk/</url>

	<scm>

		<developerConnection>

            scm:perforce:someone@xxxxsup01d.xxx.dk:1666://depot/artifacts/ip/integration/

        </developerConnection>

		<connection>scm:perforce:someone@xxxxsup01d.xxx.dk:1666://depot/artifacts/inventory/ip/integration/albpm/${project.artifactId}/trunk</connection>

	</scm>

	<issueManagement>

		<url>http://xxx.xx.xx.xx:xxxx/atlassian-jira-3.6.3/browse/AMP-95</url>

	</issueManagement>

	<ciManagement>

		<system>hudson</system>

		<url>http://xxxxxxxxxxxx.xxx.dk:8082/job/inventory-ip/</url>

	</ciManagement>

	<distributionManagement>

		<site>

			<id>xxxxxxxxxxxx.xxx.dk</id>

			<url>scp://xxxxxxxxxxxx.xxx.dk/var/m2sites/ip/integration/albpm/${project.artifactId}/trunk/</url>

		</site>

	</distributionManagement>

	<build>

		<plugins>

			<plugin>

				<groupId>org.apache.maven.plugins</groupId>

				<artifactId>maven-antrun-plugin</artifactId>

				<executions>

					<execution>

						<id>generate-mbean</id>

						<phase>generate-sources</phase>

						<configuration>

							<tasks>

								<property name="WL_HOME" value="${WL_HOME}" />

								<property name="mbean.java.src"

									value="IdentityInContextIdentityAsserterMBean.java" />

								<property name="mbean.xml.src" value="IdentityInContextIdentityAsserter.xml" />

								<property name="mbean.jar.name" value="IdentityInContextIdentityAsserter.jar" />

								<property name="compile_classpath" refid="maven.compile.classpath" />

								<property name="project.version" value="${project.version}" />

								<property name="target.dir" value="${project.build.directory}" />

								<ant antfile="build.xml" target="generate-sources" />

							</tasks>

							<sourceRoot>target/mbean-ide</sourceRoot>

						</configuration>

						<goals>

							<goal>run</goal>

						</goals>

					</execution>

					<execution>

						<id>assemble-mbean</id>

						<phase>process-classes</phase>

						<configuration>

							<tasks>

								<property name="WL_HOME" value="${WL_HOME}" />

								<property name="mbean.java.src"

									value="IdentityInContextIdentityAsserterMBean.java" />

								<property name="mbean.xml.src" value="IdentityInContextIdentityAsserter.xml" />

								<property name="mbean.jar.name" value="IdentityInContextIdentityAsserter.jar" />

								<property name="compile_classpath" refid="maven.compile.classpath" />

								<property name="project.version" value="${project.version}" />

								<property name="target.dir" value="${project.build.directory}" />

								<ant antfile="build.xml" target="process-classes" />

							</tasks>

						</configuration>

						<goals>

							<goal>run</goal>

						</goals>

					</execution>

				</executions>

			</plugin>

			<plugin>

				<groupId>org.apache.maven.plugins</groupId>

				<artifactId>maven-jar-plugin</artifactId>

				<configuration>

					<archive>

						<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

					</archive>

				</configuration>

			</plugin>

			<plugin>

				<artifactId>maven-assembly-plugin</artifactId>

				<configuration>

					<descriptorRefs>

						<descriptorRef>jar-with-dependencies</descriptorRef>

					</descriptorRefs>

					<archive>

						<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

					</archive>

				</configuration>

				<executions>

					<execution>

						<id>make-assembly</id>

						<phase>package</phase>

						<goals>

							<goal>single</goal>

						</goals>

					</execution>

				</executions>

			</plugin>

			<plugin>

				<groupId>dk.xxxx.plugins</groupId>

				<artifactId>installer-maven-plugin</artifactId>

				<version>0.23</version>

				<configuration>

					<installModule>

						<module>mbean</module>

						<scriptModules>

							<mbeanConfigModule>

								<mbeanName>IdentityInContextIdentityAsserter</mbeanName>

								<mbeanType>AuthenticationProvider</mbeanType>

								<mbeanClassName>dk.xxxx.ip.identityincontext.sspi.identityasserter.IdentityInContextIdentityAsserter</mbeanClassName>

								<properties>

									<environmentVariable>

										<variableName>domainName</variableName>

										<name>INSTALLER_DOMAIN_NAME</name>

										<description>sample is base_domain</description>

									</environmentVariable>

									<environmentVariable>

										<variableName>realm</variableName>

										<name>INSTALLER_SECURITY_REALM</name>

										<description>myrealm</description>

									</environmentVariable>

								</properties>

								<specificAttributes>

									<environmentVariable>

										<variableName>ControlFlag</variableName>

										<name>INSTALLER_MBEAN_CONTROLFLAG</name>

										<description>flags</description>

									</environmentVariable>

								</specificAttributes>

							</mbeanConfigModule>

						</scriptModules>

					</installModule>

				</configuration>

				<executions>

					<execution>

						<goals>

							<goal>resources</goal>

						</goals>

					</execution>

				</executions>

			</plugin>

			<plugin>

				<artifactId>maven-assembly-plugin</artifactId>

				<configuration>

					<descriptors>

						<descriptor>src/main/assembly/installer.xml</descriptor>

					</descriptors>

				</configuration>

				<executions>

					<execution>

						<id>make-assembly</id>

						<phase>package</phase>

						<goals>

							<goal>attached</goal>

						</goals>

					</execution>

				</executions>

			</plugin>



		</plugins>

	</build>

	<dependencies>

		<dependency>

			<groupId>com.bea.weblogic.server.lib.mbeantypes</groupId>

			<artifactId>wlManagementMBean</artifactId>

			<version>9.2</version>

			<scope>provided</scope>

		</dependency>

		<dependency>

			<groupId>com.bea.weblogic.server.lib</groupId>

			<artifactId>weblogic</artifactId>

			<scope>provided</scope>

			<version>9.2</version>

		</dependency>

		<dependency>

			<groupId>dk.xxxx.ip.integration.albpm</groupId>

			<artifactId>ip-security-ext-module</artifactId>

			<version>1.1</version>

		</dependency>

		<dependency>

			<groupId>dk.xxxx.ip.security</groupId>

			<artifactId>extended-identity-switch</artifactId>

			<version>1.3</version>

			<exclusions>

				<exclusion>

					<groupId>com.bea.weblogic.server.lib</groupId>

					<artifactId>weblogic</artifactId>

				</exclusion>

			</exclusions>

		</dependency>

		<dependency>

			<groupId>com.bea.weblogic.common.lib</groupId>

			<artifactId>apache_xbean</artifactId>

			<version>9.2</version>

			<scope>provided</scope>

		</dependency>

		<dependency>

			<groupId>com.sun</groupId>

			<artifactId>tools</artifactId>

			<version>1.5.04</version>

			<scope>system</scope>

			<systemPath>${java.home}/../lib/tools.jar</systemPath>

		</dependency>

	</dependencies>

</project>

Open in new window

0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
objectsCommented:
whats WL_HOME set to?

problem looks like it actually comes from your ant script, looks like it uses the WL installation for generating management beans

sorry for the vagueness, I don't use WL much
0
 
MickeysAuthor Commented:
yes there is  a build.xml. I dont have any WL_HOME in my setup. But I think they have it in there setup config file for maven if I am not wrong.

Is there a work around? Or do they need to re-write the code?
0
 
objectsCommented:
not sure, you'd need to check exactly what it is building.
why don't you want to install WL?
0
 
MickeysAuthor Commented:
well on my own computer it will ok but we will run on a hudson server that I am about to setup and I dont want dependency on any program. It needs to be able to run without that. Is that wrong you think?
0
 
objectsCommented:
It looks like you're build already has a dependency on WL (or at least some file in WL installation)
You could look to remove those steps but you'd need to first understand exactly what they are for first

Don't see it as a problem though, builds can have lots of different dependencies.
0
 
MickeysAuthor Commented:
well I will try to talk to the developer about it.

But as what I have understood all that can have dependency is if it is in the repository but downloading some jar file. Not by a program. I am not really sure what bea weblogic does or is but it seems wrong to me.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.