Solved

Maven -> Weblogic error

Posted on 2010-11-22
9
773 Views
Last Modified: 2012-06-21
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

0
Comment
Question by:Mickeys
  • 5
  • 4
9 Comments
 
LVL 92

Expert Comment

by:objects
Comment Utility
looks like the bean generation requires weblogic to be installed
can you post your pom
0
 

Author Comment

by:Mickeys
Comment Utility
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
 
LVL 92

Expert Comment

by:objects
Comment Utility
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
 

Author Comment

by:Mickeys
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 92

Expert Comment

by:objects
Comment Utility
not sure, you'd need to check exactly what it is building.
why don't you want to install WL?
0
 

Author Comment

by:Mickeys
Comment Utility
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
 
LVL 92

Expert Comment

by:objects
Comment Utility
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
 

Author Comment

by:Mickeys
Comment Utility
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
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
Comment Utility
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

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now